version number tester in dist script

This commit is contained in:
benfry
2003-10-26 03:09:36 +00:00
parent a7b33a9689
commit cd74beb19a
2 changed files with 11 additions and 2 deletions
+10 -1
View File
@@ -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
View File
@@ -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