summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/plan9/versnum
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-30 08:00:34 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-30 08:00:34 +0000
commitebf0e4c599bca88436539559ca7c08c69ed197bf (patch)
treee362bb5a7d421f975e2c52ccd13c7479b8f6f175 /gnu/usr.bin/perl/plan9/versnum
parent3d06de7fcff1d605886d3c63220956f7260ddb84 (diff)
perl5.005_03
Diffstat (limited to 'gnu/usr.bin/perl/plan9/versnum')
-rw-r--r--gnu/usr.bin/perl/plan9/versnum8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/usr.bin/perl/plan9/versnum b/gnu/usr.bin/perl/plan9/versnum
new file mode 100644
index 00000000000..83e46826c34
--- /dev/null
+++ b/gnu/usr.bin/perl/plan9/versnum
@@ -0,0 +1,8 @@
+/PATCHLEVEL/ {base = $3}
+/SUBVERSION/ {subvers = $3}
+END {
+if (subvers == 0)
+ printf "p9pvers = 5.%03d\n", base> "buildinfo";
+else
+ printf "p9pvers = 5.%03d_%02d\n" , base, subvers> "buildinfo";
+}