Begin rework of packaging scripts. Restructure packaging system, and make osx and debian packages work.
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
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
#!/bin/bash
|
||||
ARGS=6
|
||||
E_BADARGS=85
|
||||
|
||||
if [ $# -ne "$ARGS" ]
|
||||
if [ $# -ne "3" ]
|
||||
then
|
||||
echo "Usage: `basename $0` ftp-server ftp-path username password version packaging-dir"
|
||||
echo "Usage: `basename $0` version packaging-dir outputdir"
|
||||
exit $E_BADARGS
|
||||
fi
|
||||
|
||||
PKGVERSION=`echo $5 | sed "s/-/\\./g"`
|
||||
PKGVERSION=`echo $1 | sed "s/-/\\./g"`
|
||||
sed -i "s/%define version [0-9\\.]\+/%define version $PKGVERSION/" openra.spec
|
||||
cp openra.spec "$6/SPECS/"
|
||||
cp openra.spec "$2/SPECS/"
|
||||
|
||||
cd "$6"
|
||||
cd "$2"
|
||||
|
||||
rpmbuild --target noarch -bb SPECS/openra.spec
|
||||
if [ $? -ne 0 ]; then
|
||||
@@ -20,12 +18,4 @@ if [ $? -ne 0 ]; then
|
||||
fi
|
||||
|
||||
cd RPMS/noarch/
|
||||
PACKAGEFILE=openra-$PKGVERSION-1.noarch.rpm
|
||||
size=`stat -c "%s" $PACKAGEFILE`
|
||||
|
||||
echo "$5,$size,$PACKAGEFILE" > /tmp/rpmlatest.txt
|
||||
|
||||
wput $PACKAGEFILE "ftp://$3:$4@$1/$2/"
|
||||
cd /tmp
|
||||
wput -u rpmlatest.txt "ftp://$3:$4@$1/$2/"
|
||||
|
||||
mv openra-$PKGVERSION-1.noarch.rpm $3
|
||||
|
||||
Reference in New Issue
Block a user