update script for shellcheck; update Makefile
This commit is contained in:
parent
67a81829cf
commit
519be40dc0
2 changed files with 14 additions and 11 deletions
23
Makefile
23
Makefile
|
|
@ -15,16 +15,19 @@
|
||||||
# You should have received a copy of the GNU General Public License along
|
# 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.,
|
# 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/
|
SHARE_DIR = $(DESTDIR)$(PREFIX)/share
|
||||||
HOOKS_DIR=$(DESTDIR)/usr/share/libalpm/hooks/
|
SCRIPTS_DIR = $(SHARE_DIR)/libalpm/scripts/
|
||||||
|
HOOKS_DIR = $(SHARE_DIR)/libalpm/hooks/
|
||||||
|
|
||||||
|
.PHONY: check install
|
||||||
|
|
||||||
|
check:
|
||||||
|
@shellcheck -x snap-pac
|
||||||
|
|
||||||
.PHONY: install
|
|
||||||
install:
|
install:
|
||||||
install -d $(HOOKS_DIR)
|
@install -Dm755 snap-pac -t $(SCRIPTS_DIR)
|
||||||
install -d $(SCRIPTS_DIR)
|
@install -Dm644 *.hook -t $(HOOKS_DIR)
|
||||||
install -Dm 755 snap-pac $(SCRIPTS_DIR)
|
@install -Dm644 LICENSE -t $(SHARE_DIR)/licenses/$(PKGNAME)
|
||||||
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
|
|
||||||
|
|
|
||||||
2
snap-pac
2
snap-pac
|
|
@ -63,7 +63,7 @@ for CONFIG in $SNAPPER_CONFIGS; do
|
||||||
PACMAN_PRE_DESCRIPTION="$pacman_cmd"
|
PACMAN_PRE_DESCRIPTION="$pacman_cmd"
|
||||||
PACMAN_POST_DESCRIPTION="$pacman_cmd"
|
PACMAN_POST_DESCRIPTION="$pacman_cmd"
|
||||||
PACMAN_CLEANUP_ALGORITHM="number"
|
PACMAN_CLEANUP_ALGORITHM="number"
|
||||||
# shellcheck source=/etc/snapper/configs/root
|
# shellcheck source=/dev/null
|
||||||
source /etc/snapper/configs/"$CONFIG"
|
source /etc/snapper/configs/"$CONFIG"
|
||||||
|
|
||||||
[[ $PACMAN_PRE_POST != "yes" ]] && continue
|
[[ $PACMAN_PRE_POST != "yes" ]] && continue
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue