-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmake.sh
More file actions
executable file
·29 lines (23 loc) · 764 Bytes
/
make.sh
File metadata and controls
executable file
·29 lines (23 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh# make
#
# Make file for FmObjectTranslator.app
#
# 2025-05-16 ( danshockley ): Updated comments.
# 2019-03-08 ( eshagdar ): check for app existence, then quit and delete
# it before compiling a new one. Notify user that app is compiled.
# 2019-03-07 ( danshockley ): created
#
APP_NAME="FmObjectTranslator.app"
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
AS_PATH=$ROOT_DIR/Scripts/fmObjectTranslator.applescript
cd "$ROOT_DIR"
if [ -d "$APP_NAME" ]
then
# quit app if it's running
osascript -e 'Tell application "'"$APP_NAME"'" to quit'
# delete app if it exists
if [ -d "$APP_NAME" ]; then rm -Rf $APP_NAME; fi
fi
# compile and notify user
osacompile -s -o "$APP_NAME" "$AS_PATH"
echo "compiled $APP_NAME"