File: build-vms

package info (click to toggle)
xloadimage 4.1-25
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,820 kB
  • sloc: ansic: 36,084; asm: 284; makefile: 282; sh: 280
file content (43 lines) | stat: -rwxr-xr-x 716 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/sh
# this creates a VMS compilation script

outfile=VMS_BUILD.COM

cat > $outfile << END_OF_INPUT
\$set noon
\$define sys sys\$library
\$define x11 decw\$include
\$!
\$write sys\$output "Compiling..."
END_OF_INPUT

for i in $1
do
  echo '$cc'" $i:r" >> $outfile
done

echo '$cc vms-build.c' >> $outfile

cat >> $outfile << END_OF_INPUT
\$!
\$write sys\$output "Linking..."
END_OF_INPUT

echo '$link xloadimage, -' >> $outfile
for i in $2
do
  if [ "$i" != "xloadimage.o" ]; then
    echo "        $i:r, -" >> $outfile
  fi
done

echo "        vms-build.o, -" >> $outfile

cat >> $outfile << END_OF_INPUT
        sys\$input:/options
sys\$share:decw\$xlibshr/share
\$!
\$exit
END_OF_INPUT

chmod -w+x $outfile