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 17:10:18 +00:00
parent 1eb1cb6f62
commit 8ea67498ed
8 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,4 @@
#!/bin/sh
: argtype lists all em mnemonics that have an argument type equal to : argtype lists all em mnemonics that have an argument type equal to
: one of the letters specified in the argument : one of the letters specified in the argument
case x$# in case x$# in

View file

@ -1,3 +1,5 @@
#!/bin/sh
EM_TABLE=$1 EM_TABLE=$1
echo "switch(p->em_opcode) {" echo "switch(p->em_opcode) {"
for i in - cdflnorswz p b for i in - cdflnorswz p b

View file

@ -1,3 +1,4 @@
#!/bin/sh
: argtype lists all em mnemonics that have an argument type equal to : argtype lists all em mnemonics that have an argument type equal to
: one of the letters specified in the argument : one of the letters specified in the argument
case x$# in case x$# in

View file

@ -1,3 +1,5 @@
#!/bin/sh
EM_TABLE=$1 EM_TABLE=$1
argtype=$2 argtype=$2
echo "switch(p->em_opcode) {" echo "switch(p->em_opcode) {"

View file

@ -3,6 +3,10 @@
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright". * See the copyright notice in the ACK home directory, in the file "Copyright".
*/ */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "file_info.h" #include "file_info.h"
#include "input.h" #include "input.h"
#define INP_TYPE struct file_info #define INP_TYPE struct file_info

View file

@ -5,6 +5,7 @@
*/ */
/* MAIN PROGRAM */ /* MAIN PROGRAM */
#include <stdlib.h>
#include <alloc.h> #include <alloc.h>
#include <em_arith.h> #include <em_arith.h>
#include <assert.h> #include <assert.h>

View file

@ -1,3 +1,4 @@
#!/bin/sh
: Update Files from database : Update Files from database
PATH=/bin:/usr/bin PATH=/bin:/usr/bin

View file

@ -5,6 +5,8 @@
*/ */
/* USER-OPTION HANDLING */ /* USER-OPTION HANDLING */
#include <stdlib.h>
#include <string.h>
#include <alloc.h> #include <alloc.h>
#include "idfsize.h" #include "idfsize.h"
#include "class.h" #include "class.h"
@ -90,7 +92,7 @@ do_option(text)
if (++inc_total > inc_max) { if (++inc_total > inc_max) {
inctable = (char **) inctable = (char **)
Realloc(inctable,(inc_max+=10)*sizeof(char *)); Realloc((void*) inctable,(inc_max+=10)*sizeof(char *));
} }
for(i = inc_pos++; i < inc_total; i++) { for(i = inc_pos++; i < inc_total; i++) {