diff --git a/build/macosx/dist.sh b/build/macosx/dist.sh index 4d8702023..9c07688c0 100755 --- a/build/macosx/dist.sh +++ b/build/macosx/dist.sh @@ -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... diff --git a/build/macosx/run.sh b/build/macosx/run.sh index a91428694..b6cf03f15 100755 --- a/build/macosx/run.sh +++ b/build/macosx/run.sh @@ -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