Added new files to packages, made RPM script auto-generate its file list

This commit is contained in:
Matthew Bowra-Dean
2010-11-12 21:32:21 +13:00
committed by Paul Chote
parent 8f58e41304
commit 52854c77c2
4 changed files with 17 additions and 24 deletions

View File

@@ -10,6 +10,13 @@ PKGVERSION=`echo $1 | sed "s/-/\\./g"`
sed -i "s/{VERSION_FIELD}/$PKGVERSION/" openra.spec
rootdir=`readlink -f $2`
sed -i "s|{ROOT_DIR}|$rootdir|" openra.spec
for x in `find $rootdir -type f`
do
y="/${x#$rootdir}"
sed -i "/%files/ a $y" openra.spec
done
cp openra.spec "$3/SPECS/"
cd "$3"