|
|
1.1 root 1: #!/bin/sh
2:
3: # develop: "develop fname.s" makes fname.i from fname.s
4:
5: # intended to be called only from movie and stills
6:
7: LIB=${LIB-/usr/lib/movie}
8:
9: case $# in
10: 0) echo 'Usage: develop file.s ...' 1>&2; exit 1 ;;
11: *) ;;
12: esac
13:
14: for i in $*
15: do
16: case $# in
17: 1) ;;
18: *) echo $i: ;;
19: esac
20:
21: case $i in
22: *.s) bn=`echo $i | sed s/.s$//` ;; # foo.s; bn = foo
23: *) echo 'Usage: develop file.s ...' 1>&2; exit 1 ;;
24: esac
25:
26: if [ ! -r $bn.s ]
27: then
28: echo 1>&2 "develop: can't open $bn.s"; exit 2
29: elif [ ! -r $bn.i ] || $LIB/newer $bn.s $bn.i
30: then
31: $LIB/fdevelop $bn.s >$bn.i
32: fi
33: done
34: exit 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.