From 3dd8d081be8eb90d0d756ec8ada999ef8695e5b7 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Tue, 14 Dec 2010 02:47:51 -0800 Subject: [PATCH] minimal/do: MacOS has /usr/bin/true, not /bin/true. --- README.md | 2 +- minimal/do | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6016f93..446e8a9 100644 --- a/README.md +++ b/README.md @@ -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 so simple that it's actually possible. For testing, I actually wrote an 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. diff --git a/minimal/do b/minimal/do index 0f543be..a25b72d 100755 --- a/minimal/do +++ b/minimal/do @@ -20,8 +20,9 @@ if [ -z "$DO_BUILT" ]; then for d in redo redo-ifchange; do ln -s "$REDO" "$DO_PATH/$d"; done + [ -e /bin/true ] && TRUE=/bin/true || TRUE=/usr/bin/true for d in redo-ifcreate redo-stamp redo-always; do - ln -s /bin/true "$DO_PATH/$d"; + ln -s $TRUE "$DO_PATH/$d"; done fi