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