[gedit] [osx] Added dmg build command
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] [osx] Added dmg build command
- Date: Wed, 27 Aug 2014 11:33:17 +0000 (UTC)
commit 13248430caaf0aee2356fce38c6570f1bffd4478
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Wed Aug 27 12:56:00 2014 +0200
[osx] Added dmg build command
osx/build/build | 36 ++++++++++++++++++++----------------
1 files changed, 20 insertions(+), 16 deletions(-)
---
diff --git a/osx/build/build b/osx/build/build
index 6b3e756..0a22060 100755
--- a/osx/build/build
+++ b/osx/build/build
@@ -141,17 +141,17 @@ function cmd_jh() {
"$INSTALLD/bin/jhbuild" -f "$HOMED/.jhbuildrc" "$@"
}
-function jhdbg_help_usage() {
- echo "jhbuild command ..."
+function dbg_help_usage() {
+ echo "build command ..."
}
-function jhdbg_help_short() {
- echo "Run jhbuild commands in a debug environment"
+function dbg_help_short() {
+ echo "Run remaining build commands in a debug environment"
}
-function cmd_jhdbg() {
+function cmd_dbg() {
export GEDIT_OSX_DEBUG=1
- cmd_jh "$@"
+ _process "$@"
}
function shell_help_short() {
@@ -317,16 +317,20 @@ done < <(declare -F)
cmds=$(printf ", \033[1m%s\033[0m" "${commands[ ]}")
cmds=${cmds:2}
-if [ -z "$1" ]; then
- cmd_help
- exit 0
-fi
+function _process() {
+ if [ -z "$1" ]; then
+ cmd_help
+ exit 0
+ fi
-cmd="cmd_$1"
+ cmd="cmd_$1"
-if [[ $(type -t "$cmd") != "function" ]]; then
- do_exit "Invalid command $1, available commands are: $cmds"
-fi
+ if [[ $(type -t "$cmd") != "function" ]]; then
+ do_exit "Invalid command $1, available commands are: $cmds"
+ fi
+
+ shift 1
+ "$cmd" "$@"
+}
-shift 1
-"$cmd" "$@"
+_process "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]