don't break if FILES contain spaces
This commit is contained in:
@@ -28,14 +28,17 @@ markdown DOCUMENTATION.md > DOCUMENTATION.html
|
|||||||
# 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.Utility.exe OpenRA.FileFormats.dll \
|
FILES=('OpenRA.Game.exe' 'OpenRA.Editor.exe' 'OpenRA.Utility.exe' \
|
||||||
OpenRA.Renderer.SdlCommon.dll OpenRA.Renderer.Cg.dll OpenRA.Renderer.Gl.dll OpenRA.Renderer.Null.dll \
|
'OpenRA.FileFormats.dll' 'OpenRA.Renderer.SdlCommon.dll' 'OpenRA.Renderer.Cg.dll' 'OpenRA.Renderer.Gl.dll' 'OpenRA.Renderer.Null.dll' \
|
||||||
FreeSans.ttf FreeSansBold.ttf titles.ttf Dune2k.ttf cg glsl mods/ra mods/cnc mods/d2k \
|
'FreeSans.ttf' 'FreeSansBold.ttf' 'titles.ttf' 'Dune2k.ttf' \
|
||||||
AUTHORS README.html CONTRIBUTING.html DOCUMENTATION.html COPYING HACKING INSTALL CHANGELOG"
|
'cg' 'glsl' 'mods/ra' 'mods/cnc' 'mods/d2k' \
|
||||||
|
'AUTHORS' 'COPYING' 'HACKING' 'INSTALL' 'CHANGELOG' \
|
||||||
|
'README.html' 'CONTRIBUTING.html' 'DOCUMENTATION.html' \
|
||||||
|
'global mix database.dat')
|
||||||
|
|
||||||
echo "Copying files..."
|
echo "Copying files..."
|
||||||
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
|
||||||
done
|
done
|
||||||
|
|
||||||
# Copy Tao
|
# Copy Tao
|
||||||
@@ -59,9 +62,6 @@ cp OpenRA.Game/OpenRA.ico packaging/built
|
|||||||
# Remove demo.mix from cnc
|
# Remove demo.mix from cnc
|
||||||
rm ./packaging/built/mods/cnc/bits/demo.mix
|
rm ./packaging/built/mods/cnc/bits/demo.mix
|
||||||
|
|
||||||
# Workaround for problems with spaces in filenames.
|
|
||||||
cp "global mix database.dat" packaging/built
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Change into packaging directory and run the
|
# Change into packaging directory and run the
|
||||||
# platform-dependant packaging in parallel
|
# platform-dependant packaging in parallel
|
||||||
|
|||||||
Reference in New Issue
Block a user