minimal/do: MacOS has /usr/bin/true, not /bin/true.

This commit is contained in:
Avery Pennarun 2010-12-14 02:47:51 -08:00
commit 3dd8d081be
2 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,7 @@ If you've ever thought about rewriting GNU make from scratch, the idea of
doing it in 250 lines of shell script probably didn't occur to you. redo is doing it in 250 lines of shell script probably didn't occur to you. redo is
so simple that it's actually possible. For testing, I actually wrote an so simple that it's actually possible. For testing, I actually wrote an
even more minimal version,which always rebuilds everything instead of even more minimal version,which always rebuilds everything instead of
checking dependencies, in 99 lines of shell (less than 2 kbytes). checking dependencies, in 100 lines of shell (less than 2 kbytes).
The design is simply that good. The design is simply that good.

View file

@ -20,8 +20,9 @@ if [ -z "$DO_BUILT" ]; then
for d in redo redo-ifchange; do for d in redo redo-ifchange; do
ln -s "$REDO" "$DO_PATH/$d"; ln -s "$REDO" "$DO_PATH/$d";
done done
[ -e /bin/true ] && TRUE=/bin/true || TRUE=/usr/bin/true
for d in redo-ifcreate redo-stamp redo-always; do for d in redo-ifcreate redo-stamp redo-always; do
ln -s /bin/true "$DO_PATH/$d"; ln -s $TRUE "$DO_PATH/$d";
done done
fi fi