diff options
author | Epoch Qwert <epoch@53flpnlls43fcguy.onion> | 2014-10-21 12:49:50 -0500 |
---|---|---|
committer | Epoch Qwert <epoch@53flpnlls43fcguy.onion> | 2014-10-21 12:53:12 -0500 |
commit | 12201178a5950eecd9537e642b1246011490b499 (patch) | |
tree | b606b8f77af7d8b77a92ef5a3f7c905d66b97ad9 /rebuild.sh | |
parent | 1852f2d7d63c39d0fd97a2774d1bd16bf53ec67d (diff) | |
download | misc-12201178a5950eecd9537e642b1246011490b499.tar.gz misc-12201178a5950eecd9537e642b1246011490b499.zip |
updated rebuild.sh to work better with libexec and bin instead of just bin.
added epochttpd 2
Diffstat (limited to 'rebuild.sh')
-rwxr-xr-x | rebuild.sh | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -1,10 +1,17 @@ -#!/bin/sh -for i in src/*.c;do - out=$(basename $i | cut -d. -f1) - gcc -o bin/$out $i - cp bin/* /usr/local/bin/ +#!/bin/sh -v +for i in src/*;do + iout=$(basename $i) + mkdir -p $iout + for j in $i/*.c;do + jout=$(basename $j | cut -d. -f1) + gcc -o $iout/$jout $j + done + cp $iout/* /usr/local/$iout/ done for i in nocompile/*;do - out=$(basename $i) - cp $i /usr/local/bin/$out + iout=$(basename $i) + for j in nocompile/$i/* out=$(basename $i);do + jout=$(basename $j) + done + cp $i/* /usr/local/$iout/ done |