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:
		
						commit
						454bdae81f
					
				
					 40 changed files with 73 additions and 5 deletions
				
			
		|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : '$Id$' | : '$Id$' | ||||||
| 
 | 
 | ||||||
| : Compile and make dependencies. First argument is the file on which the | : Compile and make dependencies. First argument is the file on which the | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : '$Id$' | : '$Id$' | ||||||
| 
 | 
 | ||||||
| : Compile and make dependencies. First argument is the file on which the | : Compile and make dependencies. First argument is the file on which the | ||||||
|  | @ -16,5 +17,5 @@ do | ||||||
| 			;; | 			;; | ||||||
| 	esac | 	esac | ||||||
| done | done | ||||||
| $UTIL_HOME/lib.bin/cpp -d -m $cpp_args > $n | $UTIL_HOME/lib.bin/cpp -d -m $cpp_args > $n 2>/dev/null | ||||||
| exec $CC $* | exec $CC $* | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : '$Id$' | : '$Id$' | ||||||
| 
 | 
 | ||||||
| : Compile and make dependencies. First argument is the file on which the | : Compile and make dependencies. First argument is the file on which the | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : '$Id$' | : '$Id$' | ||||||
| 
 | 
 | ||||||
| : Produce dependencies for all argument files | : Produce dependencies for all argument files | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : '$Id$' | : '$Id$' | ||||||
| 
 | 
 | ||||||
| : Resolve name clashes in the files on the argument list. If these | : Resolve name clashes in the files on the argument list. If these | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : '$Id$' | : '$Id$' | ||||||
| 
 | 
 | ||||||
| : Create a lint library file. The name of the library file is constructed | : Create a lint library file. The name of the library file is constructed | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : '$Id$' | : '$Id$' | ||||||
| 
 | 
 | ||||||
| : Create a lint library file. The name of the library file is constructed | : Create a lint library file. The name of the library file is constructed | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| num=`expr $1 : '.*\.\([1-8]\)'` | num=`expr $1 : '.*\.\([1-8]\)'` | ||||||
| 
 | 
 | ||||||
| if [ -d $2/man ] ; then : ; else mkdir $2/man ; fi | if [ -d $2/man ] ; then : ; else mkdir $2/man ; fi | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : $Id$ | : $Id$ | ||||||
| 
 | 
 | ||||||
| : remove dependencies from a makefile, write result on standard output. | : remove dependencies from a makefile, write result on standard output. | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| : ${CDIR=.} | : ${CDIR=.} | ||||||
| ${DF-:} $CDIR .distr | ${DF-:} $CDIR .distr | ||||||
| if test ! -r $DESTDIR/$CDIR/.distr | if test ! -r $DESTDIR/$CDIR/.distr | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : Utility to make a tree of symbolic links to source tree. | : Utility to make a tree of symbolic links to source tree. | ||||||
| : Mount the source tree read-only, use this script, and then try installation. | : Mount the source tree read-only, use this script, and then try installation. | ||||||
| case $# in | case $# in | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| set -e | set -e | ||||||
| for i in `tail +2 $DESTDIR/$1/LIST` | for i in `tail +2 $DESTDIR/$1/LIST` | ||||||
| do | do | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| if [ -f $DESTDIR/$1/$2 ] | if [ -f $DESTDIR/$1/$2 ] | ||||||
| then | then | ||||||
| 	: | 	: | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| set -e | set -e | ||||||
| trap "rm -f /tmp/xx$$" 0 1 2 3 15 | trap "rm -f /tmp/xx$$" 0 1 2 3 15 | ||||||
| case $2 in | case $2 in | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| if ( cd $1 ) 2>/dev/null | if ( cd $1 ) 2>/dev/null | ||||||
| then | then | ||||||
| 	: | 	: | ||||||
|  |  | ||||||
|  | @ -1,4 +1,5 @@ | ||||||
| #! /bin/sh | #! /bin/sh | ||||||
|  | 
 | ||||||
| case $0 in | case $0 in | ||||||
| */first) | */first) | ||||||
| 	FDIR=`expr $0 : '\(.*\)/first'` | 	FDIR=`expr $0 : '\(.*\)/first'` | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| if read ANS | if read ANS | ||||||
| then	echo | then	echo | ||||||
| else	echo "Sorry, got EOF when reading your answer" | else	echo "Sorry, got EOF when reading your answer" | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| know_target=0 | know_target=0 | ||||||
| case $SYSNAME in | case $SYSNAME in | ||||||
| vax*|i386|sun*|sparc*|m68_sysV_0|m68020|mantra|pmds4|m68k4) | vax*|i386|sun*|sparc*|m68_sysV_0|m68020|mantra|pmds4|m68k4) | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| rm -f em_path.h | rm -f em_path.h | ||||||
| echo "You will now be asked for the root directory of the ACK sources. | echo "You will now be asked for the root directory of the ACK sources. | ||||||
| This directory will not be changed by the installation process. | This directory will not be changed by the installation process. | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| while : | while : | ||||||
| do | do | ||||||
| 	echo $E_FLAG "Which system-call library do you want to install for the VAX? | 	echo $E_FLAG "Which system-call library do you want to install for the VAX? | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| set -e | set -e | ||||||
| 
 | 
 | ||||||
