libCom: Recognize -pre and -rc in version snapshot.

This commit is contained in:
Andrew Johnson
2010-10-08 15:17:55 -05:00
parent dcd0fabe3b
commit 6f8c946d76
+2 -2
View File
@@ -27,9 +27,9 @@ while (<$VARS>) {
next if m/^\s*#/; # Skip comments
if (m/^EPICS_VERSION\s*=\s*(\d+)/) { $ver = $1; }
if (m/^EPICS_REVISION\s*=\s*(\d+)/) { $rev = $1; }
if (m/^EPICS_MODIFICATION\s*=\s*([0-9a-z]+)/) { $mod = $1; }
if (m/^EPICS_MODIFICATION\s*=\s*(\d+)/) { $mod = $1; }
if (m/^EPICS_PATCH_LEVEL\s*=\s*(\d+)/) { $patch = $1; }
if (m/^EPICS_DEV_SNAPSHOT\s*=\s*([DEV-]+)/) { $snapshot = $1; }
if (m/^EPICS_DEV_SNAPSHOT\s*=\s*([-\w]*)/) { $snapshot = $1; }
if (m/^COMMIT_DATE\s*=\s*"\\(.*)"/) { $commit_date = $1; }
}
close $VARS;