blob: f0f9877ff4d5df08a56948f72775784c969b4a31 (
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 -f $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 -f $i/* /usr/local/$iout/
done
|