build: replace _SYSCONFDIR_ with @sysconfdir@ (#6737)

For consistency, use the conventional autoconf variable name (see also
config.mk.in).

Commands used to search and replace:

    $ git grep -Ilz '_SYSCONFDIR_' | xargs -0 \
      perl -pi -e 's/_SYSCONFDIR_/\@sysconfdir\@/'

Added on commit a37ffc337 ("Add first version of zsh completion",
2021-01-02) / PR #3864.
This commit is contained in:
Kelvin M. Klann 2025-05-06 09:11:26 +00:00 committed by GitHub
parent a7b441c4f1
commit 2fa577efd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ all: firejail.bash_completion
firejail.bash_completion: firejail.bash_completion.in $(ROOT)/config.mk
$(GAWK) -f ../man/preproc.awk -- $(MANFLAGS) < $< > $@.tmp
sed "s|_SYSCONFDIR_|$(sysconfdir)|" < $@.tmp > $@
sed "s|@sysconfdir@|$(sysconfdir)|" < $@.tmp > $@
$(RM) $@.tmp
.PHONY: clean

View file

@ -15,7 +15,7 @@ _profiles() {
fi
}
_all_profiles() {
local sys_profiles=$(_profiles _SYSCONFDIR_/firejail)
local sys_profiles=$(_profiles @sysconfdir@/firejail)
local user_profiles=$(_profiles $HOME/.config/firejail)
COMPREPLY=($(compgen -W "${sys_profiles} ${user_profiles}" -- "$cur"))
}

View file

@ -10,7 +10,7 @@ all: _firejail
_firejail: _firejail.in $(ROOT)/config.mk
$(GAWK) -f ../man/preproc.awk -- $(MANFLAGS) < $< > $@.tmp
sed "s|_SYSCONFDIR_|$(sysconfdir)|" < $@.tmp > $@
sed "s|@sysconfdir@|$(sysconfdir)|" < $@.tmp > $@
$(RM) $@.tmp
.PHONY: clean

View file

@ -26,7 +26,7 @@ _profiles_with_ext() {
}
_all_profiles() {
_values 'profiles' $(_profiles _SYSCONFDIR_/firejail) $(_profiles $HOME/.config/firejail) $(_profiles_with_ext .)
_values 'profiles' $(_profiles @sysconfdir@/firejail) $(_profiles $HOME/.config/firejail) $(_profiles_with_ext .)
}
_session_bus_names() {