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,14 +1,12 @@
|
||||
#!/bin/bash
|
||||
ARGS=5
|
||||
E_BADARGS=85
|
||||
|
||||
if [ $# -ne "$ARGS" ]
|
||||
if [ $# -ne "2" ]
|
||||
then
|
||||
echo "Usage: `basename $0` ftp-server ftp-path username password version"
|
||||
echo "Usage: `basename $0` version outputdir"
|
||||
exit $E_BADARGS
|
||||
fi
|
||||
|
||||
PKGVERSION=`echo $5 | sed "s/-/\\./g"`
|
||||
PKGVERSION=`echo $1 | sed "s/-/\\./g"`
|
||||
sed -i "s/pkgver=[0-9\\.]\+/pkgver=$PKGVERSION/" PKGBUILD
|
||||
|
||||
makepkg --holdver
|
||||
@@ -16,12 +14,4 @@ if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PACKAGEFILE="openra-git-$PKGVERSION-1-any.pkg.tar.xz"
|
||||
|
||||
size=`stat -c "%s" $PACKAGEFILE`
|
||||
|
||||
echo "$5,$size,$PACKAGEFILE" > archlatest.txt
|
||||
|
||||
wput $PACKAGEFILE "ftp://$3:$4@$1/$2/"
|
||||
wput -u archlatest.txt "ftp://$3:$4@$1/$2/"
|
||||
|
||||
mv openra-git-$PKGVERSION-1-any.pkg.tar.xz $2
|
||||
Reference in New Issue
Block a user