Skip to content

Commit

Permalink
mpssign.sh: added missing check
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeddr authored and mbeddr committed Aug 3, 2018
1 parent 3ac8f05 commit 95ca8aa
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/main/resources/de/itemis/mps/gradle/mpssign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ unzip -q -o "$RCP_FILE" -d "$OUTPUT_DIR"
BUILD_NAME=$(ls "$OUTPUT_DIR")
CONTENTS="$OUTPUT_DIR/$BUILD_NAME/Contents"

echo 'Creating symlinks from *.jnilib to *.dylib:'
for f in "$CONTENTS/bin"/*.jnilib; do
b="$(basename "$f" .jnilib)"
echo " $f -> $b.dylib"
ln -sf "$b.jnilib" "$(dirname "$f")/$b.dylib"
done
echo 'Done creating symlinks'
if ls "$CONTENTS/bin"/*.jnilib >& /dev/null; then
echo 'Creating symlinks from *.jnilib to *.dylib:'
for f in "$CONTENTS/bin"/*.jnilib; do
b="$(basename "$f" .jnilib)"
echo " $f -> $b.dylib"
ln -sf "$b.jnilib" "$(dirname "$f")/$b.dylib"
done
echo 'Done creating symlinks'
fi

if [[ -n "$JDK_FILE" ]]; then
if [[ ! -f "$JDK_FILE" ]]; then
Expand Down Expand Up @@ -104,4 +106,4 @@ fi
chmod a+x "$CONTENTS"/MacOS/*
chmod a+x "$CONTENTS"/bin/*.py
chmod a+x "$CONTENTS"/bin/fs*
chmod a+x "$CONTENTS"/bin/restarter
chmod a+x "$CONTENTS"/bin/restarter

0 comments on commit 95ca8aa

Please sign in to comment.