[gedit/wip/3.14-osx] [osx] Add build env command
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/3.14-osx] [osx] Add build env command
- Date: Mon, 25 Aug 2014 17:02:40 +0000 (UTC)
commit e4ebb92377499889b35499b2e18cf392f3822501
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Mon Aug 25 18:45:16 2014 +0200
[osx] Add build env command
osx/build/build | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/osx/build/build b/osx/build/build
index a6f2db6..9507dfd 100755
--- a/osx/build/build
+++ b/osx/build/build
@@ -185,6 +185,45 @@ function cmd_run() {
cmd_jh run "$@"
}
+function env_help_short() {
+ echo "Obtain certain environment paths"
+}
+
+function cmd_env() {
+ vars=(source inst bin home local-bin)
+
+ case "$1" in
+ source)
+ echo "$BASED/$GEDIT_SDK/source"
+ ;;
+ inst)
+ echo "$BASED/$GEDIT_SDK/inst"
+ ;;
+ bin)
+ echo "$BASED/$GEDIT_SDK/inst/bin"
+ ;;
+ home)
+ echo "$HOMED"
+ ;;
+ local-bin)
+ echo "$HOMED/.local/bin"
+ ;;
+ "")
+ for v in "${vars[ ]}"; do
+ u=$(echo -n "$v" | tr '-' '_')
+ echo -n "$u="
+ cmd_env "$v"
+ done
+ ;;
+ *)
+ varnames=$(printf ", \033[1m%s\033[0m" "${vars[ ]}")
+ varnames=${varnames:2}
+
+ do_exit "Unknown environment variable \033[1m$1\033[0m, available variables are: $varnames"
+ ;;
+ esac
+}
+
function all_help_short() {
echo "Runs the init, bootstrap and build commands"
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]