Remove tar compress_flags
This commit is contained in:
parent
bf1e23359a
commit
3a749a4278
12
packelf.sh
12
packelf.sh
|
@ -28,9 +28,7 @@ if [ "$run_mode" = loader ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pack_help() {
|
pack_help() {
|
||||||
echo "Usage: $0 [-zjJn] <ELF_SRC_PATH> <DST_PATH> [ADDITIONAL_LIBS ...]"
|
echo "$0 <ELF_SRC_PATH> <DST_PATH> [ADDITIONAL_LIBS]"
|
||||||
echo " -zjJ compress flag passed to tar, '-z' by default"
|
|
||||||
echo " -n pack without compress"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pack() {
|
pack() {
|
||||||
|
@ -40,14 +38,6 @@ pack() {
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
-z|-j|-J)
|
|
||||||
compress_flag=$1
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
-n)
|
|
||||||
compress_flag=''
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
-h|--help)
|
-h|--help)
|
||||||
pack_help
|
pack_help
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user