mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 08:44:33 +00:00
Unmunge the version preservation code and obfuscate it so CVS won't munge
it all over again.
This commit is contained in:
parent
fa9401c129
commit
4e8b159f5e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89298
|
@ -57,10 +57,10 @@ MAIN:{
|
|||
}
|
||||
|
||||
foreach $service (keys(%SERVICES)) {
|
||||
$version = '$FreeBSD$';
|
||||
$version = '$' . 'FreeBSD' . '$';
|
||||
if (sysopen(FILE, $service, O_RDONLY)) {
|
||||
while (<FILE>) {
|
||||
next unless (m/(\$FreeBSD$]+\$)/);
|
||||
next unless (m/(\$[F]reeBSD.*?\$)/);
|
||||
$version = $1;
|
||||
last;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue