/
README.cvs
156 lines (108 loc) · 4.55 KB
/
README.cvs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
------------------------------------------------------------------------------
Tracking Interchange development in CVS
------------------------------------------------------------------------------
If you don't want to wait for an official release, you can use anonymous
CVS to follow the latest Interchange development.
WARNING: There may be bugs introduced at any time! Thoroughly test any
changes before incorporating. Better yet, don't use CVS changes for
anything but fixing present bugs, and run the latest release.
Check out a local copy
----------------------
You need to have CVS installed on your system, to begin with. It
comes pre-installed on most free Unix-like systems if you selected
the development tools at install time. See http://www.cvshome.org/
for download locations if you don't have it.
If you are already an experienced CVS user, the information is:
CVSROOT :pserver:cvs@cvs.akopia.com:/var/cvs
password (none)
module interchange
If you are not experienced with CVS, it is still easy to get going by
following these steps. First, choose a place to put the local copy you're
going to check out. A good choice is somewhere in your home directory,
probably a src/ subdirectory:
$ cd
$ mkdir src
$ cd src
$ cvs -z3 -d :pserver:cvs@cvs.akopia.com:/var/cvs checkout -P interchange
It will take a while, as there are several megabytes of files to download.
Make a distribution tar file
----------------------------
If it is your first time installing Interchange from the CVS, you will want
to make a distribution tar file:
$ cd interchange
$ perl Makefile.PL nocopy
Writing Makefile for Interchange
$ make tardist
/usr/local/bin/perl -I/YOUR/PERL/LIB -MExtUtils::Manifest=manicopy,maniread \
-e "manicopy(maniread(),'interchange-4.8.x', 'best');"
mkdir interchange-4.8.x
mkdir interchange-4.8.x/dist
....
$ ls interch*
interchange-4.8.x.tar.gz
Unpack and install
------------------
Unpack the tar file and install as normal. See the README file and other
documentation for help. You should already be familiar with the Interchange
developer website at:
http://interchange.redhat.com/
Make sure you don't check out your CVS copy into $HOME/interchange
and then install on top of it, since $HOME/interchange is the default
install directory.
Checking for differences
------------------------
If you want to see how your current image compares to the repository,
cd into your checked out CVS copy and run:
cvs diff | more
Updating
--------
To update the distribution, change to your checked out CVS directory
(e.g. src/interchange), then run:
$ cvs update -Pd
U MANIFEST
U WHATSNEW
....
In many cases, the major differences in the distribution will be easily
updateable. You can copy any changed files directly to these library
directories:
lib/Vend (and all subdirectories)
lib/UI (and all subdirectories)
You should check the files:
catalog_after.cfg (infrequently updated)
catalog_before.cfg (frequently updated)
interchange.cfg.dist (infrequently updated)
usertag/* (infrequently updated)
Finally, you should check differences in the bin/* files. While they
are not as frequently updated as the lib/* files, they do change. Run
diffs against the source files in scripts/*.PL, or do another install
to a blank directory and do a diff to that.
Keeping the catalog in sync
---------------------------
If you are patterning your order methods after one of the template
catalogs, you will want to check the products/*.txt and products/*.asc
files for changes. In particular, mv_metadata.asc is used to format
and present quite a few things in the user interface. You may have
to merge the databases manually. In most cases, you can import them
into a spreadsheet or database.
Troubleshooting
---------------
If you get a complaint that a "file is not found" when trying to do a
'make tardist' or 'make dist', that means your MANIFEST file is out of
sync with the current codebase. Just do:
rm MANIFEST
make manifest
More on CVS
-----------
If you plan to frequently use CVS, it is helpful to create a .cvsrc file
in your home directory with commonly-used options such as these:
cvs -z3
diff -u
update -Pd
checkout -P
This directs CVS to (1) automatically compress all data communicated
between you and our server (saving bandwidth); (2) show context-sensitive
diffs; (3) prune empty directories and create any new directories added
to the repository since your checkout; and (4) prune empty directories
during your checkouts.
Please see the CVS website for complete documentation:
http://www.cvshome.org/