Skip to content
Snippets Groups Projects
Commit c40ddf42 authored by chrfranke's avatar chrfranke
Browse files

os_win32/update-smart-drivedb.ps1.in: Avoid bogus SVN Id expansion.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5309 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 0bdae94f
No related branches found
No related tags found
No related merge requests found
......@@ -283,7 +283,8 @@ function unexpand_svn_id($source, $dest)
{
# For -NoNewLine:
#Requires -Version 5
(Get-Content -Raw -Path $source) -replace '\$Id: drivedb\.h [0-9][0-9]* 2[-0-9]* [012][:0-9]*Z [a-z][a-z0-9]* \$','$Id$' `
(Get-Content -Raw -Path $source) -replace `
('\$'+'Id: drivedb\.h [0-9][0-9]* 2[-0-9]* [012][:0-9]*Z [a-z][a-z0-9]* \$'),('$'+'Id'+'$') `
| Set-Content -NoNewLine -Path $dest
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment