]> mj.ucw.cz Git - pciids.git/commitdiff
Added GitHub updater script
authorThe PCI ID Mail Robot <pci-admins@ucw.cz>
Sat, 19 Sep 2015 13:51:29 +0000 (15:51 +0200)
committerThe PCI ID Mail Robot <pci-admins@ucw.cz>
Sat, 19 Sep 2015 13:51:29 +0000 (15:51 +0200)
scripts/update-github.sh [new file with mode: 0755]

diff --git a/scripts/update-github.sh b/scripts/update-github.sh
new file mode 100755 (executable)
index 0000000..a991523
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+cd ~/github
+ORIG=~/ids/docs/v2.2/pci.ids
+if ! cmp -s $ORIG pci.ids ; then
+       cp $ORIG pci.ids
+       git commit -a -m 'New snapshot generated'
+       git push
+fi