srcpkgs/[0-9]*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
for p in ${template%/template}/patches/*; do
sed -i '
\,^[+-][+-][+-] /dev/null,b
/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
s,^[*][*][*] ,&a/,
/^--- /{
s,\(^--- \)\(./\)*,\1a/,
s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1,
s/[.-][Oo][Rr][Ii][Gg]$//
s/[.]patched[.]\([^.]\)/.\1/
h
}
/^+++ -/{
g
s/^--- a/+++ b/
b
}
s,\(^+++ \)\(./\)*,\1b/,
' "$p"
done
sed -i '/^patch_args=/d' $template
done
```
2021-06-19 05:03:21 +02:00
|
|
|
--- a/doc/make-man.sh
|
|
|
|
+++ b/doc/make-man.sh
|
2021-06-16 00:17:23 +02:00
|
|
|
@@ -10,11 +10,9 @@ done
|
|
|
|
|
|
|
|
for i in ${man1}; do
|
|
|
|
lowdown -s -Tman doc/"${i}".md -o doc/man/man1/"${i}".1
|
|
|
|
- var=$(head -n1 < doc/man/man1/"${i}".1)
|
|
|
|
- var=$(printf '%s' "$var" | tr '7' '1')
|
|
|
|
- var="${var} \"\" \"General Commands Manual\""
|
|
|
|
- sed -i "s!^.TH.*!${var}!" doc/man/man1/"${i}".1
|
|
|
|
- sed -i '2,7d' doc/man/man1/"${i}".1
|
|
|
|
+ var=$(sed -n '/^.TH/p' doc/man/man1/"${f}".1 | tr '7' '1')
|
|
|
|
+ sed -i "s!^.TH.*!${var}!" doc/man/man1/"${f}".1
|
|
|
|
+ sed -i '4,8d' doc/man/man1/"${f}".1
|
|
|
|
done
|
|
|
|
|
|
|
|
man_5(){
|