From: Siraaj Khandkar Date: Mon, 26 Aug 2019 18:07:24 +0000 (-0400) Subject: Add package install script and target X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=b2efbb10fde62c117ef00dbd1f7998780d6f3077;p=khome.git Add package install script and target --- diff --git a/Makefile b/Makefile index 6e44289..70a93f0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ MAKEFLAGS := --no-builtin-rules -.PHONY: install_home +.PHONY: install_home install_pkgs install_home: @cp -Rp home/bin $(HOME)/ @@ -14,3 +14,6 @@ install_home: @cp home/.mpdconf $(HOME)/ @cp home/.tmux.conf $(HOME)/ @cp home/.xbindkeysrc $(HOME)/ + +install_pkgs: install_pkgs.sh pkg-deb-install + ./install_pkgs.sh diff --git a/install_pkgs.sh b/install_pkgs.sh new file mode 100755 index 0000000..573217f --- /dev/null +++ b/install_pkgs.sh @@ -0,0 +1,3 @@ +#! /bin/sh + +sudo apt install $(awk '! /^\#/ && ! /^$/ {pkgs[$1]++} END {for (p in pkgs) {printf "%s%s", sep, p; sep = " "}}' pkg-deb-install)