Mercurial > repo
view lib/kps/bfpp @ 12283:1c0480311b11 draft
<b_jonas> `` f=/hackenv/bin/STOP; >$f echo $\'#!/bin/sh\\nrm -v /hackenv/bin/botloop\'; chmod -c a+x "$f"
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 01 Jan 2020 09:34:57 +0000 |
parents | 37e5bb140d98 |
children |
line wrap: on
line source
#!/bin/bash -e set -o pipefail { cat <<<"#define __NEWLINE__ ÿ"$'\n'"#define __ICOUNTER__ þ"$'\n'"" ; cat "$1" | sed -e "1!b" -e '/#/d' ; } | gcc -E -I. -Ilib - -o "$1.i" perl -pe "s/\xFF/\x0A/g;" < "$1.i" | perl -pe 's/\xFE/$x++/ge;' | /hackenv/lib/kps/labels.pl | sed '/^#/ d' > "$1.p" rm -f "$1.i"