From: Eric S. Raymond Date: Mon, 15 Nov 2010 20:24:09 +0000 (-0500) Subject: Add modern packaging and a manual page. X-Git-Tag: 1.7^0 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=2df9a6c309e7738f42a3c9e6874ece06a0c81efc;p=sccs2rcs.git Add modern packaging and a manual page. --- diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..7e5dd19 --- /dev/null +++ b/COPYING @@ -0,0 +1,28 @@ + BSD LICENSE + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +Neither name of the this project nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f23b5c7 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +# +# makefile for sccs2rcs +# +VERS=$(shell sed MANIFEST + @(cd ..; ln -s sccs2rcs sccs2rcs-$(VERS)) + (cd ..; tar -czvf sccs2rcs/sccs2rcs-$(VERS).tar.gz `cat sccs2rcs/MANIFEST`) + @(cd ..; rm sccs2rcs-$(VERS)) + +version: + @echo $(VERS) + +dist: sccs2rcs-$(VERS).tar.gz + +release: sccs2rcs-$(VERS).tar.gz sccs2rcs.html + shipper -u -m -t; make clean diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..97ba3b0 --- /dev/null +++ b/NEWS @@ -0,0 +1,35 @@ + sccs2rcs project news + +1.7: 2010-11-15 + Added a manual page. + +1.6: 2010-10-20 + Reorganize and expand the header comment so it is actually useful. + +1.5: 2007-09-14 + Bug fix in comment extraction from Peter Grandcourt and Frederic + G. Marand. + +1.4: 2007-07-13 + Python rewrite described above. Interface cleanup. Auto-checkout + of RCS workfiles corresponding to SCCS workfiles present when started. + Lifting of VC mode snapshot info. Initial-comments file. + +1.3: 2007-07-10 + Merges in Brian Berliner's branch hack from the other fork + of this script, the one distributed with CVS. That and four SCCS + keyword substitutions were the only thing it did that this didn't. + +1.2: 2003-04-09 + Merges in Roger Pilkey's fix for the case in which date spans + cross the millenium boundary. Use GNU tac instead of tail, which can't + reverse large files properly. + +1.1: 2002-08-01 + I added some portability fixes and the -u option. More importantly, + I removed the dependencies on the BSD/SV `sccs' utility; this script + will now work on any system that has the base SCCS/RCS tools available. + +Descended from, an ancient shellscvript by Ken Cox, with contributions by +Brian Berliner and others. + diff --git a/control b/control new file mode 100644 index 0000000..4396283 --- /dev/null +++ b/control @@ -0,0 +1,13 @@ +# This is not a real Debian control file +# It's project metadata for the shipper tool + +Package: sccs2rcs + +Description: move an SCCS repository to RCS + A tool to convert an existing SCCS history into an RCS history without + losing any of the information contained therein. It requires that the + SCCS and RCS tools be installed on your system. + +Homepage: http://www.catb.org/~esr/sccs2rcs + +XBS-Project-Tag-List: SCCS, RCS, version control diff --git a/sccs2rcs b/sccs2rcs index 0d96f16..38f960b 100755 --- a/sccs2rcs +++ b/sccs2rcs @@ -91,10 +91,14 @@ # # 1.6: Reorganize and expand the header comment so it is actually useful. # +# 1.7: Added a manual page. +# # Eric S. Raymond import os, sys, getopt, re, commands +version="1.7" + # Here are the translations for SCCS % keywords to RCS-style $ keywords. # The quotes surround the dollar signs are to fool RCS and later version- # control systems when the script is checked in. In the unlikely event diff --git a/sccs2rcs.xml b/sccs2rcs.xml new file mode 100644 index 0000000..b2d1b1d --- /dev/null +++ b/sccs2rcs.xml @@ -0,0 +1,62 @@ + + + + +sccs2rcs +1 +Nov 11 2010 +sccs2rcs +sccs2rcs +Development Tools + + +sccs2rcs +move an SCCS repository to RCS + + + + + sccs2rcs + -c + + + +DESCRIPTION + +sccs2rcs is a script to convert an existing +SCCS history into an RCS history without losing any of the information +contained therein. It requires that the SCCS and RCS tools be +installed on your system. + +Run this in a directory with an SCCS subdirectory. It will convert +all the SCCS files to corresponding RCS master files in a new RCS +directory; the SCCS data itself is accessed read-only. It will +complain and terminate if any of the SCCS files are checked out or +if the RCS directory already exists and is nonempty. If the +directory contains snapshot auxiliary data produced by Emacs VC mode +for tagging, that will be used too. + +Date, time, author, comments, and branches, are all preserved. +Most SCCS keywords are translated to RCS keywords; it will +complain about the exceptions so you can see them. + +If this tool fails it will tell you why. `rm -rf RCS; unget SCCS/s.*' +will recover your initial state. + +There is one option. With -c you can specify an initial-comments file. +Each line should consist of a filename followed by a colon, followed +by the RCS initial coment to set for that file. + + +ERROR RETURNS +Returns 1 on any error, 0 otherwise. + + +AUTHOR + +Eric S. Raymond esr@thyrsus.com; project page at http://www.catb.org/~esr/sccs2rcs. + +