home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / printing / ghostscrip / source / specific / gsconfig < prev    next >
Encoding:
Text File  |  1991-10-26  |  384 b   |  19 lines

  1. #!/bin/sh
  2. rm -f gconfig.h gconfig.ps _temp_
  3. touch gconfig.h gconfig.ps _temp_
  4. export p q; p=d; q=device
  5. for dev in $*
  6. do
  7.     if ( test ${dev} = + )
  8.     then export p q; p=f; q=init;
  9.     else {
  10.         echo ${p}\(gs_${dev}_${q}\) >>gconfig.h
  11.         if ( test ${p} = f )
  12.         then echo \(gs_${dev}.ps\) >>gconfig.ps
  13.         else cat ${dev}.dev >>_temp_
  14.         fi;
  15.     } fi
  16. done
  17. sort <_temp_ | uniq >gconfig.tr
  18. rm -f _temp_
  19.