-
-
Save coderofsalvation/0c2fe8368ee64a2e733dad2a7282f537 to your computer and use it in GitHub Desktop.
redo - a minimalist permacomputing version of the famous Makefile-alternative
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # for original version see: https://redo.readthedocs.io/en/latest/ | |
| source ./.env | |
| exitcmd(){ echo; } | |
| build(){ | |
| exitcmd(){ echo "\$ ./default.do" && sh $VERBOSE ./default.do; } | |
| runner=default.do.${1##*.} | |
| test -f $runner && echo "\$ ./$runner $dep" && sh $VERBOSE ./$runner $dep | |
| } | |
| case "$1" in | |
| -x) debug="-x" ; shift ; | |
| ;; | |
| *) for dep in $DEPS; do | |
| test -f $dep || build $dep; | |
| test $dep -nt $BIN && build $dep; | |
| done | |
| ;; | |
| esac | |
| exitcmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment