mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-03 00:22:05 +00:00
add abpath to user-package
This commit is contained in:
1 parent
1486ac6aa5
commit
89637f68e7
2 files changed
+26
-7
No files matched your search
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user