blob: 6a7e829f8b7f59e44ffbed55874fb0d358161f2e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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 $iout/* /usr/local/$iout/
done
echo "building and installing tools without compiling..."
for i in nocompile/*;do
iout=$(basename $i)
for j in nocompile/$i/* out=$(basename $i);do
jout=$(basename $j)
done
cp $i/* /usr/local/$iout/
done
|