]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
build-man: Switch to ISO 8601 date
authorMartin Mareš <mj@ucw.cz>
Wed, 22 Apr 2026 09:55:10 +0000 (11:55 +0200)
committerMartin Mareš <mj@ucw.cz>
Wed, 22 Apr 2026 09:55:10 +0000 (11:55 +0200)
tools/build-man

index 599ea344bb81ebc636daeaf9cd8403bd9797cd87..cdd06399b165af92660fb65e0949b2eb7f42d667 100755 (executable)
@@ -6,10 +6,8 @@ if [ $# != 2 ] ; then
        exit 1
 fi
 
-TODAY=`echo $DATE | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'`
-
 sed <"$1" >"$2" "
-       s/@TODAY@/$TODAY/
+       s/@TODAY@/$DATE/
        s/@VERSION@/pciutils-$VERSION/
        s#@IDSDIR@#$IDSDIR#
        s#@PCI_IDS@#$PCI_IDS#