diff --git a/processing/build/macosx/dist.sh b/processing/build/macosx/dist.sh index 9efa80269..ad879b866 100755 --- a/processing/build/macosx/dist.sh +++ b/processing/build/macosx/dist.sh @@ -1,8 +1,14 @@ #!/bin/sh -#REVISION=`head -c 4 ../../todo.txt` -# 'head' for osx doesn't support -c.. what a pisser -REVISION=0000 + +if test -f /sw/bin/head +then + # a more useful version of head than what's included with osx + REVISION=`head -c 4 ../../todo.txt` +else + # can't get four bytes of head (osx doesn't support -c) + REVISION=0000 +fi ./make.sh