Added new files to packages, made RPM script auto-generate its file list
This commit is contained in:
committed by
Paul Chote
parent
8f58e41304
commit
52854c77c2
@@ -10,6 +10,13 @@ PKGVERSION=`echo $1 | sed "s/-/\\./g"`
|
|||||||
sed -i "s/{VERSION_FIELD}/$PKGVERSION/" openra.spec
|
sed -i "s/{VERSION_FIELD}/$PKGVERSION/" openra.spec
|
||||||
rootdir=`readlink -f $2`
|
rootdir=`readlink -f $2`
|
||||||
sed -i "s|{ROOT_DIR}|$rootdir|" openra.spec
|
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/"
|
cp openra.spec "$3/SPECS/"
|
||||||
|
|
||||||
cd "$3"
|
cd "$3"
|
||||||
|
|||||||
@@ -61,24 +61,3 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%files
|
%files
|
||||||
/usr/bin/openra
|
|
||||||
/usr/share/openra/*.exe
|
|
||||||
/usr/share/openra/*.ttf
|
|
||||||
/usr/share/openra/*.dll
|
|
||||||
/usr/share/openra/*.dll.config
|
|
||||||
/usr/share/openra/OpenRA.ico
|
|
||||||
/usr/share/openra/VERSION
|
|
||||||
/usr/share/openra/COPYING
|
|
||||||
/usr/share/openra/HACKING
|
|
||||||
/usr/share/openra/INSTALL
|
|
||||||
/usr/share/openra/shaders/
|
|
||||||
/usr/share/openra/mods/
|
|
||||||
/usr/share/applications/openra*
|
|
||||||
/usr/share/menu/openra*
|
|
||||||
/usr/share/pixmaps/openra.32.xpm
|
|
||||||
/usr/share/icons/hicolor/16x16/apps/openra.png
|
|
||||||
/usr/share/icons/hicolor/32x32/apps/openra.png
|
|
||||||
/usr/share/icons/hicolor/48x48/apps/openra.png
|
|
||||||
/usr/share/icons/hicolor/64x64/apps/openra.png
|
|
||||||
/usr/share/icons/hicolor/128x128/apps/openra.png
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ find . -path "*.mdb" -delete
|
|||||||
# List of files that are packaged on all platforms
|
# List of files that are packaged on all platforms
|
||||||
# Note that the Tao dlls are shipped on all platforms except osx and that
|
# Note that the Tao dlls are shipped on all platforms except osx and that
|
||||||
# they are now installed to the game directory instead of placed in the gac
|
# they are now installed to the game directory instead of placed in the gac
|
||||||
FILES="OpenRA.Game.exe OpenRA.Editor.exe OpenRA.Gl.dll OpenRA.FileFormats.dll FreeSans.ttf FreeSansBold.ttf titles.ttf shaders mods/ra mods/cnc VERSION COPYING HACKING INSTALL"
|
FILES="OpenRA.Game.exe OpenRA.Editor.exe OpenRA.Utility.exe OpenRA.Renderer.Cg.dll OpenRA.Renderer.Gl.dll OpenRA.Renderer.Null.dll \
|
||||||
|
OpenRA.FileFormats.dll FreeSans.ttf FreeSansBold.ttf titles.ttf shaders mods/ra mods/cnc VERSION COPYING HACKING INSTALL"
|
||||||
|
|
||||||
for i in $FILES; do
|
for i in $FILES; do
|
||||||
cp -R "$i" "packaging/built/$i" || exit 3
|
cp -R "$i" "packaging/built/$i" || exit 3
|
||||||
|
|||||||
@@ -76,8 +76,11 @@ SectionEnd
|
|||||||
Section "Client" Client
|
Section "Client" Client
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
File "${SRCDIR}\OpenRA.Game.exe"
|
File "${SRCDIR}\OpenRA.Game.exe"
|
||||||
|
File "${SRCDIR}\OpenRA.Utility.exe"
|
||||||
File "${SRCDIR}\OpenRA.FileFormats.dll"
|
File "${SRCDIR}\OpenRA.FileFormats.dll"
|
||||||
File "${SRCDIR}\OpenRA.Gl.dll"
|
File "${SRCDIR}\OpenRA.Renderers.Gl.dll"
|
||||||
|
File "${SRCDIR}\OpenRA.Renderers.Cg.dll"
|
||||||
|
File "${SRCDIR}\OpenRA.Renderers.Null.dll"
|
||||||
File "${SRCDIR}\COPYING"
|
File "${SRCDIR}\COPYING"
|
||||||
File "${SRCDIR}\HACKING"
|
File "${SRCDIR}\HACKING"
|
||||||
File "${SRCDIR}\INSTALL"
|
File "${SRCDIR}\INSTALL"
|
||||||
@@ -270,9 +273,12 @@ Function ${UN}Clean
|
|||||||
RMDir /r $INSTDIR\maps
|
RMDir /r $INSTDIR\maps
|
||||||
RMDir /r $INSTDIR\shaders
|
RMDir /r $INSTDIR\shaders
|
||||||
Delete $INSTDIR\OpenRA.Game.exe
|
Delete $INSTDIR\OpenRA.Game.exe
|
||||||
|
Delete $INSTDIR\OpenRA.Utility.exe
|
||||||
Delete $INSTDIR\OpenRA.Editor.exe
|
Delete $INSTDIR\OpenRA.Editor.exe
|
||||||
Delete $INSTDIR\OpenRA.FileFormats.dll
|
Delete $INSTDIR\OpenRA.FileFormats.dll
|
||||||
Delete $INSTDIR\OpenRA.Gl.dll
|
Delete $INSTDIR\OpenRA.Renderer.Gl.dll
|
||||||
|
Delete $INSTDIR\OpenRA.Renderer.Cg.dll
|
||||||
|
Delete $INSTDIR\OpenRA.Renderer.Null.dll
|
||||||
Delete $INSTDIR\Tao.*.dll
|
Delete $INSTDIR\Tao.*.dll
|
||||||
Delete $INSTDIR\COPYING
|
Delete $INSTDIR\COPYING
|
||||||
Delete $INSTDIR\HACKING
|
Delete $INSTDIR\HACKING
|
||||||
|
|||||||
Reference in New Issue
Block a user