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