Skip to content

Commit

Permalink
Change from shebangs with absolute references to using /usr/bin/env
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Pfeiffer committed Nov 18, 2013
1 parent 13b182f commit 3558c7c
Show file tree
Hide file tree
Showing 65 changed files with 67 additions and 67 deletions.
2 changes: 1 addition & 1 deletion benchmarks/build.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

$bmarks = `cat ALL`;
@bm = split(/\n/, $bmarks);
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/run.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

$bmarks = `cat ALL`;
@bm = split(/\n/, $bmarks);
Expand Down
2 changes: 1 addition & 1 deletion src/IRTS/CodegenJava.hs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ cleanUpTmp tgtDir = do

jarHeader :: String
jarHeader =
"#!/bin/sh\n"
"#!/usr/bin/env sh\n"
++ "MYSELF=`which \"$0\" 2>/dev/null`\n"
++ "[ $? -gt 0 -a -f \"$0\" ] && MYSELF=\"./$0\"\n"
++ "java=java\n"
Expand Down
4 changes: 2 additions & 2 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ test_llvm:
@perl ./runtest.pl test031 --codegen llvm

update:
perl ./runtest.pl all -u
/usr/bin/env perl ./runtest.pl all -u

diff:
perl ./runtest.pl all -d
/usr/bin/env perl ./runtest.pl all -d

distclean:
rm -f *~
Expand Down
4 changes: 2 additions & 2 deletions test/mktest.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

if ($#ARGV>=0) {
$test=shift(@ARGV);
Expand All @@ -12,7 +12,7 @@
chdir($test);
open(FOO,">run");

print FOO "#!/bin/bash\n";
print FOO "#!/usr/bin/env bash\n";
print FOO "idris \$@ $test.idr -o $test\n";
print FOO "./$test\n";print FOO "rm -f $test *.ibc\n";

Expand Down
2 changes: 1 addition & 1 deletion test/reg001/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris reg001.idr --check
rm -rf reg001.ibc

2 changes: 1 addition & 1 deletion test/reg002/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris reg002.idr -o reg002
./reg002
rm -f reg002 *.ibc
2 changes: 1 addition & 1 deletion test/reg003/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris --check reg003.idr
idris --check reg003a.idr
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg004/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg004.idr -o reg004
./reg004
rm -f reg004 *.ibc
2 changes: 1 addition & 1 deletion test/reg005/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg005.idr -o reg005
./reg005
rm -f reg005 *.ibc
2 changes: 1 addition & 1 deletion test/reg006/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg006.idr -o reg006
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg007/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris --check $@ reg007.lidr
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg008/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg008.idr --check
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg009/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg009.lidr --check
rm -f reg009 *.ibc
2 changes: 1 addition & 1 deletion test/reg010/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg010.idr --check --nocolour
2 changes: 1 addition & 1 deletion test/reg011/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg011.idr --check
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg012/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg012.lidr --check
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg013/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg013.idr -o reg013
./reg013
rm -f reg013 *.ibc
2 changes: 1 addition & 1 deletion test/reg014/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg014.idr --check
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg015/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg015.idr --check
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg016/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg016.idr -o reg016
./reg016
rm -f reg016 *.ibc
2 changes: 1 addition & 1 deletion test/reg017/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg017.idr -o reg017
./reg017
rm -f reg017 *.ibc
2 changes: 1 addition & 1 deletion test/reg018/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg018a.idr --check
idris $@ reg018b.idr --check
idris $@ reg018c.idr --check
Expand Down
2 changes: 1 addition & 1 deletion test/reg019/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg019.idr --check
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg020/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg020.idr -o reg020
./reg020
rm -f reg020 *.ibc
2 changes: 1 addition & 1 deletion test/reg021/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg021.idr --check
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg022/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg022.idr --check
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg023/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg023.idr --check
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/reg024/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg024.idr -o reg024
./reg024
rm -f reg024 *.ibc
2 changes: 1 addition & 1 deletion test/reg025/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg025.idr -o reg025
./reg025
rm -f reg025 *.ibc
2 changes: 1 addition & 1 deletion test/reg026/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ reg026.idr --check reg026
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/runtest.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

use strict;
use Cwd;
Expand Down
2 changes: 1 addition & 1 deletion test/test001/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test001.idr -o test001
./test001
rm -f test001 test001.ibc
2 changes: 1 addition & 1 deletion test/test002/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test002.idr --check --noprelude
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/test003/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test003a.lidr --check
idris $@ test003.lidr -o test003
./test003
Expand Down
2 changes: 1 addition & 1 deletion test/test004/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test004.idr -o test004
./test004
rm -f test004 test004.ibc testfile
2 changes: 1 addition & 1 deletion test/test005/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test005.idr -o test005
./test005
rm -f test005 test005.ibc
2 changes: 1 addition & 1 deletion test/test006/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test006.idr -o test006
./test006
rm -f test006 test006.ibc
2 changes: 1 addition & 1 deletion test/test007/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test007.idr -o test007
./test007
rm -f test007 test007.ibc
2 changes: 1 addition & 1 deletion test/test008/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test008.idr -o test008
./test008
rm -f test008 test008.ibc
2 changes: 1 addition & 1 deletion test/test009/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test009.idr -o test009
./test009
rm -f test009 test009.ibc
2 changes: 1 addition & 1 deletion test/test010/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test010.idr -o test010
idris $@ test010a.idr -o test010
idris $@ test010b.idr -o test010
Expand Down
2 changes: 1 addition & 1 deletion test/test011/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test011.idr -o test011
./test011
rm -f test011 test011.ibc
2 changes: 1 addition & 1 deletion test/test012/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test012a.idr -o test012a
2 changes: 1 addition & 1 deletion test/test013/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test013.idr -o test013
./test013
rm -f test013 test013.ibc
2 changes: 1 addition & 1 deletion test/test014/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test014.idr -o test014
./test014
rm -f test014 resimp.ibc test014.ibc
2 changes: 1 addition & 1 deletion test/test015/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test015.idr -o test015
./test015
rm -f test015 parity.ibc test015.ibc
2 changes: 1 addition & 1 deletion test/test016/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test016.idr -o test016
./test016
rm -f test016 *.ibc
2 changes: 1 addition & 1 deletion test/test017/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ --check test017.idr
idris $@ --check test017a.idr
idris $@ --check test017b.idr
Expand Down
2 changes: 1 addition & 1 deletion test/test018/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test018.idr -o test018
idris $@ test018a.idr -o test018a
./test018
Expand Down
2 changes: 1 addition & 1 deletion test/test019/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test019.lidr -o test019
./test019
rm -f test019 *.ibc
2 changes: 1 addition & 1 deletion test/test020/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test020.idr -o test020
idris $@ test020a.idr --check --nocolor
./test020
Expand Down
2 changes: 1 addition & 1 deletion test/test021/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris -p effects $@ test021.idr -o test021
idris -p effects $@ test021a.idr -o test021a
./test021
Expand Down
2 changes: 1 addition & 1 deletion test/test022/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
echo ":x x" | idris --quiet test022.idr
rm -f test021 test021a *.ibc
2 changes: 1 addition & 1 deletion test/test023/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris --quiet test023.idr -o test023
rm -f test023 *.ibc
2 changes: 1 addition & 1 deletion test/test024/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris --quiet test024.idr < input
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/test025/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris -p effects $@ test025.idr -o test025
./test025
rm -f test025 *.ibc
2 changes: 1 addition & 1 deletion test/test026/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris --quiet test026.idr < input
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/test027/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test027.idr -o test027
./test027
rm -f test027 *.ibc
2 changes: 1 addition & 1 deletion test/test028/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test028.idr -o test028
./test028
rm -f test028 test028.ibc
2 changes: 1 addition & 1 deletion test/test029/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test029.idr --check test029
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/test030/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test030.idr --check --nocolour
idris $@ test030a.idr --check --nocolour
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/test031/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ test031.idr -o test031
./test031
rm -f test031 *.ibc
2 changes: 1 addition & 1 deletion test/test032/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
idris --quiet test032.idr < input
rm -f *.ibc
2 changes: 1 addition & 1 deletion test/test033/run
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
idris $@ -o test033 test033.idr
./test033
rm -f *.ibc test033

0 comments on commit 3558c7c

Please sign in to comment.