386BSD 0.1 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Tue, 21 Apr 1992 09:16:14 +0000 (01:16 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Tue, 21 Apr 1992 09:16:14 +0000 (01:16 -0800)
Work on file usr/othersrc/public/ghostscript-2.4.1/gsconfig

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.1

usr/othersrc/public/ghostscript-2.4.1/gsconfig [new file with mode: 0755]

diff --git a/usr/othersrc/public/ghostscript-2.4.1/gsconfig b/usr/othersrc/public/ghostscript-2.4.1/gsconfig
new file mode 100755 (executable)
index 0000000..512db3c
--- /dev/null
@@ -0,0 +1,31 @@
+if ( test "$1" = "+" ) then
+       shift
+else
+       rm -f _temp_.dob _temp_.dlb _temp_.d
+       touch _temp_.dob _temp_.dlb _temp_.d
+       rm -f _temp_.dh _temp_.dop _temp_.dps
+       echo '/* This file was automatically generated by Ghostscript (gsconfig). */' > _temp_.dh
+       touch _temp_.dop _temp_.dps
+fi
+rm -f _temp_.c
+cat <<EOF >_temp_.c
+/bin/sh < _temp_.d
+rm -f obj.tr gconfig.h lib.tr
+sort <_temp_.dob | uniq >obj.tr
+mv _temp_.dh gconfig.h
+sort <_temp_.dop | uniq >>gconfig.h
+mv _temp_.dlb lib.tr
+sort <_temp_.dps | uniq >>gconfig.h
+rm -f _temp_.d*
+EOF
+for dev in $*
+do
+       if ( test "${dev}" = "+" ) then
+               rm -f _temp_.c
+               touch _temp_.c
+       else
+               cat ${dev} >>_temp_.d
+       fi
+done
+/bin/sh < _temp_.c
+rm _temp_.c