annotate lib/kps/bfpp @ 12274:3c04e9ef7a3a draft

<kspalaiologos> `` cp -rf /hackenv/tmp/asmbf-1.2.7/bin/* /hackenv/lib/kps/
author HackEso <hackeso@esolangs.org>
date Tue, 31 Dec 2019 17:47:30 +0000
parents
children 37e5bb140d98
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12274
3c04e9ef7a3a <kspalaiologos> `` cp -rf /hackenv/tmp/asmbf-1.2.7/bin/* /hackenv/lib/kps/
HackEso <hackeso@esolangs.org>
parents:
diff changeset
1 #!/bin/bash -e
3c04e9ef7a3a <kspalaiologos> `` cp -rf /hackenv/tmp/asmbf-1.2.7/bin/* /hackenv/lib/kps/
HackEso <hackeso@esolangs.org>
parents:
diff changeset
2
3c04e9ef7a3a <kspalaiologos> `` cp -rf /hackenv/tmp/asmbf-1.2.7/bin/* /hackenv/lib/kps/
HackEso <hackeso@esolangs.org>
parents:
diff changeset
3 set -o pipefail
3c04e9ef7a3a <kspalaiologos> `` cp -rf /hackenv/tmp/asmbf-1.2.7/bin/* /hackenv/lib/kps/
HackEso <hackeso@esolangs.org>
parents:
diff changeset
4
3c04e9ef7a3a <kspalaiologos> `` cp -rf /hackenv/tmp/asmbf-1.2.7/bin/* /hackenv/lib/kps/
HackEso <hackeso@esolangs.org>
parents:
diff changeset
5 { cat <<<"#define __NEWLINE__ ÿ"$'\n'"#define __ICOUNTER__ þ"$'\n'"" ; cat "$1" | sed -e "1!b" -e '/#/d' ; } | gcc -E -I. -Ilib - -o "$1.i"
3c04e9ef7a3a <kspalaiologos> `` cp -rf /hackenv/tmp/asmbf-1.2.7/bin/* /hackenv/lib/kps/
HackEso <hackeso@esolangs.org>
parents:
diff changeset
6 perl -pe "s/\xFF/\x0A/g;" < "$1.i" | perl -pe 's/\xFE/$x++/ge;' | /bin/labels.pl | sed '/^#/ d' > "$1.p"
3c04e9ef7a3a <kspalaiologos> `` cp -rf /hackenv/tmp/asmbf-1.2.7/bin/* /hackenv/lib/kps/
HackEso <hackeso@esolangs.org>
parents:
diff changeset
7 rm -f "$1.i"