Permalink
Browse files

OSX compliant appfile version number substitution.

Signed-off-by: Michael Weibel
  • Loading branch information...
avtobiff committed Jun 8, 2012
1 parent 78d78ce commit fd74113416a9c07c85bd48faaefaaf339086c121
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
@@ -1,8 +1,8 @@
#!/usr/bin/make -f
APPFILE := uuid.app
-VERSION := $(shell sed -n '/vsn/ {s/.*,\s*"\([0-9][0-9.]*\)".*/\1/; p}' \
- src/$(APPFILE).src)
+VERSION := $(shell sed -n -e '/vsn/ {s/.*,\s*"\([0-9][0-9.]*\)".*/\1/' \
+ -e 'p' -e '}' src/$(APPFILE).src)
PREFIX ?= /usr
ERL_ROOT := $(PREFIX)/lib/erlang

0 comments on commit fd74113

Please sign in to comment.