home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / cool.lha / ice / util / Makefile_tar < prev    next >
Encoding:
Makefile  |  1991-09-04  |  3.6 KB  |  105 lines

  1. #
  2. # Copyright (C) 1991 Texas Instruments Incorporated.
  3. #
  4. # Permission is granted to any individual or institution to use, copy, modify,
  5. # and distribute this software, provided that this complete copyright and
  6. # permission notice is maintained, intact, in all copies and supporting
  7. # documentation.
  8. #
  9. # Texas Instruments Incorporated provides this software "as is" without
  10. # express or implied warranty.
  11. #
  12.  
  13. help:
  14.     # Usage:  cd ice;  make -f util/Makefile_tar <option>
  15.     # where <option>  is one of the following:
  16.     # help        -- Display this message
  17.     # tar_cool    -- Create tar file of cool for building purposes.
  18.     # tarfile_cool    -- Create a tar file of cool for build purposes.
  19.     # tar_ice    -- Copy ice directory structure to tape
  20.     #           including executables and object files
  21.     # tarfile_ice    -- Create a tar file of  ice directory structure.
  22.     #           including executables and object files
  23.     # copy_ice    -- Copy ice & cool files into /epoch/misc/ice.
  24.  
  25. ICEDIR = .
  26.  
  27. # This will copy off all the necessary cool directories for the purpose of
  28. # rebuilding or using the COOL library.  
  29. # No links are followed, thus they must be made by the top level make link.
  30. # Usage:  cd ice;  make util/Makefile_tar
  31.  
  32. tar_cool: /tmp/uncool
  33.     cd $(ICEDIR)/..;\
  34.     tar XcofBFFv /tmp/uncool /dev/rst8 ice
  35.     rm /tmp/uncool
  36.  
  37. tarfile_cool: /tmp/uncool
  38.     cd $(ICEDIR)/..;\
  39.     tar XcofBFF /tmp/uncool /tmp/cool.tar ice
  40.     compress -v /tmp/cool.tar
  41.     uuencode /tmp/cool.tar.Z cool.tar.Z > $(HOME)/cool.uue"
  42.     echo "COOL tar file is in your home directory in ~/cool.uue"
  43.     rm /tmp/uncool /tmp/cool.tar.Z
  44.  
  45. # note: make turns $$ into $
  46. /tmp/uncool:
  47.     cd $(ICEDIR)/..; find ice -print > /tmp/coolfiles
  48.     # don't copy *.o *.a *.s *.i *..c *.bak *.out *.imp
  49.     egrep "^.*\.(o|a|s|i|\.c|bak|out|imp)$$" /tmp/coolfiles > /tmp/uncool
  50.     # don't copy */core */.?* *# *~
  51.     egrep ".*/core$$|.*/\..+|.*#$$|.*~$$" /tmp/coolfiles >> /tmp/uncool
  52.     # don't copy program executables, except for util and scripts dirs
  53.     cd $(ICEDIR)/..; find ice -perm -0111 -type f -print | egrep -v 'util' | egrep -v 'scripts' >> /tmp/uncool;
  54.     # don't copy RCS directories
  55.     # cd $(ICEDIR)/..; find ice -name 'RCS' -print  >> /tmp/uncool;
  56.     # don't include certain directories
  57.     echo "ice/bin" >> /tmp/uncool
  58.     echo "ice/buglist" >> /tmp/uncool
  59.     echo "ice/foils" >> /tmp/uncool
  60.     echo "ice/include" >> /tmp/uncool
  61.     echo "ice/lib" >> /tmp/uncool
  62.     echo "ice/id_comp" >> /tmp/uncool
  63.     echo "ice/iv" >> /tmp/uncool
  64.     echo "ice/utilold" >> /tmp/uncool
  65.     echo "ice/coollite" >> /tmp/uncool
  66.     sort /tmp/uncool > /tmp/uncoolsorted
  67.     mv /tmp/uncoolsorted /tmp/uncool
  68.     rm /tmp/coolfiles
  69.  
  70. tar_ice: /tmp/notcool
  71.     cd $(ICEDIR)/..;\
  72.     tar XhcfBFFv /tmp/uncoolsorted /dev/rst8 ice
  73.     rm /tmp/uncool /tmp/uncoolsorted
  74.  
  75. tarfile_ice: /tmp/notcool
  76.     cd $(ICEDIR)/..;\
  77.     tar XhcfBFFv /tmp/uncoolsorted /tmp/ice.tar ice
  78.     compress -v /tmp/ice.tar
  79.     uuencode /tmp/cool.tar.Z ice.tar.Z > $(HOME)/ice.uue"
  80.     echo "ICE tar file is in your home directory in ~/ice.uue"
  81.     rm /tmp/uncool /tmp/uncoolsorted /tmp/cool.tar.Z
  82.  
  83. /tmp/notcool:
  84.     cd $(ICEDIR)/.. ;\
  85.     find ice -name '.?*' -print   > /tmp/uncool; \
  86.     find ice -name '*~' -print   >> /tmp/uncool; \
  87.     find ice -name '#*#' -print  >> /tmp/uncool; \
  88.     find ice -name '*.o' -print  >> /tmp/uncool; \
  89.     find ice -name '*.i' -print  >> /tmp/uncool; \
  90.     find ice -name '*..c' -print >> /tmp/uncool; \
  91.     find ice -name 'core' -print >> /tmp/uncool; \
  92.     find ice -name 'RCS' -print  >> /tmp/uncool; \
  93.     echo "ice/buglist" >> /tmp/uncool;
  94.     echo "ice/foils" >> /tmp/uncool;
  95.     echo "ice/iv" >> /tmp/uncool;
  96.     echo "ice/utilold" >> /tmp/uncool;
  97.     echo "ice/id_comp" >> /tmp/uncool;
  98.     sort /tmp/uncool > /tmp/uncoolsorted;
  99.  
  100. copy_machine = osage
  101. copy_path = /epoch/misc/ice
  102. copy_ice:
  103.     cd $(ICEDIR)/.. ;\
  104.     util/copy_ice $(copy_machine) $(copy_path);
  105.