Add some error-checking and exit 1's.

Originally committed to SVN as r2866.
This commit is contained in:
Amar Takhar 2009-04-28 05:17:33 +00:00
parent d929e60b4c
commit 8a13a78229
1 changed files with 3 additions and 2 deletions

View File

@ -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}"