c987560802
```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 ```
23 lines
722 B
Diff
23 lines
722 B
Diff
# reason: print to $HOME by default
|
|
|
|
--- a/extra/cups-pdf.conf
|
|
+++ b/extra/cups-pdf.conf
|
|
@@ -42,17 +42,17 @@
|
|
### Key: Out (config)
|
|
## CUPS-PDF output directory
|
|
## special qualifiers:
|
|
## ${HOME} will be expanded to the user's home directory
|
|
## ${USER} will be expanded to the user name
|
|
## in case it is an NFS export make sure it is exported without
|
|
## root_squash!
|
|
### Default: /var/spool/cups-pdf/${USER}
|
|
|
|
-#Out /var/spool/cups-pdf/${USER}
|
|
+Out ${HOME}/PDF
|
|
|
|
### Key: AnonDirName (config)
|
|
## ABSOLUTE path for anonymously created PDF files
|
|
## if anonymous access is disabled this setting has no effect
|
|
### Default: /var/spool/cups-pdf/ANONYMOUS
|
|
|
|
#AnonDirName /var/spool/cups-pdf/ANONYMOUS
|