Skip to content

Commit e2c016c

Browse files
committed
update
0 parents  commit e2c016c

File tree

5 files changed

+453
-0
lines changed

5 files changed

+453
-0
lines changed

Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
T := rezip
2+
3+
all: $T README.md
4+
5+
install: all
6+
makeinstall -f $T
7+
8+
mrproper:
9+
rm -fv README.md
10+
11+
README.md: $T
12+
$< -h | man2md > $@
13+
14+
-include ~/.github/Makefile.git

README.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
### NAME
2+
rezip - rezip file into other (.lz) format
3+
4+
### USAGE
5+
rezip [OPTIONS] FILE/DIR...
6+
7+
### DESCRIPTION
8+
Unzip and zip again input files into specified format. Unless it is
9+
requested by -f, directories and .zip files are kept alongside the
10+
rezipped file.
11+
12+
Zipped repositories repo-master.zip are automatically renamed to the
13+
repo-date.tar with the date of the last modification in the repo.
14+
15+
### OPTIONS
16+
-h This help.
17+
-n No zip.
18+
-f Force delete directories and .zip files after rezipping.
19+
-lz Lzip format (default).
20+
-bz2 Bzip2 format.
21+
-zst Zstd format.
22+
23+
### HANDLES
24+
directories input
25+
.gz/.tgz/.Z input
26+
.bz2 input/output
27+
.xz input
28+
.lz input/output
29+
.zst input/output
30+
.zip input
31+
32+
### REQUIRES
33+
perl,tar essential
34+
coreutils essential (stat,du,ls,mkdir,mv,rm,nice)
35+
gunzip for .gz handling
36+
unzip for .zip handling
37+
unxz for .xz handling
38+
bzip2/bunzip2 for .bz2 handling
39+
lzip/lunzip for .lz handling
40+
zstd/unzstd for .zst handling
41+
42+
### VERSION
43+
rezip.0.4 (c) R.Jaksa 2020, GPLv3
44+

TODO

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* add decompression/compression times (print them after the ls outputs)
2+
* add "in-advance" -master rename (by .zip inspection)
3+
* add verbose mode (print commands after the ls outputs)
4+
* add prediction-based progress (in separate thread, in place of ls output, using \r to reset)
5+
* add -i interactive mode

VERSION

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PACKAGE: rezip
2+
VERSION: 0.4

0 commit comments

Comments
 (0)