From d8ef00c1fd50b4eb3b436118e6a5634ce01334aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 15 Jun 2010 03:04:30 +0200 Subject: Merge functions.sh and templates/default back into play.sh Thus the goal of one-file-install can be kept. --- functions.sh | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 functions.sh (limited to 'functions.sh') diff --git a/functions.sh b/functions.sh deleted file mode 100644 index e943dca..0000000 --- a/functions.sh +++ /dev/null @@ -1,43 +0,0 @@ -out () { - echo ">>> $@" -} - -log () { - [[ $PLAY_DEBUG > 0 ]] && echo "*** $@" -} - -exp () { - log "Setting envvar '$1' to '$2'" - export $1=$2 -} - -exc () { - cmd="eval" - - if [[ $1 == "-e" ]]; then - cmd="exec" - shift - fi - - if [[ $PLAY_DEBUG > 0 ]]; then - log "Executing (using '$cmd'):" - log "> $@" - - sleep 3 - fi - - $cmd "$@" -} - -EXPORT () { - local name=$1 - shift - - for f in $@; do - eval "$f () { ${name}_${f}; }" - done -} - -inherit () { - source $PLAY_TEMPLATES/$1 -} -- cgit v1.2.3