Skip to content
Snippets Groups Projects
Commit 48bcd519 authored by Natanael Copa's avatar Natanael Copa
Browse files

scripts/mkimg.base.sh: search for apkovl script

search for apkovl script in current dir, in ~/.mkimg and in the dir
where the mkimage script was started from.
parent 86da5a10
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,10 @@ _hostkeys=""
_simulate=""
_checksum=""
scriptdir="$(dirname $0)"
OUTDIR="$PWD"
RELEASE="${build_date}"
msg() {
if [ -n "$quiet" ]; then return 0; fi
......@@ -182,7 +185,7 @@ build_profile() {
}
# load plugins
load_plugins "$(dirname $0)"
load_plugins "$scriptdir"
[ -z "$HOME" ] || load_plugins "$HOME/.mkimage"
mkimage_yaml="$(dirname $0)"/mkimage-yaml.sh
......
......@@ -52,9 +52,17 @@ section_apks() {
}
build_apkovl() {
local _host="$1"
local _host="$1" _script=
msg "Generating $_host.apkovl.tar.gz"
(local _pwd=$PWD; cd "$DESTDIR"; fakeroot "$_pwd"/"$apkovl" "$_host")
for _script in "$PWD"/"$apkovl" $HOME/.mkimage/$apkovl \
$(readlink -f "$scriptdir/$apkovl"); do
if [ -f "$_script" ]; then
break
fi
done
[ -n "$_script" ] || die "could not find $apkovl"
(cd "$DESTDIR"; fakeroot "$_script" "$_host")
}
section_apkovl() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment