🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.misc
Article #3415

Indexing Sybase: SOLUTION

#3415
From: Nick Christopher
Date: Sat, 26 Sep 1992 03:48
87 lines
3412 bytes
Here is a shar file that walks you through indexing the Sybase docs
under NeXTSTEP 3.0.  Cut the following out and copy it to
/tmp/syb.shar then type "cd /tmp; sh syb.shar". The README will
explain the rest.

#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#	README.txt
#	syroff
#	.displayCommand
# This archive created: Fri Sep 25 23:11:32 1992
export PATH; PATH=/bin:$PATH
echo shar: extracting "'README.txt'" '(679 characters)'
if test -f 'README.txt'
then
	echo shar: will not over-write existing file "'README.txt'"
else
sed 's/^	X//' << \SHAR_EOF > 'README.txt'
	XThe following procedure assumes you have the default NeXT setup for
	Xyour Sybase documentation. Assuming you have unpacked this shar file
	Xin /tmp then do the following as root to get the Sybase Documentation working
	Xunder NeXTSTEP:
	X
	X
	X	# cd /NextLibrary/Documentation/Sybase
	X	# cp .index/icon.tiff .dir.tiff
	X	# cp /tmp/.displayCommand .displayCommand
	X	# cp /tmp/syroff /usr/local/bin/syroff
	X	# ln -s /usr/sybase/doc
	X
	X	If this documentation will ONLY be used by 3.0 machines then:
	X
	X	# rm -rf .index
	X
	XOnce the above is done just pull /NextLibrary/Documentation/Sybase
	Xonto the Librarian self and index it. If you put syroff somewhere else
	Xthen fix .displayCommand since it calls it.
SHAR_EOF
if test 679 -ne "`wc -c < 'README.txt'`"
then
	echo shar: error transmitting "'README.txt'" '(should have been 679 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'syroff'" '(364 characters)'
if test -f 'syroff'
then
	echo shar: will not over-write existing file "'syroff'"
else
sed 's/^	X//' << \SHAR_EOF > 'syroff'
	X#!/bin/csh -f
	X# This script fixes two glitches in NeXTSTEP 3.0 Librarian
	X# when used on Sybase docs. One is that it insists that .man
	X# files are nroff when they are not. Second it runs the display
	X# command from the root directory so .so includes fail to find the
	X# target include.
	Xif ( $1:e == "man" ) then 
	X	cat $1
	Xelse
	X	cd $1:h
	X	tbl $1 | nroff -msyb -rT1 
	Xfi
	X
SHAR_EOF
if test 364 -ne "`wc -c < 'syroff'`"
then
	echo shar: error transmitting "'syroff'" '(should have been 364 characters)'
fi
chmod +x 'syroff'
fi # end of overwriting check
echo shar: extracting "'.displayCommand'" '(25 characters)'
if test -f '.displayCommand'
then
	echo shar: will not over-write existing file "'.displayCommand'"
else
sed 's/^	X//' << \SHAR_EOF > '.displayCommand'
	X/usr/local/bin/syroff %s
SHAR_EOF
if test 25 -ne "`wc -c < '.displayCommand'`"
then
	echo shar: error transmitting "'.displayCommand'" '(should have been 25 characters)'
fi
fi # end of overwriting check
#	End of shell archive
exit 0
Technical Details
Message-ID: <1992Sep26.034838.17312@news.columbia.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!sol.ctr.columbia.edu!news.columbia.edu!blackbox.cc.columbia.edu!nwc

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.misc,comp.sys.next.programmer,comp.sys.next.sysadmin
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!sol.ctr.columbia.edu!news.columbia.edu!blackbox.cc.columbia.edu!nwc
From: nwc@blackbox.cc.columbia.edu (Nick Christopher)
Subject: Indexing Sybase: SOLUTION
Message-ID: <1992Sep26.034838.17312@news.columbia.edu>
Sender: usenet@news.columbia.edu (The Network News)
Nntp-Posting-Host: blackbox.cc.columbia.edu
Organization: Columbia University
Date: Sat, 26 Sep 1992 03:48:38 GMT
Lines: 89