summaryrefslogtreecommitdiff
path: root/bin/contrib/fix-rc-scripts
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2024-04-07 13:25:49 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2024-04-07 13:25:49 +0200
commit9cb56dabb676391a9382731347e8d2b07b9437a5 (patch)
tree95302f041497679202722d9896ec1386bed2d86c /bin/contrib/fix-rc-scripts
parent0a37a1cc5909e11098963267edc9654b85e7ce16 (diff)
big cleanup
Diffstat (limited to 'bin/contrib/fix-rc-scripts')
-rwxr-xr-xbin/contrib/fix-rc-scripts27
1 files changed, 0 insertions, 27 deletions
diff --git a/bin/contrib/fix-rc-scripts b/bin/contrib/fix-rc-scripts
deleted file mode 100755
index beb21c5..0000000
--- a/bin/contrib/fix-rc-scripts
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/local/plan9/bin/rc
-
-# Fix rc shell scripts to find rc without launching env every time.
-# Invoke with rc and plan9 versions of grep and ed in $PATH
-
-# If your system lacks which (e.g. some gnu/linux)
-# substitute the full path to rc in this line:
-rc=/usr/local/plan9/bin/rc
-firstline='#!'$"rc
-
-if(~ $#* 0) files = *
-if not files = $*
-
-myname = `{basename $0}
-
-for(file in $files) {
- if(test -d $file) $0 $file/*
- if not if(~ $file *$myname) {}
- if not if(sed 1q $file | grep '^#!/.*[/ ]rc$' > /dev/null) {
- {
- echo 1c
- echo $firstline
- echo .
- echo wq
- } | ed $file > /dev/null
- }
-}