home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xloadimg.zip / xloadimage.4.1 / build-vms < prev    next >
Text File  |  1993-10-21  |  716b  |  44 lines

  1. #! /bin/sh
  2. # this creates a VMS compilation script
  3.  
  4. outfile=VMS_BUILD.COM
  5.  
  6. cat > $outfile << END_OF_INPUT
  7. \$set noon
  8. \$define sys sys\$library
  9. \$define x11 decw\$include
  10. \$!
  11. \$write sys\$output "Compiling..."
  12. END_OF_INPUT
  13.  
  14. for i in $1
  15. do
  16.   echo '$cc'" $i:r" >> $outfile
  17. done
  18.  
  19. echo '$cc vms-build.c' >> $outfile
  20.  
  21. cat >> $outfile << END_OF_INPUT
  22. \$!
  23. \$write sys\$output "Linking..."
  24. END_OF_INPUT
  25.  
  26. echo '$link xloadimage, -' >> $outfile
  27. for i in $2
  28. do
  29.   if [ "$i" != "xloadimage.o" ]; then
  30.     echo "        $i:r, -" >> $outfile
  31.   fi
  32. done
  33.  
  34. echo "        vms-build.o, -" >> $outfile
  35.  
  36. cat >> $outfile << END_OF_INPUT
  37.         sys\$input:/options
  38. sys\$share:decw\$xlibshr/share
  39. \$!
  40. \$exit
  41. END_OF_INPUT
  42.  
  43. chmod -w+x $outfile
  44.