diff options
author | Loïc Hoguin <[email protected]> | 2014-08-21 14:57:43 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-08-21 14:57:43 +0300 |
commit | 01e4b42fbc2adff20e0f1922d4e5447c7a02c554 (patch) | |
tree | 5b1727bf920992b5243ad659851c3c58bf3b4b61 /pkg_add.sh | |
parent | 5d021bf639417c663c8d68636e89952598c51368 (diff) | |
download | erlang.mk-01e4b42fbc2adff20e0f1922d4e5447c7a02c554.tar.gz erlang.mk-01e4b42fbc2adff20e0f1922d4e5447c7a02c554.tar.bz2 erlang.mk-01e4b42fbc2adff20e0f1922d4e5447c7a02c554.zip |
Add a script to easily add packages to the index properly
Diffstat (limited to 'pkg_add.sh')
-rwxr-xr-x | pkg_add.sh | 10 |
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.* |