]> mj.ucw.cz Git - pciids.git/blob - scripts/update-sf.pl
Typo
[pciids.git] / scripts / update-sf.pl
1 #!/bin/sh
2 set -e
3 cd ~/sf.net
4 rm -rf htdocs
5 mkdir htdocs
6 cd htdocs
7
8 O=~/ids/docs
9 cp -aL $O/static .
10 cp -aL $O/{v2.2,pci.ids*} .
11 sed <$O/index.html >index.html -e '
12         s@href="/\(read\|mods\)/@href="http://pci-ids.ucw.cz/\1/@g
13 '
14
15 rsync -avz --delete ~/sf.net/htdocs mares,pciids@web.sourceforge.net: