Skip to content

Commit aeeef30

Browse files
committed
Fix brotlibest, pd, xzbest, zipd
1 parent 7e2f3a7 commit aeeef30

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

bin/brotlibest

+21-19
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,31 @@ ShortOpt() {
2727
last=false
2828
havearg=false
2929
for option
30-
do if $last || $havearg
31-
then Push files "$option"
30+
do if $havearg
31+
then Push options "$option"
3232
havearg=false
3333
continue
3434
fi
35-
case $option in
36-
-)
35+
if ! $last
36+
then case $option in
37+
-)
3738
Push files "$option";;
38-
--)
39-
last=:
40-
continue;;
41-
--lgwin*|--large_window*)
42-
Push options "$option"
43-
skip_calc=:
44-
continue;;
45-
--*)
46-
Push options "$option"
47-
continue;;
48-
-*)
49-
ShortOpt "$option"
50-
Push options "$option"
51-
continue;;
52-
esac
39+
--)
40+
last=:
41+
continue;;
42+
--lgwin*|--large_window*)
43+
Push options "$option"
44+
skip_calc=:
45+
continue;;
46+
--*)
47+
Push options "$option"
48+
continue;;
49+
-*)
50+
ShortOpt "$option"
51+
Push options "$option"
52+
continue;;
53+
esac
54+
fi
5355
Push files "$option"
5456
done
5557

bin/pd

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Dopack() {
335335
if $tz4now
336336
then EchoCond "Creating $nameb"
337337
OptExternal lz4best
338-
"$lz4best" $quietopt "$nameb" "$destname.tar" \
338+
"$lz4best" $quietopt "$destname.tar" "$nameb" \
339339
|| Errunp 'lz4' "$nameb"
340340
fi
341341
Compare

bin/xzbest

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ then Push options -$(( $maxlogmemory - 17 ))
8888
fi
8989

9090
Xz() {
91-
FilesizeLog 23
91+
Filesizelog 23
9292
if [ x"$file" = x'-' ]
9393
then "$l" ${1+"$@"} -$(( $filesizelog - 17 ))e
9494
else "$l" ${1+"$@"} -$(( $filesizelog - 17 ))e -- "$file"

bin/zipd

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ do stat=0
7878
fi
7979
else PushTopack || {
8080
stat=2
81-
Error $stat "not creating empty archive $archive"
81+
Error $stat "not creating empty archive $name"
8282
}
8383
fi
8484
[ $stat -eq 0 ] && \

0 commit comments

Comments
 (0)