-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·28 lines (27 loc) · 764 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·28 lines (27 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
if [ "$1" = "rpm" ]; then
# A very simplistic RPM build scenario
if [ -e BenchmarkGen.spec ]; then
mydir=`dirname $0`
tmpdir=`mktemp -d`
cp -r ${mydir} ${tmpdir}/BenchmarkGen-1.0.0
tar czf ${tmpdir}/BenchmarkGen-1.0.0.tar.gz --exclude=".svn" -C ${tmpdir} BenchmarkGen-1.0.0
rpmbuild -ta ${tmpdir}/BenchmarkGen-1.0.0.tar.gz
rm -rf $tmpdir
else
echo "Missing RPM spec file in" `pwd`
exit 1
fi
else
for impl in cpp ; do
cd $impl
if [ -e build.sh ]; then
./build.sh $*
elif [ -e reconf ]; then
./reconf && ./configure && make $*
else
echo "No build.sh found for $impl"
fi
cd -
done
fi