games/glest-data: Fixed for bash4.

This commit is contained in:
David Somero 2010-05-19 02:34:29 -04:00
parent e631b00a9f
commit 2948d81418
1 changed files with 2 additions and 6 deletions

View File

@ -36,12 +36,8 @@ mkdir -p $PKG/usr/share/glest
cp -ar data maps scenarios techs tilesets servers.ini $PKG/usr/share/glest
install -m 0644 $CWD/langs/*.lng $PKG/usr/share/glest/data/lang/
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Remove unnecessary files.
find $PKG -name 'Thumbs.db' -exec rm {} \;