| 1 |
<!--#config timefmt="%d-%b-%C%y, %I:%M %p" --> |
| 2 |
<!--#set var="title" value="The AC Package" --> |
| 3 |
<!--#set var="icon" value="acedb.gif" --> |
| 4 |
<!--#set var="author" value="fw" --> |
| 5 |
<!--#set var="keywords" value="acedb, CVS, ac scipts, source code control, change management, checkin, checkout, changelog" --> |
| 6 |
<!--#set var="description" value="The AC-package is a set of scripts providing easy access to version management and change tracking of the Acedb source code. " --> |
| 7 |
|
| 8 |
<!--#exec cgi="/cgi-bin/header" --> |
| 9 |
|
| 10 |
<H1 ALIGN=CENTER> Management of the Acedb source code </H1> |
| 11 |
|
| 12 |
<P>The <CODE>AC package</CODE> is an internal set of scripts for |
| 13 |
managing the acedb source code. The Acedb code is under CVS |
| 14 |
management. For ease of use and safety several scripts have been |
| 15 |
written to control the cvs functions. The CVS system is only |
| 16 |
accessible on the local system to users in the 'acedb' user-group. For |
| 17 |
consistency reasons, users are being discouraged from using cvs |
| 18 |
commands directly.</P> |
| 19 |
|
| 20 |
<H2 ALIGN=CENTER> Operations on individual source files </H2> |
| 21 |
|
| 22 |
<P>All AC commands have a command line argument |
| 23 |
<file(s)>. It allows to perform the same action on multiple |
| 24 |
files. There are various ways is to specify the filename and its |
| 25 |
subdirectory, e.g. : |
| 26 |
</P> |
| 27 |
|
| 28 |
<BLOCKQUOTE> |
| 29 |
aco w2/graphxt.c graph.h graphsubs.c |
| 30 |
</BLOCKQUOTE> |
| 31 |
|
| 32 |
|
| 33 |
<P>This will check out w2/graphxt.c wh/graph.h and w2/graphsubs.c. The |
| 34 |
subdirectory is optional. The script will first try to find the find |
| 35 |
the file in the current directory or look for it across all |
| 36 |
subdirectories (might take slightly longer). |
| 37 |
</P> |
| 38 |
|
| 39 |
|
| 40 |
<H3> <CODE>aco</CODE> - checkout</H3> |
| 41 |
<P> |
| 42 |
aco <file(s)> checks out a file for editing. <br> |
| 43 |
|
| 44 |
First grabs the latest version from the repository, then registers |
| 45 |
the user as an editor and gives permission to edit the files locally. |
| 46 |
</P> |
| 47 |
|
| 48 |
|
| 49 |
<H3> <CODE>aci</CODE> - checkin</H3> |
| 50 |
<P> |
| 51 |
aci <file(s)> checks in a file to the repository after editing.<br> |
| 52 |
|
| 53 |
The user is prompted for log information about the nature of the changes. |
| 54 |
The environment variable <CODE>$CVSEDITOR</CODE> specifies an editor to be |
| 55 |
used to enter the change-log text.<BR> |
| 56 |
|
| 57 |
The modified user's copy is comitted to the repository and edit permissions |
| 58 |
are removed form the user's working directory. Other users editing this |
| 59 |
file at the same time are notified by mail about this action. |
| 60 |
</P> |
| 61 |
<P> |
| 62 |
NOTE: Just in case the file was created in a DOS/Windows environment, |
| 63 |
all redundant PC-style control characters are removed prior to the |
| 64 |
"commit" action. |
| 65 |
</P> |
| 66 |
|
| 67 |
<H3> <CODE>acu</CODE> - unedit</H3> |
| 68 |
<P> |
| 69 |
acu <file(s)> removes edit permissions on a file.<br> |
| 70 |
|
| 71 |
The user's local working copy is reverted back to the |
| 72 |
latest repository version and his edit permissions are revoked. |
| 73 |
Any modifications since checkout are therefor lost. |
| 74 |
</P> |
| 75 |
|
| 76 |
<H3> <CODE>acg</CODE> - get latest</H3> |
| 77 |
<P> |
| 78 |
acg <file(s)> update/get new version of file from repository.<BR> |
| 79 |
|
| 80 |
If the file already exists locally, the user's working copy is brought |
| 81 |
up to the date with the repository version. The user is warned |
| 82 |
if the file is being edited locally at the time.<BR> |
| 83 |
If the file doesn't yet exist locally (another user has just recently created the file) |
| 84 |
the subdirectory in which it is supposed to appear has to be specified. |
| 85 |
Warnings are given if such file doesn't exist in the repository. |
| 86 |
</P> |
| 87 |
|
| 88 |
<H3> <CODE>acr</CODE> - create</H3> |
| 89 |
<P> |
| 90 |
acr <file(s)> adds the new file to the repository.<br> |
| 91 |
|
| 92 |
The file is expected to already exist locally. A new repository |
| 93 |
entry is committed for the file with a default log message saying |
| 94 |
<CODE>"initial revision"</CODE>. |
| 95 |
The file is then set to read-only premissions locally. And from then |
| 96 |
on, <CODE>aco</CODE> has to be used to check out a editable copy |
| 97 |
of this file. |
| 98 |
</P><P> |
| 99 |
NOTE: Just in case the file was created in a DOS/Windows environment, |
| 100 |
all redundant PC-style control characters are removed prior to the |
| 101 |
"commit" action. |
| 102 |
</P> |
| 103 |
|
| 104 |
<H3> <CODE>acx</CODE> - remove</H3> |
| 105 |
<P> |
| 106 |
acx <file(s)> removes the file locally and from the repository.<BR> |
| 107 |
|
| 108 |
The user is queried for safety, and after a positive answer |
| 109 |
the file is removed in the user's working copy and then marked |
| 110 |
deleted from the repository. |
| 111 |
</P> |
| 112 |
<P> |
| 113 |
NOTE: The files doesn't realy disappear. All its old changelogs |
| 114 |
will continue to reside in the so-called <I>attic</I> of the |
| 115 |
repository, but it won't show up in the active copy. |
| 116 |
<CODE>acetree</CODE> will remove a local copy of a dead file |
| 117 |
in another user's working copy to reflect that change throughout |
| 118 |
all copies of the source tree. |
| 119 |
</P> |
| 120 |
|
| 121 |
<H3> <CODE>acd</CODE> - diff</H3> |
| 122 |
<P> |
| 123 |
acd <file(s)> reports the differences between the users local |
| 124 |
working copy of the file(s) and the repository version. |
| 125 |
</P> |
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
<H3> <CODE>acm</CODE> - move/rename</H3> |
| 130 |
<P> |
| 131 |
amv <newpath> <file(s)> moves/renames the the file <BR> |
| 132 |
|
| 133 |
This command behaves similarly to the UNIX command '<CODE>mv</CODE>', but |
| 134 |
the new path is specified first. This is slightly unusual, but it |
| 135 |
brings this command in line with all the others in term of the variable-length |
| 136 |
<file(s)> parameter list. |
| 137 |
If a file is to be renamed, only one filename is allowed in this parameter-list. |
| 138 |
</P> |
| 139 |
<P> |
| 140 |
amv <wnew> file1.c w2/file2.c - finds which subdir file1.c is in and moves it to wnew, then moves w2/file2.c to wnew <BR> |
| 141 |
amv <wnew/newfile.c> oldfile.c - finds the subdir of oldfile.c, then moves it to wnew and renames it. If no new directory is specified, oldfile.c is renamed within its present directory. |
| 142 |
</P> |
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
<H3> <CODE>aclog</CODE> - log</H3> |
| 147 |
<P> |
| 148 |
aclog -d"timeformat" <file> will report all log reports for this |
| 149 |
file during the timeformat. If no timeformat then all log reports are |
| 150 |
given. |
| 151 |
</P> |
| 152 |
<P> |
| 153 |
<DL> |
| 154 |
<DT>Example :</DT> |
| 155 |
|
| 156 |
<DD><KBD>aprs -d">yesterday" call.c</KBD><BR> |
| 157 |
gives all log reports since yesterday for file call.c |
| 158 |
</DD> |
| 159 |
|
| 160 |
<DD><P> |
| 161 |
<KBD>aprs -d"<10/19/97" call.c </KBD><br> |
| 162 |
gives all log reports before 19th October 1997 for file call.c |
| 163 |
</P></DD> |
| 164 |
</DL> |
| 165 |
</P> |
| 166 |
|
| 167 |
<H3> <CODE>acw</CODE> - set watch</H3> |
| 168 |
<P> |
| 169 |
acw <file> sets a watch on the files. <BR> |
| 170 |
Watches will cause the system to send out an email to the |
| 171 |
<I>watcher</I> if anything is being done about that |
| 172 |
file (e.g. a file is being edited, unedited, checked in etc.) |
| 173 |
<BR> |
| 174 |
Although it does introduce some kind of ownership |
| 175 |
over a file it might be useful. |
| 176 |
<BR> |
| 177 |
Any user who is trying to edit (check out) a <I>watched</I> |
| 178 |
file will be informed of who is watching it. |
| 179 |
Although the user is given the choice to abort the |
| 180 |
attempt to edit, it doens't impede anyone's right to |
| 181 |
edit a file anyway. |
| 182 |
</P> |
| 183 |
|
| 184 |
<H3> <CODE>acwx</CODE> - remove watch</H3> |
| 185 |
<P> |
| 186 |
acx <file> removes the watch on the files. <BR> |
| 187 |
This command will fail, if you are not currently watching the file. |
| 188 |
</P> |
| 189 |
|
| 190 |
|
| 191 |
<HR> |
| 192 |
|
| 193 |
<H2 ALIGN=CENTER>Operations spanning the whole tree</H2> |
| 194 |
|
| 195 |
<P> |
| 196 |
In addition to the AC commands which operate on single files |
| 197 |
there is a set of commands, that operate on entire directories |
| 198 |
or even the entire tree. |
| 199 |
</P> |
| 200 |
<P> |
| 201 |
All ACE commands have an optional parameter list :- |
| 202 |
</P> |
| 203 |
|
| 204 |
<DL> |
| 205 |
<DT><dir(s)></DT> |
| 206 |
<DD>list of directories to include in operation, e.g.<BR> |
| 207 |
<KBD>aceinfo w1 w2 w4 wh</KBD></DD> |
| 208 |
|
| 209 |
<DD><P>Use -a option as the <dir> parameter to include all |
| 210 |
system-defined directories in the operation.</P></DD> |
| 211 |
|
| 212 |
<DD><P>By default, the list specified in the user-defined file |
| 213 |
$ACEDB_SRC/DIRECTORIES is used. |
| 214 |
</P></D> |
| 215 |
|
| 216 |
<DD><P>If no such user-defined default exists, the list in |
| 217 |
~acedb/ALL_DIRECTORIES is used instead (as for the -a option) |
| 218 |
</P></DD> |
| 219 |
</DL> |
| 220 |
|
| 221 |
|
| 222 |
<H3> <CODE>acetree</CODE> - update</H3> |
| 223 |
<P> |
| 224 |
acetree [<dir(s)>] Updates user-copy of acedb-sourcetree from |
| 225 |
the CVS repository. Reports change-logs and gets new CVS |
| 226 |
master-versions. Lists currently checked out files. |
| 227 |
<DL> |
| 228 |
<DT>Example :</DT> |
| 229 |
|
| 230 |
<DD><KBD>mkdir ~/acedb</KBD></DD> |
| 231 |
<DD><KBD>setenv ACEDB_SRC ~/acedb</KBD></DD> |
| 232 |
<DD><KBD>acetree -a</KBD></DD> |
| 233 |
<DD>Creates a local user copy of all source-tree directories |
| 234 |
in ~/acedb/. If specific directories are given on the command |
| 235 |
line instead of <KBD>-a</KBD>, only those directories |
| 236 |
will be copied locally.</DD> |
| 237 |
</DL> |
| 238 |
</P> |
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
<H3> <CODE>aceinfo</CODE> - changelog</H3> |
| 243 |
<P> |
| 244 |
aceinfo [<dir(s)>] reports any differences between your version |
| 245 |
of the code and the repository's. It will also list who currently has |
| 246 |
checked out any of those files. |
| 247 |
</P> |
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
<H3> <CODE>acegrep</CODE> - source-code search</H3> |
| 252 |
<P> |
| 253 |
acegrep <searchword> [<dir(s)>] performs global |
| 254 |
source-code search for <searchword> in user-copy |
| 255 |
of acedb-sourcetree. In source-code directories, only C files |
| 256 |
will be considered (includes C++ and header files), but |
| 257 |
all files are searched in other directories (like whelp/). |
| 258 |
<BR> |
| 259 |
If only lower-case letters are used in the searchword, grep is |
| 260 |
run with the -i flag (case-insensitivity). Upper-case letter |
| 261 |
force a case-sensitive search (similar to the regular search in emacs). |
| 262 |
<BR> |
| 263 |
NOTE: for this command the optional <dir(s)> list |
| 264 |
starts with the second command line argument. |
| 265 |
<DL> |
| 266 |
<DT>Example:</DT> |
| 267 |
<DD><KBD>acegrep '\ main\ *(' -a</KBD><BR> |
| 268 |
lists all files containing a main function over |
| 269 |
all directories in the local tree (overriding the |
| 270 |
personal DIRECTORIES list). |
| 271 |
</DD> |
| 272 |
</DL> |
| 273 |
</P> |
| 274 |
|
| 275 |
<H3> <CODE>acewho</CODE> - who has what? </H3> |
| 276 |
<P> |
| 277 |
acewho [<searchword>] [<dir(s)>] - list the |
| 278 |
editors of all files.<BR> |
| 279 |
The check-out signatures of all files in the specified (or all) |
| 280 |
directories are listed. Optionally the output list can be search for |
| 281 |
a string or regex (passed on to grep internally). |
| 282 |
<BR> |
| 283 |
NOTE: If command line arguments are specified, the first one |
| 284 |
is takend to be the <searchword> parameter, if it isn't |
| 285 |
a local directory name. |
| 286 |
<DL> |
| 287 |
<DT>Example:</DT> |
| 288 |
<DD><KBD>acewho fw w2 wh</KBD><BR> |
| 289 |
lists the files that are edited in w2/ and wh/ and |
| 290 |
only displays lines containing the string <KBD>fw</KBD>. |
| 291 |
It is just shorter for :<BR> |
| 292 |
<KBD>acewho w2 wh | grep fw</KBD> |
| 293 |
<DD> |
| 294 |
|
| 295 |
<DD><P> |
| 296 |
<KBD>acewho w1</KBD><BR> |
| 297 |
lists all files in w1/ that being edited. |
| 298 |
</P></DD> |
| 299 |
|
| 300 |
<DD><P> |
| 301 |
<KBD>acewho edgrif -a</KBD><BR> |
| 302 |
lists files edited by edgrif across all local directories |
| 303 |
(overriding the personal DIRECTORIES list). |
| 304 |
</P></DD> |
| 305 |
</DL> |
| 306 |
</P> |
| 307 |
|
| 308 |
<!--#exec cgi="/cgi-bin/footer" --> |