Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Don't exit if misbehaving libraries are not found
Browse files Browse the repository at this point in the history
- When creating an AppImage, certain libraries must be removed
- The script will currently exit when it fails to delete such a library
- The script should not exit if such a library was never present
  • Loading branch information
olekw committed Apr 3, 2014
1 parent 1cc718e commit 4ce7c01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions support/linux_AppDir_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ fi

# Manually add and remove libraries which don't behave appropriately.

# Some libraries may not be present. If they are not present, continue processing.
set +e

rm $APP_DIR/lib/ld-linux*
rm $APP_DIR/lib/libc.so*
rm $APP_DIR/lib/libdl.so*
Expand All @@ -158,5 +161,8 @@ rm $APP_DIR/lib/librt.so*
rm $APP_DIR/lib/librtmp.so*
rm $APP_DIR/lib/libX11.so*

# Resume exit-on-fail behavior.
set -e

cp -d $PREFIX/lib/libCEGUI* $APP_DIR/lib
cp -r $PREFIX/lib/cegui* $APP_DIR/lib

0 comments on commit 4ce7c01

Please sign in to comment.