update script for shellcheck; update Makefile

This commit is contained in:
James Barnett 2016-06-09 16:07:35 -05:00
parent 67a81829cf
commit 519be40dc0
2 changed files with 14 additions and 11 deletions

View file

@ -15,16 +15,19 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
.DEFAULT = install
PKGNAME = snap-pac
PREFIX ?= /usr/local
SCRIPTS_DIR=$(DESTDIR)/usr/share/libalpm/scripts/
HOOKS_DIR=$(DESTDIR)/usr/share/libalpm/hooks/
SHARE_DIR = $(DESTDIR)$(PREFIX)/share
SCRIPTS_DIR = $(SHARE_DIR)/libalpm/scripts/
HOOKS_DIR = $(SHARE_DIR)/libalpm/hooks/
.PHONY: check install
check:
@shellcheck -x snap-pac
.PHONY: install
install:
install -d $(HOOKS_DIR)
install -d $(SCRIPTS_DIR)
install -Dm 755 snap-pac $(SCRIPTS_DIR)
install -Dm 644 00_snapper-pre.hook $(HOOKS_DIR)
install -Dm 644 zz_snapper-post.hook $(HOOKS_DIR)
install -Dm 644 LICENSE $(DESTDIR)/usr/share/licenses/snap-pac/LICENSE
@install -Dm755 snap-pac -t $(SCRIPTS_DIR)
@install -Dm644 *.hook -t $(HOOKS_DIR)
@install -Dm644 LICENSE -t $(SHARE_DIR)/licenses/$(PKGNAME)

View file

@ -63,7 +63,7 @@ for CONFIG in $SNAPPER_CONFIGS; do
PACMAN_PRE_DESCRIPTION="$pacman_cmd"
PACMAN_POST_DESCRIPTION="$pacman_cmd"
PACMAN_CLEANUP_ALGORITHM="number"
# shellcheck source=/etc/snapper/configs/root
# shellcheck source=/dev/null
source /etc/snapper/configs/"$CONFIG"
[[ $PACMAN_PRE_POST != "yes" ]] && continue