diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:17:20 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:17:20 +0900 |
commit | 7df2385c2f6c93f96e00bc87f2086066cae89ecc (patch) | |
tree | 79d5c20a494622eb084de831a2a51530cd421e33 /scripts/script.req | |
parent | b7a3bffb8e0341b7e4ef69def268bca3a7f279ff (diff) | |
download | rpm-tizen_2.2.tar.gz rpm-tizen_2.2.tar.bz2 rpm-tizen_2.2.zip |
Tizen 2.1 basesubmit/tizen_2.2/20130710.072219submit/tizen_2.1/20130423.104200accepted/tizen_2.1/20130423.1513382.2_release2.2.1_release2.1b_releasetizen_2.2tizen_2.1
Diffstat (limited to 'scripts/script.req')
-rwxr-xr-x | scripts/script.req | 9 |
1 files changed, 9 insertions, 0 deletions
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 |