Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

OS X has a slightly disappointing sed; use GNU sed instead on OS X

  • Loading branch information...
commit b91a8fdccc6ac7a0c02d99e5a06a04ce339b57c3 1 parent b3351bf
@tonyg authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 Makefile
View
8 Makefile
@@ -10,6 +10,12 @@ DIST_DIR=dist
SIGNING_KEY_ID=F8D7D525
VERSION=1.2.0
+ifeq ($(shell uname -s),Darwin)
+SED=gnused
+else
+SED=sed
+endif
+
all: $(TARGETS)
$(EBIN_DIR)/%.beam: $(SOURCE_DIR)/%.erl $(INCLUDES)
@@ -42,7 +48,7 @@ doc: doc/overview.edoc
erl -noshell \
-eval 'edoc:application(rfc4627, ".", [])' \
-run init stop
- sed -e 's:\(<p><i>Generated by EDoc\), .*\(</i></p>\):\1\2:' -i doc/*.html
+ $(SED) -e 's:\(<p><i>Generated by EDoc\), .*\(</i></p>\):\1\2:' -i doc/*.html
doc/overview.edoc: src/overview.edoc.in
sed -e 's:%%VERSION%%:$(VERSION):g' < $< > $@
Please sign in to comment.
Something went wrong with that request. Please try again.