File: make_dcl.sh

package info (click to toggle)
cproto 4.7j-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 916 kB
  • sloc: ansic: 4,116; sh: 3,077; lex: 1,059; yacc: 870; makefile: 309
file content (20 lines) | stat: -rwxr-xr-x 548 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# $Id: make_dcl.sh,v 4.1 1998/01/20 00:59:45 cthuang Exp $
#
# This makes a special ".dcl" file that can be executed from either UNIX or
# VMS.  We auto-generate the script (with this name) to avoid confusion on
# MSDOS, which thinks ".com" files are even more special.
#
for i in $*
do
	i="`echo $i | sed -e 's/[A-Za-z_.]//g'`"
	I="case$i"
	if [ -n "$i" -a ! -f $I.dcl ]
	then
		echo '** making '$I.dcl
		grep "CASE[ 	]$i" run_test.txt | \
			sed -e 's/^.*=/$CPROTO /' \
				-e s/\$/\ -o$I.out\ $I.c/ >$I.dcl
		chmod 755 $I.dcl
	fi
done