From b4175fbd7506803e44e3556dd608f6caa7573d09 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Mon, 29 Dec 2008 01:13:55 +0000 Subject: [PATCH] * Copy make-app-bundle.sh to osx-fix-libs.py which is the python script. * Rename make-app-bundle.sh to osx-bundle.sh which is the sh script. Originally committed to SVN as r2541. --- scripts/osx-bundle.sh | 19 +++++++++++++++++ .../{make-app-bundle.sh => osx-fix-libs.py} | 21 +------------------ 2 files changed, 20 insertions(+), 20 deletions(-) create mode 100755 scripts/osx-bundle.sh rename scripts/{make-app-bundle.sh => osx-fix-libs.py} (68%) diff --git a/scripts/osx-bundle.sh b/scripts/osx-bundle.sh new file mode 100755 index 000000000..0868691f0 --- /dev/null +++ b/scripts/osx-bundle.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +test -f aegisub/aegisub && test -x aegisub/aegisub || ( exit "Make sure you're in the right dir"; exit 1 ) +test -e $1 && ( echo "$1 already exists, will not overwrite."; exit 1 ) + +echo "Making directory structure..." +mkdir $1 || ( echo "Failed creating directory $1"; exit 1 ) +mkdir $1/Contents $1/Contents/MacOS $1/Contents/Resources + +echo "Copying files into package..." +cp aegisub/macosx/Info.plist $1/Contents +cp aegisub/aegisub $1/Contents/MacOS +cp aegisub/macosx/*.icns $1/Contents/Resources + +echo "Now about to collect and fix up shared libraries..." + +python scripts/osx-fix-libs.py "$1/Contents/MacOS/aegisub" + +echo "Done creating $1!" diff --git a/scripts/make-app-bundle.sh b/scripts/osx-fix-libs.py similarity index 68% rename from scripts/make-app-bundle.sh rename to scripts/osx-fix-libs.py index a9210c670..2f5e72f1d 100755 --- a/scripts/make-app-bundle.sh +++ b/scripts/osx-fix-libs.py @@ -1,20 +1,5 @@ -#!/bin/bash +#!/usr/bin/env python -test -f aegisub/aegisub && test -x aegisub/aegisub || ( exit "Make sure you're in the right dir"; exit 1 ) -test -e $1 && ( echo "$1 already exists, will not overwrite."; exit 1 ) - -echo "Making directory structure..." -mkdir $1 || ( echo "Failed creating directory $1"; exit 1 ) -mkdir $1/Contents $1/Contents/MacOS $1/Contents/Resources - -echo "Copying files into package..." -cp aegisub/macosx/Info.plist $1/Contents -cp aegisub/aegisub $1/Contents/MacOS -cp aegisub/macosx/*.icns $1/Contents/Resources - -echo "Now about to collect and fix up shared libraries..." - -python - $1/Contents/MacOS/aegisub <