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

  1. #!/bin/sh
  2. export f; f=_;
  3. # System V `echo' strips \s, but doesn't recognize -n;
  4. # bsd `echo' does the opposite.  Figure out which one we have.
  5. echo -n >_temp_
  6. if ( test -s _temp_ ) then
  7. # -n wasn't recognized, ergo System V.
  8.     export q; q=\\\\;
  9. else
  10. # -n was recognized, ergo bsd.
  11.     export q; q=\\;
  12. fi
  13. rm -f _temp_
  14. for e in $*
  15. do
  16.     if ( test ${f} = _ )
  17.     then export f; f=${e}; rm -f ${f}; touch ${f};
  18.     else echo ${e} >>${f}
  19.     fi
  20. done
  21.