From 6436a45cb2af7d8a0b61470e61fc59a38c8b7877 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Mon, 8 Sep 2008 21:38:11 +0200 Subject: [PATCH] New version of export script --- scripts/pciids-export | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/scripts/pciids-export b/scripts/pciids-export index 6b9c269..0dd9e51 100755 --- a/scripts/pciids-export +++ b/scripts/pciids-export @@ -20,14 +20,15 @@ set -e -cd ~vorner/www/pci-ids2.ucw.cz/ -cp /home/pciids/head.ids pci.ids.new -./scripts/export.pl | sed -e '/^ffff/r class_head.ids' >> pci.ids.new -if ! [ -f static/pci.ids ] || ! diff static/pci.ids pci.ids.new >/dev/null ; then - cp pci.ids.new ~/origs/00-current - mv pci.ids.new static/pci.ids - bzip2 -9c static/pci.ids.bz2 - gzip -9c static/pci.ids.gz -else - rm pci.ids.new +cp perl/cf/head.ids pci.ids.new +./perl/scripts/export.pl PC >> pci.ids.new +cat perl/cf/class_head.ids >> pci.ids.new +./perl/scripts/export.pl PD >> pci.ids.new +if ! [ -f docs/pci.ids ] || ! cmp static/pci.ids pci.ids.new >/dev/null ; then + ln pci.ids.new ~/origs/00-current + ln pci.ids.new docs/pci.ids + bzip2 -9c docs/pci.ids.bz2 + gzip -9c docs/pci.ids.gz fi + +rm pci.ids.new -- 2.39.5