Changed semantics: - package upload is handled by a separate script - dropped syntax highlighting (unnecessary, and had concurrency issues) - `make install' is no longer used in the packaging process - debian package changelog points to the forum, instead of showing out of date info - debian package ships tao dlls in the game root, and doesn't insert them in the gac - debian package refers users to the website for help manually installing packages
22 lines
427 B
Bash
22 lines
427 B
Bash
#!/bin/bash
|
|
E_BADARGS=85
|
|
if [ $# -ne "3" ]
|
|
then
|
|
echo "Usage: `basename $0` version packaging-dir outputdir"
|
|
exit $E_BADARGS
|
|
fi
|
|
|
|
PKGVERSION=`echo $1 | sed "s/-/\\./g"`
|
|
sed -i "s/%define version [0-9\\.]\+/%define version $PKGVERSION/" openra.spec
|
|
cp openra.spec "$2/SPECS/"
|
|
|
|
cd "$2"
|
|
|
|
rpmbuild --target noarch -bb SPECS/openra.spec
|
|
if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
cd RPMS/noarch/
|
|
mv openra-$PKGVERSION-1.noarch.rpm $3
|