Skip to content
Browse files

doc: Make 'make stubs' more portable

  • Loading branch information...
1 parent fb552ce commit d51aa3cc5bf8087150dcc3f9535b72bfaf2a9530 @arjan arjan committed Nov 16, 2012
Showing with 5 additions and 3 deletions.
  1. +2 −2 doc/ref/tags/.generate
  2. +3 −1 doc/ref/tags/.get_tags
View
4 doc/ref/tags/.generate
@@ -1,7 +1,7 @@
#!/bin/bash
-if [ ! -x /usr/bin/sed ]; then
- echo "sed not found in /usr/bin, please consider adding a symlink to it there." &>2
+if ! which sed > /dev/null; then
+ echo "sed not found!" 1>&2
exit 1
fi
View
4 doc/ref/tags/.get_tags
@@ -1,4 +1,5 @@
-#!/usr/bin/sed -f
+#!/bin/sh
+exec sed -f - -- "$@" <<'EOF'
# operate on the first lines of the identifier_to_keyword fun
# that mentions open_tag (guard clause), and down until the
@@ -23,3 +24,4 @@
# delete everything else
d
+EOF

0 comments on commit d51aa3c

Please sign in to comment.
Something went wrong with that request. Please try again.