annotate bin/interp @ 1120:b8ccb05a333a

<GreyKnight> cp luabuild/lua-5.2.1/src/luac /hackenv/bin
author HackBot
date Fri, 14 Dec 2012 22:02:33 +0000
parents 6cc3bc4c8c5a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1074
0114106a5025 <Gregor> mkdir ibins; for i in bin/*; do if [ "`grep \'\\. lib/interp\' $i`" ]; then mv $i ibin/; fi; done; printf \'#!/bin/sh\\nCMD=`cut -d\' \' -f1 "$1"`\\nARG=`cut -d\' \' -f2- "$2"`\\nexec ibin/$CMD "$ARG"\' > bin/interp; chmod 0755 bin/interp
HackBot
parents:
diff changeset
1 #!/bin/sh
1077
6cc3bc4c8c5a <Gregor> printf \'#!/bin/sh\\nCMD=`echo "$1" | cut -d\'\\\'\' \'\\\'\' -f1`\\nARG=`echo "$1" | cut -d\'\\\'\' \'\\\'\' -f2-`\\nexec ibin/$CMD "$ARG"\' > bin/interp; chmod 0755 bin/interp
HackBot
parents: 1076
diff changeset
2 CMD=`echo "$1" | cut -d' ' -f1`
6cc3bc4c8c5a <Gregor> printf \'#!/bin/sh\\nCMD=`echo "$1" | cut -d\'\\\'\' \'\\\'\' -f1`\\nARG=`echo "$1" | cut -d\'\\\'\' \'\\\'\' -f2-`\\nexec ibin/$CMD "$ARG"\' > bin/interp; chmod 0755 bin/interp
HackBot
parents: 1076
diff changeset
3 ARG=`echo "$1" | cut -d' ' -f2-`
1076
f35975b9dd96 <Gregor> printf \'#!/bin/sh\\nCMD=`cut -d\'\\\'\' \'\\\'\' -f1 "$1"`\\nARG=`cut -d\'\\\'\' \'\\\'\' -f2- "$2"`\\nexec ibin/$CMD "$ARG"\' > bin/interp; chmod 0755 bin/interp
HackBot
parents: 1074
diff changeset
4 exec ibin/$CMD "$ARG"