Changelog, new vesion 0.3.0, include version in programs

This commit is contained in:
2018-12-03 00:06:19 +01:00
parent dfe784f8ba
commit db022333e1
7 changed files with 13 additions and 7 deletions

View File

@ -2,7 +2,8 @@ SUBDIRS = applications icons/48x48 icons/64x64 icons/scalable
bin_SCRIPTS = pam_panic_config
%: %.prebuild.sh
{ sldr=$$(echo "$(SECUREDIR)" | $(SED) 's/\//\\\//g'); bdr=$$(echo "$(bindir)" | $(SED) 's/\//\\\//g'); $(SED) "s/__SECURELIBDIR__/$$sldr/;s/__PAMPANICPW__/$$bdr\/pam_panic_pw/" $< > $@ ; }
make clean-local
{ sldr=$$(echo "$(SECUREDIR)" | $(SED) 's/\//\\\//g'); bdr=$$(echo "$(bindir)" | $(SED) 's/\//\\\//g'); version=$$(echo $(VERSION)); $(SED) "s/__SECURELIBDIR__/$$sldr/;s/__PAMPANICPW__/$$bdr\/pam_panic_pw/;s/__VERSION__/$$version/" $< > $@ ; }
chmod +x $@
clean-local:

View File

@ -11,7 +11,7 @@ LHBU="$HOME/LUKSHeaderBackup"
# Set on build time
SECUREDIR="__SECURELIBDIR__"
PAMPANICPW="__PAMPANICPW__"
VERSION="__VERSION__"
# Localization
N_(){
@ -20,7 +20,7 @@ N_(){
NOT_BUILT=$(N_ "ERROR: Bash script was not built correctly.")
RUN_AS_ROOT=$(N_ "Please run this script as root or use sudo.")
BACKTITLE=$(N_ "pam_panic's Configuration Generator.")
BACKTITLE="$(N_ "pam_panic's Configuration Generator.") Version $VERSION"
BYE=$(N_ "Bye! :)")
OK=$(N_ "OK")
CANCEL=$(N_ "Cancel")