HOWTO Copy the Library's productional release
to wvtest.syr.edu (libtest.syr.edu)
-
Log in to libtest.syr.edu and become user
voyager
-
Go to the
/m1/voyager/syrdb/ directory and
backup the existing OPAC version in
syrdb/etc/ and syrdb/webvoyage/,
if ones exist. One should only have to backup the
syrdb/etc/
and
syrdb/webvoyage/ directories (see the customized directories
and files listing
below.) Archive them in
/export/home/mdesalvo/OPAC/YYYYMMDD for reference and remove
those directories and their contents
NOTE:
/m1/voyager/syrdb/data/ is a NFS mounted read-only
directory from
libdb.syr.edu. This directory should NOT be
backed up, archived or deleted as it contains the productional keyword
files on
libdb.syr.edu. These files are necessary to allow
wvtest.syr.edu to run against the Library's Voyager databases.
-
Log in to library.syr.edu and become user
voyager
-
Go to the /m1/voyager/syrdb/ directory and
create a tar file for the syrdb/etc/ and syrdb/webvoyage/
directories
-
FTP these files to wvtest.syr.edu in the
/m1/voyager/syrdb/ directory and then delete them from library.syr.edu.
-
Log back in to libtest.syr.edu and become
user voyager
-
Go to the /m1/voyager/syrdb/ directory and
un-tar the FTP'd files
-
HOWTO Install the Endeavor preview release on
wvpre.syr.edu (libtest.syr.edu)
- Log in to libtest.syr.edu and become user voyager
- Go to the /m1/incoming/ directory and backup the existing
OPAC version in wvpre/ (or other directory), if one exists.
Archive it in /export/home/mdesalvo/OPAC/YYYYMMDD for reference
and remove the directory and its contents
- Go to the Endeavor support site (http://support.endinfosys.com/)
log in and get the latest preview release software. Move it to the
/m1/incoming/ directory and un-tar it
- Run the Install_Preview.ksh and differ.ksh to install
the software and create the difference files for the customizations
added to the current release. This will assume a copy of the production
release (wvtest.syr.edu) is on the libtest.syr.edu machine.
- Check the difference files created by differ.ksh and apply
the appropriate edits, by hand and/or by using the automated
programs found in /export/home/mdesalvo/OPAC/ to the preview
release. This will incorporate the current OPAC (wvtest.syr.edu)
customizations with the preview release (see the customized directories
and files listing below.)
-
Make the necessary
additional
edits to point the release to the Library databases and the
OPAC to
wvpre.syr.edu
- The preview release of OPAC should now be installed and can be tested
at http://wvpre.syr.edu
NOTE: The differ.ksh does not compare images (.gif, .jpg),
html (.htm) and configuration (.cfg) files. The comparisons
that are made are located in /m1/incoming/wvpre/etc/webvoyage/syrdb/.
Those files should be compared with the files in /m1/incoming/wvpre/etc/webvoyage/local/.
There will also be a series of text (.TXT) files generated summarizing
the differ.ksh activity.
HOWTO Preparations for continuous OPAC
library.syr.edu, libapp.syr.edu, libdb.syr.edu,
libopac.syr.edu and libtest.syr.edu are all involved in
the creation and testing of an Endeavor release along with continuous
OPAC.
"continuous OPAC" will be setup on the libopac.syr.edu
machine. In essence the libdb.syr.edu Oracle database mirror
will be broken and will be ported over to libopac.syr.edu. The
mirrored disk will be used on libopac.syr.edu as a static snapshot
of the catalog along with a static copy of the webvoyage OPAC that was
running on library.syr.edu. Website and database pointers will
be redirected this static copy on libopac.syr.edu. Once this
occurs, changes can then be applied to libdb.syr.edu, library.syr.edu
and libtest.syr.edu.
The following should occur in preparation for the to setup of continuous
OPAC.
- Stop all cron jobs on libezproxy.syr.edu,libportal.syr.edu,
etc. that access files from libdb.syr.edu.
- Log in to libtest.syr.edu and become user voyager
- Go to the /m1/incoming/ directory and backup the existing
OPAC version in wvpre/ (or other directory), if one exists.
Archive it in /export/home/mdesalvo/OPAC/YYYYMMDD for reference
and remove the directory and its contents
- Endeavor will install the latest preview release on library.syr.edu
in /m1/incoming/ after setting up the "continuous OPAC"
configuration.
HOWTO Install the Endeavor current release (continuous
OPAC phase) to wvtest.syr.edu (libtest.syr.edu)
Follow the HOWTO on preparations for continuous OPAC.
Endeavor will install the latest preview release on library.syr.edu
in /m1/incoming/ after setting up the "continuous OPAC"
configuration.
-
Log in to library.syr.edu and become user
voyager
-
Go to the /m1/incoming/ directory and create
a tar file of this latest preview release in 200x.x/voyager/
directory
-
FTP these files to libtest.syr.edu in the
/m1/voyager/ directory and then delete this tar file from library.syr.edu
-
Log in to libtest.syr.edu and become user
voyager
-
Go to the
/m1/voyager/ directory and backup
the existing OPAC version in
syrdb/etc/ and syrdb/webvoyage/.
One should only have to backup the
syrdb/etc/ and
syrdb/webvoyage/
directories (see the customized directories and files listing
below.)
Archive them in
/export/home/mdesalvo/OPAC/YYYYMMDD for future
reference. Also, time stamp the entire
/m1/voyager/syrdb/
directory in
/m1/voyager/ for reference. Create a new
syrdb/
directory in its place.
-
UN-tar the FTP'd file from library.syr.edu
containing the Endeavor release in the new syrdb/ directory
-
Make the necesasry
additional
edits to point the release to the Library databases and the
OPAC to
wvtest.syr.edu
- The current release of OPAC should now be installed and can be tested
at http://wvtest.syr.edu
- Follow the HOWTO customize the Endeavor current
release (continuous OPAC phase) on wvtest.syr.edu (libtest.syr.edu)
Possible reasons for the release not functioning:
- /m1/voyager/bin/ directory will need to be copied/created
by hand and a chmod 750 should be applied.
- /m1/voyager/syrdb/ini/ files should be edited to point to
the correct paths
- /m1/voyager/syrdb/webvoyage/cgi-bin/ files should be edited
to point to the correct paths
- make sure the webvoyage port is open
- make sure the webvoyage NFS mounts exist
HOWTO Customize the Endeavor current release
(continuous OPAC phase) on wvtest.syr.edu (libtest.syr.edu)
- Log in to libtest.syr.edu and become user voyager
- Go to the /export/home/mdesalvo/OPAC/YYYYMMDD directory and
copy the latest archived backup of the existing OPAC version from
wvpre/ to /export/home/mdesalvo/OPAC/. There should
be a backup of the syrdb/etc/ and syrdb/webvoyage/ directories
- UN-tar both archives in /export/home/mdesalvo/OPAC/ and identify
the original OPAC files by generating a text file listing all of the
.vanilla extension files from both archives and naming them
etcPRE.vanilla and webvoyagePRE.vanilla respectively
- /usr/bin/find ./etc -name "*Vanilla" > etcPRE.vanilla
- /usr/bin/find ./webvoyage -name "*Vanilla" > webvoyagePRE.vanilla
- Run the testPRE.pl to identify any
differences between the current release files and the archived preview
files. Review the results and make the appropriate modifications if
necessary
- Run the customPRE.pl program to copy
the saved customizations to the current release
- Take special note to the exception sub-directories : help/
and images/ to verify that all necessary customized
files have been replaced
-
Make the necesasry
additional
edits to point the release to the Library databases and the
OPAC to
wvtest.syr.edu
- The current release of OPAC should now be customized and can be
tested at http://wvtest.syr.edu
HOWTO Copy the customized Endeavor current
release (continuous OPAC phase) to summit.syr.edu (library.syr.edu)
- Log in to libtest.syr.edu and become user voyager
-
Go to the
/m1/voyager/ directory and backup
the current OPAC release in
syrdb/etc/ and syrdb/webvoyage/.
One should only have to backup the
syrdb/etc/ and
syrdb/webvoyage/
directories (see the customized directories and files listing
below.)
-
FTP these files to library.syr.edu in the
/m1/voyager/ directory and then delete these tar files from
libtest.syr.edu
-
Log in to library.syr.edu and become user
voyager
-
Go to the /m1/voyager/ directory
-
UN-tar the FTP'd file from library.syr.edu
containing the Endeavor release in the syrdb/ directory
-
Make the necesasry
additional
edits to point the release to the Library databases and the
OPAC to
summit.syr.edu
- The current release of OPAC should now be copied and can be tested
at http://summit.syr.edu
The above is ideal if it can be done, but optionally...
- Log in to libtest.syr.edu and become user voyager
-
Go to the
/m1/voyager/ directory and backup
the current OPAC release in
syrdb/etc/ and syrdb/webvoyage/.
One should only have to backup the
syrdb/etc/ and
syrdb/webvoyage/
directories (see the customized directories and files listing
below.)
-
FTP these files to library.syr.edu in the
/export/home/mdesalvo/OPAC/ directory and then delete these
tar files from libtest.syr.edu
-
Log in to library.syr.edu and become user
voyager
-
Go to the /export/home/mdesalvo/OPAC/ directory
- UN-tar both archives in /export/home/mdesalvo/OPAC/ and identify
the original OPAC files by generating a text file listing all of the
Vanilla extension files from both archives and naming them
etc.customizations.txt and webvoyage.customizations.txt
respectively
- /usr/bin/find ./etc -name "*Vanilla" > etc.customizations.txt
- /usr/bin/find ./webvoyage -name "*Vanilla" > webvoyage.customizations.txt
- Run the customREL.pl program to copy
the saved customizations to the current release
- Take special note to the exception sub-directories : help/
and images/ to verify that all necessary customized
files have been replaced
-
Make the necesasry
additional
edits to point the release to the Library databases and the
OPAC to
wvtest.syr.edu
- The current release of OPAC should now customized and can be tested
at http://summit.syr.edu
Preview release OPAC barcodes
- coppi, barcode 2611 (faculty)
- smith, barcode 2639 (grad student)
Library OPAC customized directories and files
- /m1/voyager/syrdb/etc/webvoyage/local/search.ini
- /m1/voyager/syrdb/etc/webvoyage/local/display.ini
- /m1/voyager/syrdb/etc/webvoyage/local/limits.ini
- /m1/voyager/syrdb/etc/webvoyage/local/opac.ini
- /m1/voyager/syrdb/etc/webvoyage/local/display1.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/display2.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/save1f.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/display4.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/save2f.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/displayh.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/save3f.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/saveh.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/request.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/requesth.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/emailf.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/email.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/emailh.cfg
- /m1/voyager/syrdb/etc/webvoyage/local/failedmsg.htm
- /m1/voyager/syrdb/etc/webvoyage/local/ht_buildersearch.htm.
- /m1/voyager/syrdb/etc/webvoyage/local/ht_combinedsearch.htm
- /m1/voyager/syrdb/etc/webvoyage/local/ht_coursereserve.htm.
- /m1/voyager/syrdb/etc/webvoyage/local/limitmsg.htm
- /m1/voyager/syrdb/etc/webvoyage/local/logonmsg.htm
- /m1/voyager/syrdb/etc/webvoyage/local/mailfailmsg.htm
- /m1/voyager/syrdb/etc/webvoyage/local/mailmsg.htm
- /m1/voyager/syrdb/etc/webvoyage/local/noattmsg.htm
- /m1/voyager/syrdb/etc/webvoyage/local/noholdmsg.htm
- /m1/voyager/syrdb/etc/webvoyage/local/norequests.htm
- /m1/voyager/syrdb/etc/webvoyage/local/pinchangemsg.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqblok1.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqblok2.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqblok3.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqblok4.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqblok5.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqblok6.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqblok7.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqblok8.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqblok12.htm
- /m1/voyager/syrdb/etc/webvoyage/local/reqgood.htm
- /m1/voyager/syrdb/etc/webvoyage/local/truncmsg.htm
- /m1/voyager/syrdb/etc/webvoyage/local/ubb_dupl.htm
- /m1/voyager/syrdb/webvoyage/html/help/buildersearch.htm
- /m1/voyager/syrdb/webvoyage/html/help/combinedsearch.htm
- /m1/voyager/syrdb/webvoyage/html/help/contents.htm
- /m1/voyager/syrdb/webvoyage/html/help/coursereservesearch.htm
- /m1/voyager/syrdb/webvoyage/html/help/disphlp1.htm
- /m1/voyager/syrdb/webvoyage/html/help/disphlp2.htm
- /m1/voyager/syrdb/webvoyage/html/help/disphlp3.htm
- /m1/voyager/syrdb/webvoyage/html/help/disphlp5.htm
- /m1/voyager/syrdb/webvoyage/html/help/headings.htm
- /m1/voyager/syrdb/webvoyage/html/help/history.htm
- /m1/voyager/syrdb/webvoyage/html/help/limits.htm
- /m1/voyager/syrdb/webvoyage/html/help/login.htm
- /m1/voyager/syrdb/webvoyage/html/help/map_srch.htm
- /m1/voyager/syrdb/webvoyage/html/help/patron.htm
- /m1/voyager/syrdb/webvoyage/html/help/refer.htm
- /m1/voyager/syrdb/webvoyage/html/help/titles.htm
- /m1/voyager/syrdb/webvoyage/html/help/titlkeyw.htm
- /m1/voyager/syrdb/webvoyage/html/images/back2recd.gif
- /m1/voyager/syrdb/webvoyage/html/images/banner.gif
- /m1/voyager/syrdb/webvoyage/html/images/cartbutton.gif
- /m1/voyager/syrdb/webvoyage/html/images/changepin.gif
- /m1/voyager/syrdb/webvoyage/html/images/clear.gif
- /m1/voyager/syrdb/webvoyage/html/images/d-bt_point.gif
- /m1/voyager/syrdb/webvoyage/html/images/d-next.gif
- /m1/voyager/syrdb/webvoyage/html/images/d-prev.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledBookbag.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledDatabase.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledExit.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledHeadings.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledHelp.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledHistory.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledLogin.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledPatron.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledPref.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledRequest.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledSavedSearch.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledSearch.gif
- /m1/voyager/syrdb/webvoyage/html/images/DisabledTitles.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownBookbag.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownDatabase.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownExit.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownHeadings.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownHelp.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownHistory.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownLogin.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownPatron.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownPref.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownRemote.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownRequest.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownSavedSearch.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownSearch.gif
- /m1/voyager/syrdb/webvoyage/html/images/DownTitles.gif
- /m1/voyager/syrdb/webvoyage/html/images/email.gif
- /m1/voyager/syrdb/webvoyage/html/images/footer.gif
- /m1/voyager/syrdb/webvoyage/html/images/limit.gif
- /m1/voyager/syrdb/webvoyage/html/images/note.gif
- /m1/voyager/syrdb/webvoyage/html/images/postlimitbtn.jpg
- /m1/voyager/syrdb/webvoyage/html/images/prefbutton.gif
- /m1/voyager/syrdb/webvoyage/html/images/s-next.gif
- /m1/voyager/syrdb/webvoyage/html/images/s-prev.gif
- /m1/voyager/syrdb/webvoyage/html/images/s-rel1.gif
- /m1/voyager/syrdb/webvoyage/html/images/s-rel5.gif
- /m1/voyager/syrdb/webvoyage/html/images/save.gif
- /m1/voyager/syrdb/webvoyage/html/images/savequerybutton.gif
- /m1/voyager/syrdb/webvoyage/html/images/seealso.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpBookbag.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpDatabase.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpExit.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpHeadings.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpHelp.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpHistory.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpLibrary.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpLocalDB.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpLogin.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpLogout.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpPatron.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpPref.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpRemote.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpRequest.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpSavedSearch.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpSearch.gif
- /m1/voyager/syrdb/webvoyage/html/images/UpTitles.gif
- /m1/voyager/syrdb/webvoyage/html/images/view1.gif
- /m1/voyager/syrdb/webvoyage/html/images/view1a.gif
- /m1/voyager/syrdb/webvoyage/html/images/view2.gif
- /m1/voyager/syrdb/webvoyage/html/images/view2a.gif
- /m1/voyager/syrdb/webvoyage/html/images/view3.gif
- /m1/voyager/syrdb/webvoyage/html/images/view3a.gif
- /m1/voyager/syrdb/webvoyage/html/images/view4.gif
- /m1/voyager/syrdb/webvoyage/html/images/view4a.gif
- /m1/voyager/syrdb/webvoyage/html/images/sul/ (entire directory)
- /m1/voyager/syrdb/webvoyage/html/webvoy.htm
Additional Library OPAC help specific directories and files
- /m1/voyager/syrdb/webvoyage/html/help/advkw.htm
- /m1/voyager/syrdb/webvoyage/html/help/cr-search.htm
- /m1/voyager/syrdb/webvoyage/html/help/fields.htm
- /m1/voyager/syrdb/webvoyage/html/help/index.htm
- /m1/voyager/syrdb/webvoyage/html/help/linked.htm
- /m1/voyager/syrdb/webvoyage/html/help/messages.htm
- /m1/voyager/syrdb/webvoyage/html/help/printing.htm
- /m1/voyager/syrdb/webvoyage/html/help/renewals.htm
- /m1/voyager/syrdb/webvoyage/html/help/sorting.htm
- /m1/voyager/syrdb/webvoyage/html/help/z3950.htm
Additional manual edits to customized files
- Create a symbolic link to webvoy.htm from index.html
- Edit /m1/voyager/syrdb/webvoyage/html/webvoy.htm
- Correct website host name, i.e., wvtest.syr.edu, etc.
- Edit /m1/voyager/syrdb/etc/webvoyage/local/opac.ini
- Correct paths for Error and Exit pages, i.e., /m1/voyager/syrdb,
etc.
- Edit /m1/voyager/syrdb/etc/webvoyage/local/voyager.ini
- Change timeout values from 180 to 600
- Edit /m1/voyager/syrdb/webvoyage/cgi-bin/webvoyage.ini
- Change all timeout values from 180 to 600
Automated Programs to apply customizations
from wvtest.syr.edu to wvpre.syr.edu
-
Log in to libtest.syr.edu and become user
voyager
-
Go to the
/export/home/mdesalvo/OPAC/ directory
and run
makeDircmp
#!/bin/sh
#
# You want to create a file from the directory
comparisons containing
# the list of unique files missing from wvpre that are in the customizations,
# plus a list of files that are in both areas but are different.
#
# The files that are identical one does not need to process as well
as the
# new files only in wvpre.
/usr/bin/dircmp /m1/voyager/syrdb/etc/webvoyage/local
/m1/incoming/wvpre/etc/webvoyage/syrdb > syrdbList.editme
#/usr/bin/dircmp /m1/incoming/wvpre/etc/webvoyage/local /m1/incoming/wvpre/etc/webvoyage/syrdb
> localList.editme
/usr/bin/dircmp /m1/voyager/syrdb/webvoyage/html/images
/m1/incoming/wvpre/webvoyage/html/images > imagesList.editme
/usr/bin/dircmp /m1/voyager/syrdb/webvoyage/html/images/sul /m1/incoming/wvpre/webvoyage/html/images/sul
> helpImagesList.editme
/usr/bin/dircmp /m1/voyager/syrdb/webvoyage/html/help /m1/incoming/wvpre/webvoyage/html/help
> helpList.editme
- Edit the .editme files to generate a list of just the
files that are either different or unique to the compared directories.
Rename the files with the same name minus the .editme
extensions.
- This identifies the customizations found in wvtest.syr.edu
- Run helpImagesPRE.pl, imagesPRE.pl, helpPRE.pl
#!/usr/bin/perl -w
#
$pathPRE= "/m1/incoming/wvpre/webvoyage/html/images/sul"
;
$pathTEST= "/m1/voyager/syrdb/webvoyage/html/images" ;
$cpCMD= "/usr/bin/cp -p" ;
open( OUT, ">./makeHelpImages") or die "Could not
open doHelp:$!\n" ;
print OUT "#!/bin/sh\n#\n\n" ;
open( IN, "./helpImagesList") or die "Could
not open doHelp:$!\n" ;
while ( <IN>) {
chomp $_ ;
print OUT "\n$cpCMD $pathPRE/$_ $pathPRE/$_.vanilla\n"
;
print OUT "\n$cpCMD $pathTEST/$_ $pathPRE/$_\n" ;
}
close( IN) ;
close( OUT) ;
- This will generate the manifest to backup up the vanilla files
in wvtest.syr.edu and copy over the customizations found
in wvtest.syr.edu
- Run the resulting makeHelp, makeHelpImages,
makeImages
- This will apply the customizations found in wvtest.syr.edu
to wvpre.syr.edu
Automated Programs to apply saved customizations
to wvtest.syr.edu
-
Log in to libtest.syr.edu and become user
voyager
- Go to the /export/home/mdesalvo/OPAC/ directory and run testPRE.pl
#!/usr/bin/perl -w
#
$pathPRE= "/m1/voyager/syrdb" ;
$pathLocal= "/export/home/mdesalvo/OPAC" ;
$cmdDIFF= "/usr/bin/diff -s" ;
open( OUT, ">$pathLocal/testPREetc") or die "Could
not open testPREetc:$!\n" ;
print OUT "#!/bin/sh\n#\n\n" ;
open( IN, "$pathLocal/etcPRE.vanilla")
or die "Could not open etcPRE.vanilla:$!\n" ;
while ( <IN>) {
chomp $_ ;
s|$pathLocal/||;
$orig= $_ ;
$orig=~ s/Vanilla// ;
print OUT "\n/usr/bin/echo \"\"\n"
;
print OUT "/usr/bin/echo \"testing... $orig -> $_\"\n"
;
print OUT "$cmdDIFF $pathPRE/etc/$orig $pathLocal/$_\n"
;
}
close( IN) ;
close( OUT) ;
open( OUT, ">$pathLocal/testPREwebvoyage") or die "Could
not open testPREwebvoyage:$!\n" ;
print OUT "#!/bin/sh\n#\n\n" ;
open( IN, "$pathLocal/webvoyagePRE.vanilla")
or die "Could not open webovyagePRE.vanilla:$!\n" ;
while ( <IN>) {
chomp $_ ;
s|$pathLocal/||;
$orig= $_ ;
$orig=~ s/Vanilla// ;
print OUT "\n/usr/bin/echo \"\"\n"
;
print OUT "/usr/bin/echo \"testing... $orig -> $_\"\n"
;
print OUT "$cmdDIFF $pathPRE/webvoyage/$orig $pathLocal/$_\n"
;
}
close( IN) ;
close( OUT) ;
- This will generate testPREetc and testPREwebvoyage
which will test the differences between the vanilla file versions
used in the respective current and preview releases
- Run customPRE.pl
#!/usr/bin/perl -w
#
$pathPRE= "/m1/voyager/syrdb" ;
$pathLocal= "/export/home/mdesalvo/OPAC" ;
$cmdCP= "/usr/bin/cp -p" ;
open( OUT, ">$pathLocal/customPREetc") or die "Could
not open $pathLocal/customPREetc:$!\n" ;
print OUT "#!/bin/sh\n#\n\n" ;
open( IN, "$pathLocal/etcPRE.vanilla")
or die "Could not open $pathLocal/etcPRE.vanilla:$!\n"
;
while ( <IN>) {
chomp $_ ;
s|$pathLocal/|| ;
$orig= $_ ;
$orig=~ s/Vanilla// ;
print OUT "\n$cmdCP $pathPRE/etc/$orig $pathPRE/etc/$orig.vanilla\n"
;
print OUT "\n$cmdCP $pathLocal/$orig $pathPRE/etc/$orig\n"
;
}
close( IN) ;
close( OUT) ;
open( OUT, ">$pathLocal/customPREwebvoyage") or die
"Could not open $pathLocal/customPREwebvoyage:$!\n" ;
print OUT "#!/bin/sh\n#\n\n" ;
open( IN, "$pathLocal/webvoyagePRE.vanilla")
or die "Could not open $pathLocal/webvoyagePRE.vanilla:$!\n"
;
while ( <IN>) {
chomp $_ ;
s|$pathLocal/|| ;
$orig= $_ ;
$orig=~ s/Vanilla// ;
print OUT "\n$cmdCP $pathPRE/webvoyage/$orig
$pathPRE/webvoyage/$orig.vanilla\n" ;
print OUT "\n$cmdCP $pathLocal/$orig $pathPRE/webvoyage/$orig\n"
;
}
close( IN) ;
close( OUT) ;
- This will generate customPREetc and customPREwebvoyage
which will copy the save customizations from the previous wvtest.syr.edu
to the current release
-
Log in to library.syr.edu and become user
voyager
- Go to the /export/home/mdesalvo/OPAC/ directory and run customREL.pl
#!/usr/bin/perl -w
#
$pathREL= "/m1/voyager/syrdb" ;
$pathLocal= "/export/home/mdesalvo/OPAC" ;
#$pathFile= "$pathLocal/etc.customizations.txt" ;
$pathFile= "$pathLocal/webvoyage.customizations.txt" ;
$cmdCP= "/usr/bin/cp -p" ;
$tmpYearMonth= `date +%Y%b` ;
$tmpDay= `date +%d` -1 ;
chomp( $tmpYearMonth) ;
if ( $tmpDay > 9) { $newDate= "$tmpYearMonth$tmpDay"
; }
else { $newDate= "$tmpYearMonth" . "0$tmpDay"
; }
print "#!/bin/sh\n#\n\n" ;
open( IN, "$pathFile") or die "Could
not open $pathFile:$!\n" ;
while ( <IN>) {
chomp $_ ;
$vanilla= $_ . "Vanilla$newDate" ;
print "\n$cmdCP $pathREL/$_ $pathREL/$vanilla\n"
;
# system( "$cmdCP $pathREL/$_ $pathREL/$vanilla") ;
print "$cmdCP $pathLocal/$_ $pathREL/$_\n"
;
# system( "$cmdCP $pathLocal/$_ $pathREL/$_") ;
}
close( IN) ;