pampanic / pam_panic

A PAM module that protects sensitive data and provides a panic function for emergency situations. Authentication through passwords or removable media.
GNU General Public License v3.0
56 stars 11 forks source link

Generate FILES section of man pages from build variables, Closes #38 #40

Closed Bandie closed 6 years ago

jordydickinson commented 6 years ago

This can be done without sed by adding files to the AC_CONFIG_FILES call at the end of configure.ac. If you add FILENAME to that list, when autoconf sees a FILENAME.in file, it will replace all occurrences of @PPASSFILE@ and other AC_SUBST variables enclosed in at signs with the value of the variable. You only have to do this with one .in file containing groff defines, which can then be cated to the top of the man page before gzipping

Bandie commented 6 years ago

We both (@jordydickinson and I) just found out that autotool is a very limited piece of software barely to understand.

Bandie commented 6 years ago

piping into gzip doesn't work properly. Using gzip -c - >$@ just doesn't work.

jordydickinson commented 6 years ago

It looks like it's sed's fault actually. sed shouldn't be writing directly to the files. It looks like $(SED) may in fact be some form of sed -i.

jordydickinson commented 6 years ago

Actually, separating it into two rules won't matter. You only need to do that for Make's dependency detection, which we don't really need in this case.

Bandie commented 6 years ago

:tada: