mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
version number tester in dist script
This commit is contained in:
+10
-1
@@ -3,14 +3,23 @@
|
||||
|
||||
if test -f /sw/bin/head
|
||||
then
|
||||
# a more useful version of head than what's included with osx
|
||||
# old 4 char version.. osx only uses the two chars
|
||||
#REVISION=`head -c 4 ../../todo.txt`
|
||||
# a more useful version of head than what's included with osx
|
||||
REVISION=`head -c 4 ../../todo.txt | tail -c 2`
|
||||
else
|
||||
# can't get four bytes of head (osx doesn't support -c)
|
||||
REVISION=0000
|
||||
fi
|
||||
|
||||
VERSIONED=`cat ../../app/PdeBase.java | grep 00$REVISION`
|
||||
if [ -z "$VERSIONED" ]
|
||||
then
|
||||
echo Fix the revision number in PdeBase.java
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
./make.sh
|
||||
|
||||
echo Creating P5 distribution for revision $REVISION...
|
||||
|
||||
+1
-1
@@ -14,5 +14,5 @@ CLASSPATH=/System/Library/Java/Extensions/QTJava.zip:lib:lib/build:lib/pde.jar:l
|
||||
|
||||
export CLASSPATH
|
||||
|
||||
#cd work && java PdeBase
|
||||
cd work && /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Commands/java PdeBase
|
||||
#cd work && java PdeBase
|
||||
|
||||
Reference in New Issue
Block a user