1
#!/bin/sh
2
3
# get the current version & release
4
version=`cat  VERSION | cut -d- -f 1`
5
release=`cat  VERSION | cut -d- -f 2`
6
7
# make sure there's no objects and binaries arround
8
make clean
9
rm -f src/quax
10
11
# reconfigure things just to make sure rpmspec is good
12
./configure
13
14
# make a new snapshot
15
mkdir -p ../quax-$version-$release
16
cp -r . ../quax-$version-$release/
17
18
# jump a step behind
19
cd ..
20
21
# make archive from it and then delete local copy
22
tar cfz quax-$version-$release.tar.gz quax-$version-$release
23
rm -r quax-$version-$release
24
25
# build the RPM
26
rpmbuild -ta quax-$version-$release.tar.gz
27
28
# back to work...
29
cd quax