mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
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:
parent
a7b441c4f1
commit
2fa577efd9
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue