summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild16
-rwxr-xr-xscript/roms (renamed from script/build/roms)0
-rwxr-xr-xscript/trees (renamed from script/update/trees)0
3 files changed, 7 insertions, 9 deletions
diff --git a/build b/build
index 60877d8e..71620308 100755
--- a/build
+++ b/build
@@ -16,13 +16,12 @@ fi
. "include/vendor.sh"
. "include/mrc.sh"
-eval "$(setvars "" option aur_notice vdir relname src_dirname srcdir _xm \
- target romdir mode)"
+eval "$(setvars "" script_path aur_notice vdir relname src_dirname srcdir \
+ _xm target romdir mode)"
err="fail"
linkpath="${0}"
linkname="${linkpath##*/}"
-buildpath="./script/${linkname}"
main()
{
@@ -45,13 +44,13 @@ initcmd()
case "${1}" in
help) usage ${0} ;;
- list) items "${buildpath}" ;;
+ list) items "script" ;;
version) mkversion ;;
release) shift 1; mkrelease $@ ;;
inject) shift 1; vendor_inject $@ ;;
download) shift 1; vendor_download $@ ;;
*)
- option="${1}"
+ script_path="script/${1}"
return 0 ;;
esac
set -u -e # some commands disable them. turn them on!
@@ -95,9 +94,8 @@ git_init()
excmd()
{
- lbmkcmd="${buildpath}/${option}"
- [ -f "${lbmkcmd}" ] || $err "Invalid command. Run: ${linkpath} help"
- shift 1; "$lbmkcmd" $@ || $err "excmd: ${lbmkcmd} ${@}"
+ [ -f "${script_path}" ] || $err "Bad command. Run: ${linkpath} help"
+ shift 1; "$script_path" $@ || $err "excmd: ${script_path} ${@}"
}
usage()
@@ -109,7 +107,7 @@ usage()
USAGE: ${progname} <OPTION>
possible values for 'OPTION':
- $(items "${buildpath}")
+ $(items "script")
Special commands (consult $projectname documentation):
./vendor inject
diff --git a/script/build/roms b/script/roms
index 0525091b..0525091b 100755
--- a/script/build/roms
+++ b/script/roms
diff --git a/script/update/trees b/script/trees
index 615fbbf2..615fbbf2 100755
--- a/script/update/trees
+++ b/script/trees