]> granicus.if.org Git - psmisc/commitdiff
build-sys: Ignore c files in temp directory
authorCraig Small <csmall@dropbear.xyz>
Thu, 28 Jan 2021 11:32:41 +0000 (22:32 +1100)
committerCraig Small <csmall@dropbear.xyz>
Thu, 28 Jan 2021 11:32:41 +0000 (22:32 +1100)
If the build system had a temporary psmisc-* directory
and update-potfiles was run, then the temporary files were included
in the list, causing a lot of problems later.

This update means we will ignore those files.

po/update-potfiles

index b9f620f8c42adc53da1e5e5bc85ce77f512957ac..247307d6f6d8d26d3aab8043e0d29fcd99749bf7 100755 (executable)
@@ -7,5 +7,6 @@ fi
 
 find . -name '*.c' |
        sort |
-       sed 's|^./||' > po/POTFILES.in
+       sed 's|^./||
+/^psmisc-/d' > po/POTFILES.in