]> mj.ucw.cz Git - pciids.git/commitdiff
Added a script to update the sf.net website.
authorMartin Mares <mj@ucw.cz>
Tue, 7 Oct 2008 09:32:26 +0000 (11:32 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 7 Oct 2008 09:32:26 +0000 (11:32 +0200)
scripts/update-sf.pl [new file with mode: 0755]

diff --git a/scripts/update-sf.pl b/scripts/update-sf.pl
new file mode 100755 (executable)
index 0000000..9bde64e
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+cd ~/sf.net
+rm -rf htdocs
+mkdir htdocs
+cd htdocs
+
+O=~/ids/docs
+cp -aL $O/static .
+cp -aL $O/{v2.2,pci.ids*} .
+sed <$O/index.html >index.html -e '
+       s@href="/read/@href="http://pci-ids.ucw.cz/read/@g
+'
+
+rsync -avz --delete ~/sf.net/htdocs mares,pciids@web.sourceforge.net: