From 8a13a78229fb10a5192311a3405f4c17b61b8c55 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Tue, 28 Apr 2009 05:17:33 +0000 Subject: [PATCH] Add some error-checking and exit 1's. Originally committed to SVN as r2866. --- aegisub/scripts/osx-bundle.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aegisub/scripts/osx-bundle.sh b/aegisub/scripts/osx-bundle.sh index 1d036e0d1..609886ff9 100755 --- a/aegisub/scripts/osx-bundle.sh +++ b/aegisub/scripts/osx-bundle.sh @@ -78,6 +78,7 @@ for i in `cat po/LINGUAS`; do cp -v po/${i}.gmo ${PKG_DIR}/Contents/Resources/${i}.lproj/aegisub.mo; else echo "${i}.gmo not found!" + exit 1 fi done @@ -98,11 +99,11 @@ else fi echo cc -o ${PKG_DIR}/Contents/MacOS/restart-helper scripts/osx-bundle-restart-helper.c -${CC} -o ${PKG_DIR}/Contents/MacOS/restart-helper scripts/osx-bundle-restart-helper.c +${CC} -o ${PKG_DIR}/Contents/MacOS/restart-helper scripts/osx-bundle-restart-helper.c || exit $? echo echo "---- Libraries ----" -python scripts/osx-fix-libs.py "${PKG_DIR}/Contents/MacOS/Aegisub" +python scripts/osx-fix-libs.py "${PKG_DIR}/Contents/MacOS/Aegisub" || exit $? echo echo "Done Creating ${PKG_DIR}"