added wrapper

This commit is contained in:
Matthias Fulz 2021-06-29 22:51:24 +02:00
parent 146f6c25e5
commit cfa81e5f30
3 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@ LIBDIR ?= $(PREFIX)/lib
CNFDIR ?= /etc
ARCHBUILDER_LIB_DIR ?= $(LIBDIR)/$(PROGNM)
ARCHBUILDER_CONF_DIR ?= $(CNFDIR)/$(PROGNM)
ARCHBUILDER_VERSION ?= 0.9.1
ARCHBUILDER_VERSION ?= 0.9.2
.PHONY: install build archbuilder
@ -19,6 +19,7 @@ archbuilder: archbuilder.in
install-archbuilder: archbuilder
@install -Dm755 archbuilder -t '$(DESTDIR)$(BINDIR)'
@install -Dm755 archbuilderwrap -t '$(DESTDIR)$(BINDIR)'
install: install-archbuilder
@install -Dm644 lib/archbuilder.inc.sh -t '$(DESTDIR)$(LIBDIR)/$(PROGNM)'

View File

@ -12,6 +12,8 @@ readonly conf_dir='ARCHBUILDER_CONF_DIR'
. "${lib_dir}/archbuilder.inc.sh"
. "${lib_dir}/buildah.inc.sh"
test_file "${HOME}/.archbuilder/archbuilder.env" \
&& . "${HOME}/.archbuilder/archbuilder.env"
# internal params
unset _FLAG_KEEP

3
archbuilderwrap Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
archbuilder ${ARCHBUILDER_FLAGS} -- $*