Skip to content

Commit feeece3

Browse files
committed
tweaks to macos9 / macosx build scripts
1 parent 9fec0c1 commit feeece3

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

build/macosx/dist.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#!/bin/sh
22

3-
#REVISION=`head -c 4 ../../todo.txt`
4-
# 'head' for osx doesn't support -c.. what a pisser
5-
REVISION=0000
3+
4+
if test -f /sw/bin/head
5+
then
6+
# a more useful version of head than what's included with osx
7+
REVISION=`head -c 4 ../../todo.txt`
8+
else
9+
# can't get four bytes of head (osx doesn't support -c)
10+
REVISION=0000
11+
fi
612

713
./make.sh
814

0 commit comments

Comments
 (0)