summaryrefslogtreecommitdiff
path: root/mcon/pl
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>2008-05-28 11:19:25 +0000
committerrmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>2008-05-28 11:19:25 +0000
commit6ed168ff814db8f9bcaad6f2e218fb2bbacbdb1c (patch)
treed714e774455de2d2950794b5b3ebe9c9da43035e /mcon/pl
parent5de075ee96dc6fc8b18e37a70af93fca66bbfa25 (diff)
SVN revision number is now automatically generated in "revision.h".
The old patchlevel information is no longer used, and <PATCHLEVEL> is deprecated in unit files, replaced by <REVISION>. git-svn-id: https://dist.svn.sourceforge.net/svnroot/dist/trunk/dist@25 190e5f8e-a817-0410-acf6-e9863daed9af
Diffstat (limited to 'mcon/pl')
-rw-r--r--mcon/pl/configure.pl4
-rw-r--r--mcon/pl/lint.pl1
2 files changed, 4 insertions, 1 deletions
diff --git a/mcon/pl/configure.pl b/mcon/pl/configure.pl
index f78925f..a5aed29 100644
--- a/mcon/pl/configure.pl
+++ b/mcon/pl/configure.pl
@@ -110,7 +110,9 @@ sub process_command {
s/<PACKAGENAME>/$package/g;
s/<MAINTLOC>/$maintloc/g;
s/<VERSION>/$version/g; # This is metaconfig's version
- s/<PATCHLEVEL>/$patchlevel/g; # And patchlevel information
+ s/<REVISION>/$revision/g; # And revision information
+ warn "\"$file\": usage of <PATCHLEVEL> is deprecated\n"
+ if s/<PATCHLEVEL>/$patchlevel/g;
s/<DATE>/$date/g;
s/<BASEREV>/$baserev/g;
s/<\$(\w+)>/eval("\$$1")/ge; # <$var> -> $var substitution
diff --git a/mcon/pl/lint.pl b/mcon/pl/lint.pl
index ba5c407..c790011 100644
--- a/mcon/pl/lint.pl
+++ b/mcon/pl/lint.pl
@@ -115,6 +115,7 @@ sub init_extraction {
MAINTLOC
VERSION
PATCHLEVEL
+ REVISION
DATE
BASEREV
);