Add package install script and target
authorSiraaj Khandkar <siraaj@khandkar.net>
Mon, 26 Aug 2019 18:07:24 +0000 (14:07 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Mon, 26 Aug 2019 18:07:38 +0000 (14:07 -0400)
Makefile
install_pkgs.sh [new file with mode: 0755]

index 6e44289..70a93f0 100644 (file)
--- 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 (executable)
index 0000000..573217f
--- /dev/null
@@ -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)
This page took 0.029966 seconds and 4 git commands to generate.