aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpkg_add.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg_add.sh b/pkg_add.sh
new file mode 100755
index 0000000..9c26baa
--- /dev/null
+++ b/pkg_add.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+PKG_FILE="packages.v2.tsv"
+LINE="$1\t$2\t$3\t$4\t$5\t$6\n"
+COMMIT="Add package $1 to the index"
+
+printf "$LINE" >> $PKG_FILE
+sort $PKG_FILE -o $PKG_FILE
+make
+git commit -m "$COMMIT" packages.*