Skip to content

Commit

Permalink
Use echo -e for generating version.go
Browse files Browse the repository at this point in the history
Flag -e is to "enable interpretation of backslash escapes"
Which might be a default, depends on a shell.

sh -c 'echo "a\nb"' on my OS prints "a\nb" (no newline)
  • Loading branch information
starsep committed Sep 3, 2024
1 parent 00f431c commit 6736eb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ $(GOBIN)/rice:
# Embed the current version numbers in the executable by writing version.go
.PHONY: version.go
version.go:
@echo "// DO NOT EDIT: Autogenerated by Makefile\n" > version.go
@echo "package main\n" >> version.go
@echo -e "// DO NOT EDIT: Autogenerated by Makefile\n" > version.go
@echo -e "package main\n" >> version.go
@echo "const DesktopVersion = \"$(DESKTOP_VERSION)\"" >> version.go
@echo "const EditorVersion = \"$(EDITOR_VERSION)\"" >> version.go

Expand Down

0 comments on commit 6736eb2

Please sign in to comment.