Permalink
Browse files

doc: expect sed in /usr/bin. env is no good use.

  • Loading branch information...
kaos committed Oct 30, 2012
1 parent e0a1365 commit 4b533b850066cd6384ffb61e8f41292f8faf8788
Showing with 8 additions and 2 deletions.
  1. +6 −1 doc/ref/tags/.generate
  2. +1 −1 doc/ref/tags/.get_tags
  3. +1 −0 doc/ref/tags/.ignore
View
@@ -1,11 +1,16 @@
#!/bin/bash
+if [ ! -x /usr/bin/sed ]; then
+ echo "sed not found in /usr/bin, please consider adding a symlink to it there." &>2
+ exit 1
+fi
+
scanner=$ZOTONIC_SRC/src/erlydtl/erlydtl_scanner.erl
dir=${0%/*}
for tag in `$dir/.get_tags $scanner`
do
- if grep $tag $dir/.ignore >/dev/null; then
+ if grep "$tag" $dir/.ignore >/dev/null; then
continue
fi
View
@@ -1,4 +1,4 @@
-#!/usr/bin/env sed -f
+#!/usr/bin/sed -f
# operate on the first lines of the identifier_to_keyword fun
# that mentions open_tag (guard clause), and down until the
View
@@ -1,2 +1,3 @@
else
elseif
+elif

0 comments on commit 4b533b8

Please sign in to comment.