home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / g / gs252src.zip / GS252 / GSCONFIG < prev    next >
Text File  |  1992-09-05  |  678b  |  31 lines

  1. if ( test "$1" = "+" ) then
  2.     shift
  3. else
  4.     rm -f _temp_.dob _temp_.dop _temp_.dlb _temp_.d
  5.     touch _temp_.dob _temp_.dop _temp_.dlb _temp_.d
  6.     rm -f _temp_.dh
  7.     echo '/* This file was automatically generated by Ghostscript (gsconfig). */' > _temp_.dh
  8.     echo '/* See gconfig.c for documentation. */' >>_temp_.dh
  9. fi
  10. rm -f _temp_.c
  11. cat <<EOF >_temp_.c
  12. /bin/sh < _temp_.d
  13. rm -f obj.tr gconfig.h lib.tr
  14. sort <_temp_.dob | uniq >obj.tr
  15. sort <_temp_.dop | uniq >>_temp_.dh
  16. mv _temp_.dh gconfig.h
  17. mv _temp_.dlb lib.tr
  18. rm -f _temp_.d*
  19. EOF
  20. for dev in $*
  21. do
  22.     if ( test "${dev}" = "+" ) then
  23.         rm -f _temp_.c
  24.         touch _temp_.c
  25.     else
  26.         cat ${dev} >>_temp_.d
  27.     fi
  28. done
  29. /bin/sh < _temp_.c
  30. rm _temp_.c
  31.