summaryrefslogtreecommitdiff
path: root/rebuild.sh
blob: f97643f25117e6cdd2b55d76361cec315f62f51e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
cd $(dirname $0)
rm bin/*
rm libexec/*
echo "building and installing tools from sources..."
for i in src/*;do
 iout=$(basename $i)
 mkdir -p $iout
 for j in $i/*.c;do
  jout=$(basename $j | cut -d. -f1)
  gcc -Wall -o $iout/$jout $j
 done
 cp -f $iout/* /usr/local/$iout/
done
echo "building and installing tools without compiling..."
for i in nocompile/*;do
 iout=$(basename $i)
 mkdir -p $iout
 for j in nocompile/$i/* out=$(basename $i);do
  jout=$(basename $j)
 done
 cp -f $i/* /usr/local/$iout/
done