From 802fd34d544d99cb4dfe4a5d706a9b7d8cd081e1 Mon Sep 17 00:00:00 2001
From: Niels Martin Hansen <nielsm@aegisub.org>
Date: Mon, 24 Nov 2008 20:29:47 +0000
Subject: [PATCH] Shell script to create OS X application bundles from a build
 tree, probably only works for in-tree builds

Originally committed to SVN as r2486.
---
 make-app-bundle.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100755 make-app-bundle.sh

diff --git a/make-app-bundle.sh b/make-app-bundle.sh
new file mode 100755
index 000000000..c38844518
--- /dev/null
+++ b/make-app-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 mkdir $1/Contents/MacOS
+mkdir $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 "Here we should be finding and fixing up libraries"
+
+echo "Done creating $1!"
+
-- 
GitLab