From: Martin Mares Date: Tue, 7 Oct 2008 09:32:26 +0000 (+0200) Subject: Added a script to update the sf.net website. X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d7adb46c71cd8fbb4260b5d2d55db94b2d133ba2;p=pciids.git Added a script to update the sf.net website. --- diff --git a/scripts/update-sf.pl b/scripts/update-sf.pl new file mode 100755 index 0000000..9bde64e --- /dev/null +++ b/scripts/update-sf.pl @@ -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: