diff options
Diffstat (limited to 'src/fullpkg')
-rwxr-xr-x | src/fullpkg/fullpkg-build | 18 | ||||
-rwxr-xr-x | src/fullpkg/fullpkg-find | 9 |
2 files changed, 10 insertions, 17 deletions
diff --git a/src/fullpkg/fullpkg-build b/src/fullpkg/fullpkg-build index b497db5..e52bff1 100755 --- a/src/fullpkg/fullpkg-build +++ b/src/fullpkg/fullpkg-build @@ -5,13 +5,13 @@ # TODO move __build to chroot -source /etc/makepkg.conf -source /etc/libretools.conf - -if [ -e $XDG_CONFIG_HOME/libretools/libretools.conf ]; then - source $XDG_CONFIG_HOME/libretools/libretools.conf -fi - +. libremessages +. $(librelib conf.sh) +load_files makepkg +load_files libretools +check_vars libretools FULLBUILDCMD || exit 1 +# The following variables are actually optional +#check_vars libretools HOOKPKGBUILDMOD HOOKLOCALRELEASE || exit 1 ## List packages on log that are on status ## usage: list_pkgs <status> <message> @@ -189,10 +189,6 @@ if "$CHECKNONFREE"; then check_nonfree fi -if [ -z "$FULLBUILDCMD" ]; then - error "Set your FULLBUILDCMD on libretools.conf" -fi - msg "$MESSAGE" __build diff --git a/src/fullpkg/fullpkg-find b/src/fullpkg/fullpkg-find index b09edf9..dbe65df 100755 --- a/src/fullpkg/fullpkg-find +++ b/src/fullpkg/fullpkg-find @@ -129,12 +129,9 @@ find_deps() { unset next_level dir } -source /etc/libretools.conf -source /etc/makepkg.conf - -if [ -e $XDG_CONFIG_HOME/libretools/libretools.conf ]; then - source $XDG_CONFIG_HOME/libretools/libretools.conf -fi +. libremessages +. $(librelib conf.sh) +load_files makepkg LEVEL=0 MAXLEVEL=20 |