Initial commit
This commit is contained in:
commit
c47f450934
11 changed files with 1271 additions and 0 deletions
16
util/add_tar.sh
Executable file
16
util/add_tar.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Usage: add_tar.sh <file> <pkgid> <flags>
|
||||
# Requires a recent GNU tar for compression autodetect and xz support.
|
||||
|
||||
|
||||
TMP=`mktemp -d manned.XXXXXXX`
|
||||
|
||||
# TODO: tar throws an error if there are no man pages. This isn't really an error, though.
|
||||
tar --warning=no-unknown-keyword -C "$TMP" $3 -xf "$1" --wildcards '*/man/*'\
|
||||
&& ./add_dir.pl "$TMP" "$2"
|
||||
RET=$?
|
||||
|
||||
rm -rf "$TMP"
|
||||
exit $RET
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue