add abpath to user-package

This commit is contained in:
vcptr authored and Nicholas Wang committed 2020-06-01 07:29:00 -05:00
1 parent 1486ac6aa5
commit 89637f68e7
2 files changed
+26 -7

No files matched your search

+9 -7
View File
@@ -86,6 +86,14 @@ packtgzAbPath() {
echo ">>> Generated: $ABPATH"
}
packtgzAbPath() {
local ABPATH="$1"
echo ">>> Generating tgz package at $ABPATH"
pushd $TMP
tar cvfz $ABPATH .
echo ">>> Generated: $ABPATH"
}
pkg=zip
nosource=0
@@ -130,12 +138,6 @@ case $arg in
abpathtgz=*)
pkg=${arg##abpathtgz=}
;;
codename=*)
CODENAME=${arg##codename=}
;;
buildname=*)
BUILDNAME=${arg##buildname=}
;;
esac
done
@@ -161,7 +163,7 @@ if [[ $pkg == "zip" ]]; then
elif [[ $pkg == "tgz" ]]; then
packtgz
else
packtgzAbPath "$pkg"
packtgzAbPath $pkg
fi