Emit dependencies only to interpreters with absolute paths.
authorVille Skyttä <ville.skytta@iki.fi>
Wed, 10 Feb 2010 19:58:43 +0000 (21:58 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 11 Feb 2010 13:45:23 +0000 (15:45 +0200)
scripts/interpreter.req

index 3fee818..215bd50 100755 (executable)
@@ -2,5 +2,5 @@
 
 # TODO: handle #!/usr/bin/env somehow
 while read filename; do
-    sed -n -e '1s:^#![[:space:]]*\([^[:space:]]*\).*:\1:p' "$filename"
+    sed -n -e '1s:^#![[:space:]]*\(/[^[:space:]]\{1,\}\).*:\1:p' "$filename"
 done