From e694d9024cddf4dd54efd828927e3fd5e70b6c3a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 27 Oct 2013 23:30:49 +0100 Subject: o Removing all old code (X files). o Making sure APPSH_HOME is 1) exported and, 2) always prepended to $PATH. o More documentation on what a zip file actually looks like and how to create hooks. --- lib/common | 8 +++++++- lib/header | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/common b/lib/common index b52da43..369f0be 100755 --- a/lib/common +++ b/lib/common @@ -288,12 +288,18 @@ find_resolver() { grep_path "/app-resolver-$resolver_name$" "$PATH" | head -n 1 } +##################################################################### +# Values + +key_expr="[a-zA-Z][-_a-zA-Z0-9]*" + ##################################################################### # Common init # Add the app-* apps to PATH. They're added last to allow the user to # overload their implementations. -PATH=$PATH:$APPSH_HOME/bin:$APPSH_HOME/libexec +# Ideally we should parse the path here and remove duplicates. +PATH=$APPSH_HOME:$APPSH_HOME/bin:$APPSH_HOME/libexec:$PATH # Make sure that $HOME is present to prevent unbound errors HOME=${HOME:-} diff --git a/lib/header b/lib/header index 805e06e..876750f 100644 --- a/lib/header +++ b/lib/header @@ -3,6 +3,6 @@ set -e set -u -APPSH_HOME=$(cd $(dirname "$0")/.. && pwd) +export APPSH_HOME=$(cd $(dirname "$0")/.. && pwd) . $APPSH_HOME/lib/common -- cgit v1.2.3