» Example
check
[ Summary | Usage | Example
Output | Installation ]
Summary
check who - who has files checked out
check new - check in a new file
check in - check in a checked out file
check out | ro - check out a file for edit | read-only
check cancel - cancel a check out (for edit)
check comment - change the SCCS commentary of a file
check hist - show SCCS history (comments) for a file
check diff - compare 2 versions of a file
check view - check ro a file, view it, and remove it
check ver - check version of a file
check where - check where the SCCS repository is for a file
check list - check out a file and list it to the screen
[ Summary | Usage | Example
Output | Installation ]
Usage
andrea@amanda{~/scripts}: check
check: SCCS wrapper
check who - who has files checked out
usage: check who [file [file [...]] | @user [@user [...]]]
ex: check who
lists all files checked out
ex: check who @andrea @dan
lists all files checked out by andrea and dan
ex: check who smd801.txt
lists all versions of smd801.txt checked out
check new - check in a new file
usage: check new sccsdir file [file [...]]
ex: check new /usr/srce.c myfile.c
checks myfile.c into the /usr/srce.c SCCS repository
for the first time
check new /usr/srce.c *.c *.h
checks all the .c and .h files into the /usr/srce.c SCCS
repository for the first time
check in - check in a checked out file
usage: check in [-rversion] [-y"comment"] file [file [...]]
ex: check in -y"changes for MR #95-09-097" myfile.txt myfile.par
checks in myfile.txt and myfile.par with the comment
"changes for MR #95-09-097"
ex: check in -r1.3 myfile.txt
checks in version 1.3 of myfile.txt
check out | ro - check out a file for edit | read-only
usage: check out | ro [-rversion] file [file [...]]
ex: check out myfile.c
checks out myfile.c for edit
ex: check ro myfile.txt myfile.par
checks out read-only copies of myfile.txt and myfile.par
ex: check ro -r1.3 myfile.txt
checks out version 1.3 of myfile.txt as read-only
check cancel - cancel a check out (for edit)
usage: check cancel [-rversion] file [file [...]]
ex: check cancel -r1.3 myfile.txt
cancels check out of version 1.3 of myfile.txt
ex: check cancel myfile.txt myfile.par
cancels check out of myfile.txt and myfile.par
check comment - change the SCCS commentary of a file
usage: check comment -rversion [-y"comment"] file [file [...]]
ex: check comment -r1.3 myfile.txt
prompts for new comment for version 1.3 of myfile.txt
ex: check comment -r1.2 -y"release 6.02 superama" files.c dex.h
adds new comment "release 6.02 superama" to version 1.2
of files.c and dex.h
check hist - show SCCS history (comments) for a file
usage: check hist [-rversion] [-e] [-l] file [file [...]]
ex: check hist myfile.txt myfile.par
prints SCCS history for myfile.txt and myfile.par
ex: check hist -r1.3 myfile.txt
prints SCCS history for version 1.3 of myfile.txt
ex: check hist -r1.7 -e myfile.c
prints SCCS history for versions earlier than 1.7 of myfile.c
ex: check hist -r1.3 -l myfile.c
prints SCCS history for versions later than 1.3 of myfile.c
check diff - compare 2 versions of a file
usage: check diff [-pprinter] -c | -w | -rversion1 -rversion2 file
-c uses the most current version of the file
-w uses the working (checked out) version of the file
-p causes the differences to be printed (to printer)
ex: check diff -r1.3 -r1.4 myfile.c
shows differences between version 1.3 and 1.4 of myfile.c
ex: check diff -c -w myfile.c
shows differences between the checked version of myfile.c
and the latest checked in version
ex: check diff -pprogram -w -r1.6.1 myfile.c
prints differences between version 1.6.1 of myfile.c and the
working (checked out) version of myfile.c to printer program
note: versions are compared ignoring changes in amount of white
space
check view - check ro a file, view it, and remove it
usage: check view [-rversion] file [file [...]]
ex: check view lookup.c lookup.h
checks out read-only copies of lookup.c and lookup.h and
views them
ex: check view -r1.5 ConvDate.h
checks out version 1.5 of ConvDate.h as read-only and views it
check ver - check version of a file
usage: check ver file [file [...]]
ex: check ver smd330.txt
prints the version of smd330.txt that is in SCCS or is
being edited
check where - check where the SCCS repository is for file
usage: check where file [file [...]]
ex: check where AmaTool.mak
prints the SCCS repository that AmaTool.mak is checked into
check list - check out a file and list it to the screen
usage: check list [-rversion] file [file [...]]
ex: check list -r1.1 AmaTool.mak
prints version 1.1 of AmaTool.mak to the screen
check uses the environment variable SCCS_PATH to look for SCCS files.
[ Summary | Usage | Example
Output | Installation ]
Example
Output
andrea@amanda{~/scripts}: check who webclient.c logmon.c
------------------------------------------------------------------------
SCCS Directory: /sccs/srce.c
Username Date Time Version Filename
------------------------------------------------------------------------
andrea 97/06/26 08:43:35 1.2 webclient.c
andrea 97/05/30 19:43:51 1.4 logmon.c
andrea@amanda{~/scripts}: check who @andrea
------------------------------------------------------------------------
SCCS Directory: /sccs/srce.c
Username Date Time Version Filename
------------------------------------------------------------------------
andrea 97/11/07 09:58:16 1.5 TimeStamp.c
andrea 97/05/30 19:43:51 1.4 logmon.c
andrea 97/05/30 19:44:47 1.3 uici.c
andrea 97/06/26 08:43:35 1.2 webclient.c
------------------------------------------------------------------------
SCCS Directory: /sccs/scripts
Username Date Time Version Filename
------------------------------------------------------------------------
andrea 98/01/09 23:00:48 1.3 fuser2
andrea@amanda{~/scripts}: check new /sccs/scripts test.ksh
test.ksh:
andrea@amanda{~/scripts}: check in -y"Added goodbye line" test.ksh
test.ksh:
1.2
1 inserted
0 deleted
2 unchanged
andrea@amanda{~/scripts}: check out test.ksh
test.ksh:
Retrieved:
1.1
new delta 1.2
2 lines
andrea@amanda{~/scripts}: check ro test.ksh
test.ksh:
Retrieved:
1.2
3 lines
andrea@amanda{~/scripts}: check cancel test.ksh
test.ksh:
1.3
andrea@amanda{~/scripts}: check comment -r1.1 -y"New date program" test.ksh
andrea@amanda{~/scripts: check hist test.ksh
/sccs/scripts/s.test.ksh:
D 1.2 98/01/09 23:09:43 andrea 2 1 00001/00000/00002
MRs:
COMMENTS:
Added goodbye line
D 1.1 98/01/09 23:06:24 andrea 1 0 00002/00000/00000
MRs:
COMMENTS:
New date program
*** CHANGED *** 98/01/09 23:12:31 andrea
date and time created 98/01/09 23:06:24 by andrea
andrea@amanda{~/scripts}: check diff -r1.2 -r1.1 test.ksh
*** test.ksh version 1.1
--- test.ksh version 1.2
***************
*** 1,2 ****
! # @(#) test.ksh - Revision 1.1 - 01/09/98
echo "hello, today is: `date`"
--- 1,3 ----
! # @(#) test.ksh - Revision 1.2 - 01/09/98
echo "hello, today is: `date`"
+ echo "goodbye"
andrea@amanda{~/scripts}: check view test.ksh
andrea@amanda{~/scripts}: check ver test.ksh
------------------------------------------------------------------------
key: * = checked out
Username Date Time Version Filename
------------------------------------------------------------------------
andrea 98/01/09 23:09:43 1.2 test.ksh
andrea 98/01/09 23:19:01 1.3 test.ksh*
andrea@amanda{~/scripts}: check where test.ksh
------------------------------------------------------------------------
Filename SCCS Repository
------------------------------------------------------------------------
test.ksh /sccs/scripts
andrea@amanda{~/scripts}: check list test.ksh
# @(#) test.ksh - Revision 1.2 - 01/09/98
echo "hello, today is: `date`"
echo "goodbye"
[ Summary | Usage | Example
Output | Installation ]
Installation
Make sure to install sccs.c first.
More Downloads
|