]> thyrsus.com Git - sccs2rcs.git/commitdiff
We got initial comments right.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 17:41:53 +0000 (17:41 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 17:41:53 +0000 (17:41 +0000)
sccs2rcs

index 80393e070c1b5df984a0c623e7900cb3cf21db67..4de7cbb68f276476574caf13720f80eafeb382da 100755 (executable)
--- a/sccs2rcs
+++ b/sccs2rcs
@@ -185,7 +185,7 @@ if __name__ == '__main__':
                 die("ill-formed line '%s' in comments file" % line)
             if filename in initstrings:
                 die("duplicate filename in initstrings")
-            initstrings[filename] = initstrings
+            initstrings[filename] = initstring.strip()
 
     # If the CSSC package is installed, the SCCS commands might be here.
     # This assumption works under Debian/Ubuntu and will be harmless elsewhere.
@@ -273,9 +273,9 @@ if __name__ == '__main__':
             # check file into RCS
             if firsttime:
                 firsttime = False
-                if filename in initstrings:
-                    cmd = 'ci -f -r%s -d"%s" -w%s -t-%s %s' \
-                          % (rev, rcsdate, author, initstrings[filename], stem)
+                if stem in initstrings:
+                    cmd = 'ci -f -r%s -d"%s" -w%s -t-"%s" %s' \
+                          % (rev, rcsdate, author, initstrings[stem], stem)
                 else:
                     if initstrings:
                         warn("no description for %s in comments file" % stem)