Skip to content

Commit

Permalink
Fixed bug in release script.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphieraccoon committed Mar 27, 2023
1 parent e303345 commit b296572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified milsymb.pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ $lastmod = git log -1 --format=%cs
-replace "\\vhEntry{$ver}{(.*?)}{(.*?}{.*?)}\n", "\vhEntry{$ver}{$lastmod}{$2}\n"
} | Set-Content milsymb.tex

Copy-Item -Path "LICENCE.md","README.md","milsymb.sty","milsymb.pdf","milsymb.tex","manual_examples" -Destination (New-Item -Type Directory "milsymb") -Recurse -Force
Copy-Item -Path "LICENCE.md","README.md","milsymb.sty","milsymb.pdf","milsymb.tex","manual_examples" -Destination (New-Item -Type Directory "milsymb") -Recurse
Set-Location -Path "milsymb"
ForEach-Object -InputObject "LICENCE.md","README.md","milsymb.sty","milsymb.tex","manual_examples/mef.tex" -Process {((Get-Content $_) -join "`n") + "`n" | Set-Content -NoNewline $_}
"LICENCE.md","README.md","milsymb.sty","milsymb.tex","manual_examples/mef.tex" | ForEach-Object -Process {((Get-Content $_) -join "`n") + "`n" | Set-Content -NoNewline $_}
Set-Location -Path "..\"
Compress-Archive -Path "milsymb" -Destination "milsymb.zip" -Force
Compress-Archive -Path "milsymb" -Destination "milsymb.zip" -Update
Remove-Item -Recurse ".\milsymb\"

Set-Content release_${ver}_description.txt -Value "$ver $lastmod $desc"
Expand Down

0 comments on commit b296572

Please sign in to comment.