depot/third_party/nixpkgs/pkgs/os-specific/linux/hibernate/gen-manpages.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

11 lines
495 B
Diff

--- hibernate-script-1.98.1/gen-manpages.sh 2008-03-31 09:40:29.000000000 +0200
+++ hibernate-script-1.98.1/gen-manpages.sh 2008-04-01 15:58:11.000000000 +0200
@@ -254,7 +254,7 @@ BEGIN {
}
# Create a copy of hibernate.sh with only the help items
-TMPF=`mktemp /tmp/tmp.hibernate.XXXXXX`
+TMPF=`mktemp "$TMPDIR/tmp.hibernate.XXXXXX"`
awk '{
if ((substr($0, 1, 1) != "#") && (match($0, "AddConfigHelp") || match($0, "AddOptionHelp")) && (match($0, "\\(\\)") == 0)) {
print $0;