]> mj.ucw.cz Git - pciids.git/commitdiff
Put version number and release date to the header.
authorMartin Mares <mj@ucw.cz>
Tue, 7 Oct 2008 09:45:24 +0000 (11:45 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 7 Oct 2008 09:45:24 +0000 (11:45 +0200)
cf/head.ids
scripts/pciids-export

index 7de7f60b168b8b640e424a6d0bd8f7cbcfa8bce9..6527023bf7b265d21f4c0a3e5ff9e90d367a5409 100644 (file)
@@ -1,12 +1,14 @@
 #
 #      List of PCI ID's
 #
+#      Version: @VERSION@
+#      Date:    @DATE@
+#
 #      Maintained by Martin Mares <mj@ucw.cz> 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.
index c607cb590a53d41e7861213e718af3b736a2f20d..bf4f2e4ca7e48d2a8269f2f742e318204e4c59d1 100755 (executable)
@@ -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 <perl/cf/head.ids >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