File: debug-bundle.sh

package info (click to toggle)
pgadmin3 1.20.0~beta2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 73,704 kB
  • ctags: 18,591
  • sloc: cpp: 193,786; ansic: 18,736; sh: 5,154; pascal: 1,120; yacc: 927; makefile: 516; lex: 421; xml: 126; perl: 40
file content (20 lines) | stat: -rwxr-xr-x 912 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
bundle_name="pgAdmin3-Debug"

if test -d "$bundle_name.app"; then
	echo "Bundle: $bundle_name.app already exists" >&2
	exit 1
fi

mkdir "$bundle_name.app"
mkdir -p "$bundle_name.app/Contents/MacOS"
mkdir -p "$bundle_name.app/Contents/Resources"
mkdir -p "$bundle_name.app/Contents/SharedSupport"

(cd "$bundle_name.app/Contents"; ln -s ../../pkg/mac/PkgInfo PkgInfo) &&
(cd "$bundle_name.app/Contents" && ln -s ../../pkg/mac/debug.pgadmin.Info.plist Info.plist) &&
(cd "$bundle_name.app/Contents/MacOS" && ln -s ../../../pgadmin/pgadmin3 "$bundle_name") &&
(cd "$bundle_name.app/Contents/Resources" && ln -s "../../../pkg/mac/pgadmin3.icns" "$bundle_name.icns") &&
(cd "$bundle_name.app/Contents/SharedSupport" && ln -s ../../../pgadmin/ui ui) &&
(cd "$bundle_name.app/Contents/SharedSupport" && ln -s ../../../docs docs) &&
(cd "$bundle_name.app/Contents/SharedSupport" && ln -s ../../../i18n i18n)