From 7df2385c2f6c93f96e00bc87f2086066cae89ecc Mon Sep 17 00:00:00 2001 From: Jinkun Jang Date: Tue, 12 Mar 2013 15:17:20 +0900 Subject: Tizen 2.1 base --- scripts/script.req | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/script.req (limited to 'scripts/script.req') diff --git a/scripts/script.req b/scripts/script.req new file mode 100755 index 0000000..950dc4a --- /dev/null +++ b/scripts/script.req @@ -0,0 +1,9 @@ +#!/bin/sh + +# TODO: handle "#!/usr/bin/env foo" somehow +while read filename; do + # common cases + sed -n -e '1s:^#![[:space:]]*\(/[^[:space:]]\{1,\}\).*:\1:p' "$filename" + #!/usr/bin/env /foo/bar + sed -n -e '1s:^#![[:space:]]*[^[:space:]]*/bin/env[[:space:]]\{1,\}\(/[^[:space:]]\{1,\}\):\1:p' "$filename" +done -- cgit v1.2.3