From: Martin Mares Date: Tue, 7 Oct 2008 09:45:24 +0000 (+0200) Subject: Put version number and release date to the header. X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=be30d8c3bc59dfa2b44d331bc5a2c06aa5c3fb33;p=pciids.git Put version number and release date to the header. --- diff --git a/cf/head.ids b/cf/head.ids index 7de7f60..6527023 100644 --- a/cf/head.ids +++ b/cf/head.ids @@ -1,12 +1,14 @@ # # List of PCI ID's # +# Version: @VERSION@ +# Date: @DATE@ +# # Maintained by Martin Mares and other volunteers from the -# Linux PCI ID's Project at http://pciids.sf.net/. +# PCI ID Project at http://pciids.sf.net/. # -# New data are always welcome, especially if accurate. If you have -# anything to contribute, please follow the instructions at the web site -# or send a diff -u against the most recent pci.ids to pci-ids@ucw.cz. +# New data are always welcome, especially if they are accurate. If you have +# anything to contribute, please follow the instructions at the web site. # # This file can be distributed under either the GNU General Public License # (version 2 or higher) or the 3-clause BSD License. diff --git a/scripts/pciids-export b/scripts/pciids-export index c607cb5..bf4f2e4 100755 --- a/scripts/pciids-export +++ b/scripts/pciids-export @@ -26,9 +26,9 @@ cat cf/class_head.ids >> ../pci.ids.new ./scripts/export.pl PD >> ../pci.ids.new cd .. if ! [ -f docs/pci.ids.nohead ] || ! cmp docs/pci.ids.nohead pci.ids.new >/dev/null ; then - cp perl/cf/head.ids pci.ids.final - echo '# Generated at: '`date '+%F %T'` >> pci.ids.final - echo >> pci.ids.final + VERSION=`date '+%Y.%m.%d'` + DATE=`date '+%F %T'` + sed pci.ids.final -e "s/@VERSION@/$VERSION/;s/@DATE@/$DATE/' cat pci.ids.new >> pci.ids.final ln -f pci.ids.final ~/origs/00-current ln -f pci.ids.final docs/pci.ids