Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix sed

  • Loading branch information...
commit 51ebb12cb66d4a59ed6bf7c1d1054db21a8600d9 1 parent ee511f4
@rolfbjarne rolfbjarne authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  MonkeyWrench/Makefile
View
2  MonkeyWrench/Makefile
@@ -27,7 +27,7 @@ publish install: all
generate-assembly-info:
@cp AssemblyInfo.cs.in AssemblyInfo.tmp
- @sed -e "s/.*AssemblyDescription.*/[assembly: AssemblyDescription (@\"MonkeyWrench (branch: `git branch | grep "^[*] " | sed 's/^[*] //'` commit #`git log --pretty=format:''|wc -l` sha: `git log --pretty=format:'%h' -1` date: `git log --pretty=format:'%ci' -1`) subject: `git log --pretty=format:'%s' -1 | sed 's_\\"_\\\\\\\\"_g' | sed 's_/__g'`)\")]/" \
+ @sed -e "s/.*AssemblyDescription.*/[assembly: AssemblyDescription (@\"MonkeyWrench (branch: `git branch | grep "^[*] " | sed 's/^[*] //'` commit #`git log --pretty=format:''|wc -l` sha: `git log --pretty=format:'%h' -1` date: `git log --pretty=format:'%ci' -1`) subject: `git log --pretty=format:'%s' -1 | sed 's_\\"_\\"\\"_g' | sed 's_/__g'`)\")]/" \
-e "s/.*AssemblyVersion.*/[assembly: AssemblyVersion (\"1.0.0.`git log --pretty=format:''|wc -l`\")]/" AssemblyInfo.cs.in > AssemblyInfo.tmp
@(if ! diff -u AssemblyInfo.cs AssemblyInfo.tmp > /dev/null 2>&1; then echo Updating AssemblyInfo.cs; cp -p AssemblyInfo.tmp AssemblyInfo.cs; else echo AssemblyInfo.cs is up to date; fi)
Please sign in to comment.
Something went wrong with that request. Please try again.