| PATH=::$CONFIG/bin:$UTIL_HOME/bin:/usr/ccs/bin:/usr/ucb:$PATH | 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 | ||||||
| $SRC_HOME/first/create_dir $CONFIG/bin | $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 | 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/create_dir $CONFIG/bin/create_dir | ||||||
| cp $SRC_HOME/first/cp_dir $CONFIG/bin/cp_dir | cp $SRC_HOME/first/cp_dir $CONFIG/bin/cp_dir | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| while : | while : | ||||||
| do | do | ||||||
| 	echo "The libraries will end up in the machine-independent part of the | 	echo "The libraries will end up in the machine-independent part of the | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| for i in $DISABLE_LANG | for i in $DISABLE_LANG | ||||||
| do | do | ||||||
| 	ed -s $CONFIG/Action <<EOF | 	ed -s $CONFIG/Action <<EOF | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/usr/bin/make | ||||||
| 
 | 
 | ||||||
| # There are two choices for lint here: ACK lint and Unix lint. | # 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, | # The current setup is for ACK lint. If you want to use the Unix lint, | ||||||
|  |  | ||||||
|  | @ -1,9 +1,12 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| set -e | set -e | ||||||
| 
 | 
 | ||||||
| create_dir $CONFIG | create_dir $CONFIG | ||||||
| 
 | 
 | ||||||
| create_dir $CONFIG/bin | 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 | chmod +x $CONFIG/bin/ack_sys | ||||||
| 
 | 
 | ||||||
| cd $SRC_HOME | cd $SRC_HOME | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : '$Id$' | : '$Id$' | ||||||
| 
 | 
 | ||||||
| : This shell script inserts make macros after a line | : This shell script inserts make macros after a line | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| set -e | set -e | ||||||
| 
 | 
 | ||||||
| : machine-dependant stuff | : machine-dependant stuff | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| # compiler set for target machine | # compiler set for target machine | ||||||
| 
 | 
 | ||||||
| CC=cc#				# compiler to be used for compiling ACK | CC=cc#				# compiler to be used for compiling ACK | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| 
 | #!/bin/sh | ||||||
| # compiler set for producing runnable binaries (possibly using $(UTIL_HOME)). | # compiler set for producing runnable binaries (possibly using $(UTIL_HOME)). | ||||||
| # This must describe the compiler with which $(UTIL_HOME) has been compiled. | # This must describe the compiler with which $(UTIL_HOME) has been compiled. | ||||||
| # If $(TARGET_HOME) is identical to $(UTIL_HOME), which usually will be | # If $(TARGET_HOME) is identical to $(UTIL_HOME), which usually will be | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| ed -s Lpars.h <<'+' | ed -s Lpars.h <<'+' | ||||||
| 1d | 1d | ||||||
| 1,$s/# *define // | 1,$s/# *define // | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| sed -e ' | sed -e ' | ||||||
| s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | ||||||
| /* allocation definitions of struct \1 */\ | /* allocation definitions of struct \1 */\ | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : Update Files from database | : Update Files from database | ||||||
| 
 | 
 | ||||||
| PATH=/bin:/usr/bin | PATH=/bin:/usr/bin | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| sed -e ' | sed -e ' | ||||||
| s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | ||||||
| /* allocation definitions of struct \1 */\ | /* allocation definitions of struct \1 */\ | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : Update Files from database | : Update Files from database | ||||||
| 
 | 
 | ||||||
| PATH=/bin:/usr/bin | PATH=/bin:/usr/bin | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| sed -e ' | sed -e ' | ||||||
| s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | ||||||
| /* allocation definitions of struct \1 */\ | /* allocation definitions of struct \1 */\ | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : Update Files from database | : Update Files from database | ||||||
| 
 | 
 | ||||||
| PATH=/bin:/usr/bin | PATH=/bin:/usr/bin | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| sed -e ' | sed -e ' | ||||||
| s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | ||||||
| /* allocation definitions of struct \1 */\ | /* allocation definitions of struct \1 */\ | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : Update Files from database | : Update Files from database | ||||||
| 
 | 
 | ||||||
| PATH=/bin:/usr/bin | PATH=/bin:/usr/bin | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
| sed -e ' | sed -e ' | ||||||
| s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | s:^.*[ 	]ALLOCDEF[ 	].*"\(.*\)"[ 	]*\([0-9][0-9]*\).*$:\ | ||||||
| /* allocation definitions of struct \1 */\ | /* allocation definitions of struct \1 */\ | ||||||
|  |  | ||||||
|  | @ -1,3 +1,4 @@ | ||||||
|  | #!/bin/sh | ||||||
| : Update Files from database | : Update Files from database | ||||||
| 
 | 
 | ||||||
| PATH=/bin:/usr/bin | PATH=/bin:/usr/bin | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue