Added the appropriate #! magic at the beginning of shell scripts. (Some modern shells don't like scripts to be without it.)

This commit is contained in:
dtrg
2006-07-18 16:45:57 +00:00
40 changed files with 73 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
#!/bin/sh
set -e
trap "rm -f /tmp/xx$$" 0 1 2 3 15
case $2 in

View File

@@ -1,3 +1,5 @@
#!/bin/sh
if ( cd $1 ) 2>/dev/null
then
:

View File

@@ -1,4 +1,5 @@
#! /bin/sh
case $0 in
*/first)
FDIR=`expr $0 : '\(.*\)/first'`

View File

@@ -1,3 +1,5 @@
#!/bin/sh
if read ANS
then echo
else echo "Sorry, got EOF when reading your answer"

View File

@@ -1,3 +1,5 @@
#!/bin/sh
know_target=0
case $SYSNAME in
vax*|i386|sun*|sparc*|m68_sysV_0|m68020|mantra|pmds4|m68k4)

View File

@@ -1,3 +1,5 @@
#!/bin/sh
rm -f em_path.h
echo "You will now be asked for the root directory of the ACK sources.
This directory will not be changed by the installation process.

View File

@@ -1,3 +1,5 @@
#!/bin/sh
while :
do
echo $E_FLAG "Which system-call library do you want to install for the VAX?

View File

@@ -1,3 +1,5 @@
#!/bin/sh
set -e
PATH=::$CONFIG/bin:$UTIL_HOME/bin:/usr/ccs/bin:/usr/ucb:$PATH
@@ -6,8 +8,15 @@ export PATH
$SRC_HOME/first/create_dir $CONFIG
$SRC_HOME/first/create_dir $CONFIG/bin
echo "PATH=:$CONFIG/bin:$UTIL_HOME/bin:$PATH; export PATH" > $CONFIG/bin/TakeAction
cat $SRC_HOME/TakeAction >> $CONFIG/bin/TakeAction
(
# Slight complication here to ensure that the #! magic at the
# beginning of TakeAction is preserved correctly.
head -1 $SRC_HOME/TakeAction
echo "PATH=:$CONFIG/bin:$UTIL_HOME/bin:$PATH; export PATH"
tail +2 $SRC_HOME/TakeAction
) > $CONFIG/bin/TakeAction
sed '/^#PARAMS/r make_macros' < $SRC_HOME/first/mk_makefile > $CONFIG/bin/mk_makefile
cp $SRC_HOME/first/create_dir $CONFIG/bin/create_dir
cp $SRC_HOME/first/cp_dir $CONFIG/bin/cp_dir

View File

@@ -1,3 +1,5 @@
#!/bin/sh
while :
do
echo "The libraries will end up in the machine-independent part of the

View File

@@ -1,3 +1,5 @@
#!/bin/sh
for i in $DISABLE_LANG
do
ed -s $CONFIG/Action <<EOF

View File

@@ -1,3 +1,4 @@
#!/usr/bin/make
# There are two choices for lint here: ACK lint and Unix lint.
# The current setup is for ACK lint. If you want to use the Unix lint,

View File

@@ -1,9 +1,12 @@
#!/bin/sh
set -e
create_dir $CONFIG
create_dir $CONFIG/bin
echo "echo $SYSNAME" > $CONFIG/bin/ack_sys
echo "#!/bin/sh" > $CONFIG/bin/ack_sys
echo "echo $SYSNAME" >> $CONFIG/bin/ack_sys
chmod +x $CONFIG/bin/ack_sys
cd $SRC_HOME

View File

@@ -1,3 +1,4 @@
#!/bin/sh
: '$Id$'
: This shell script inserts make macros after a line

View File

@@ -1,3 +1,5 @@
#!/bin/sh
set -e
: machine-dependant stuff

View File

@@ -1,3 +1,4 @@
#!/bin/sh
# compiler set for target machine
CC=cc# # compiler to be used for compiling ACK

View File

@@ -1,4 +1,4 @@
#!/bin/sh
# compiler set for producing runnable binaries (possibly using $(UTIL_HOME)).
# This must describe the compiler with which $(UTIL_HOME) has been compiled.
# If $(TARGET_HOME) is identical to $(UTIL_HOME), which usually will be