Something went wrong. Try again.
Something went wrong. Try again.
631 B · 26 lines
at trunk
123456789101112131415161718192021222324252627#!/bin/shset -euxPREV="$(pwd)"DIR="$(mktemp -d)"cp scrapscript.py "$DIR"cp compiler.py "$DIR"cp runtime.c "$DIR"cp cli.c "$DIR"cd "$DIR"printf -- '-m\nscrapscript\n...' > .argswget https://cosmo.zip/pub/cosmos/bin/pythonwget https://cosmo.zip/pub/cosmos/bin/zipchmod +x pythonchmod +x zip./python -m compileall -b scrapscript.py compiler.pymkdir Libcp scrapscript.pyc Lib/scrapscript.pyccp compiler.pyc Lib/compiler.pyccp runtime.c Lib/runtime.ccp cli.c Lib/cli.ccp python scrapscript.com./zip -r scrapscript.com Lib .argsecho "Testing..."./scrapscript.com apply "1+2"cd "$PREV"cp "$DIR"/scrapscript.com .