Skip to content

Instantly share code, notes, and snippets.

@coderofsalvation
Created April 17, 2026 21:23
Show Gist options
  • Select an option

  • Save coderofsalvation/0c2fe8368ee64a2e733dad2a7282f537 to your computer and use it in GitHub Desktop.

Select an option

Save coderofsalvation/0c2fe8368ee64a2e733dad2a7282f537 to your computer and use it in GitHub Desktop.
redo - a minimalist permacomputing version of the famous Makefile-alternative
#!/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