Hex Artifact Content
Not logged in

Artifact df73a69477f7abbe7d25d905d4604d01b567ef26:

File tools/cvs2fossil/cvs2fossil part of check-in [2a98ac44bd] - Third attempt at getting a cvs importer which can handle branches. Using cvs2svn code and design notes as a guide. by aku on 2007-10-02 03:05:43. Also file tools/cvs2fossil/cvs2fossil part of check-in [38b967dcf5] - Merge aku's CVS import changes into the main line. Fix a small bug in diff.c. by drh on 2007-11-17 00:29:42.

0000: 23 21 2f 62 69 6e 2f 73 68 0a 23 23 20 2d 2a 2d  #!/bin/sh.## -*-
0010: 20 74 63 6c 20 2d 2a 2d 20 5c 0a 65 78 65 63 20   tcl -*- \.exec 
0020: 74 63 6c 73 68 20 22 24 30 22 20 24 7b 31 2b 22  tclsh "$0" ${1+"
0030: 24 40 22 7d 0a 0a 23 20 23 20 23 23 20 23 23 23  $@"}..# # ## ###
0040: 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23 20   ##### ######## 
0050: 23 23 23 23 23 23 23 23 23 23 23 23 23 20 23 23  ############# ##
0060: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0070: 23 23 23 0a 23 23 20 43 6f 70 79 72 69 67 68 74  ###.## Copyright
0080: 20 28 63 29 20 32 30 30 37 20 41 6e 64 72 65 61   (c) 2007 Andrea
0090: 73 20 4b 75 70 72 69 65 73 2e 0a 23 0a 23 20 54  s Kupries..#.# T
00a0: 68 69 73 20 73 6f 66 74 77 61 72 65 20 69 73 20  his software is 
00b0: 6c 69 63 65 6e 73 65 64 20 61 73 20 64 65 73 63  licensed as desc
00c0: 72 69 62 65 64 20 69 6e 20 74 68 65 20 66 69 6c  ribed in the fil
00d0: 65 20 4c 49 43 45 4e 53 45 2c 20 77 68 69 63 68  e LICENSE, which
00e0: 0a 23 20 79 6f 75 20 73 68 6f 75 6c 64 20 68 61  .# you should ha
00f0: 76 65 20 72 65 63 65 69 76 65 64 20 61 73 20 70  ve received as p
0100: 61 72 74 20 6f 66 20 74 68 69 73 20 64 69 73 74  art of this dist
0110: 72 69 62 75 74 69 6f 6e 2e 0a 23 0a 23 20 54 68  ribution..#.# Th
0120: 69 73 20 73 6f 66 74 77 61 72 65 20 63 6f 6e 73  is software cons
0130: 69 73 74 73 20 6f 66 20 76 6f 6c 75 6e 74 61 72  ists of voluntar
0140: 79 20 63 6f 6e 74 72 69 62 75 74 69 6f 6e 73 20  y contributions 
0150: 6d 61 64 65 20 62 79 20 6d 61 6e 79 0a 23 20 69  made by many.# i
0160: 6e 64 69 76 69 64 75 61 6c 73 2e 20 20 46 6f 72  ndividuals.  For
0170: 20 65 78 61 63 74 20 63 6f 6e 74 72 69 62 75 74   exact contribut
0180: 69 6f 6e 20 68 69 73 74 6f 72 79 2c 20 73 65 65  ion history, see
0190: 20 74 68 65 20 72 65 76 69 73 69 6f 6e 0a 23 20   the revision.# 
01a0: 68 69 73 74 6f 72 79 20 61 6e 64 20 6c 6f 67 73  history and logs
01b0: 2c 20 61 76 61 69 6c 61 62 6c 65 20 61 74 20 68  , available at h
01c0: 74 74 70 3a 2f 2f 66 6f 73 73 69 6c 2d 73 63 6d  ttp://fossil-scm
01d0: 2e 68 77 61 63 69 2e 63 6f 6d 2f 66 6f 73 73 69  .hwaci.com/fossi
01e0: 6c 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 23  l.# # ## ### ###
01f0: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23  ## ######## ####
0200: 23 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23  ######### ######
0210: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a  ###############.
0220: 0a 23 23 20 43 6f 6d 6d 61 6e 64 20 6c 69 6e 65  .## Command line
0230: 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 77 72 61   application wra
0240: 70 70 65 64 20 61 72 6f 75 6e 64 20 74 68 65 20  pped around the 
0250: 69 6d 70 6f 72 74 20 70 61 63 6b 61 67 65 73 2e  import packages.
0260: 0a 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 23  ..# # ## ### ###
0270: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23  ## ######## ####
0280: 23 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23  ######### ######
0290: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a  ###############.
02a0: 23 23 20 52 65 71 75 69 72 65 6d 65 6e 74 73 2c  ## Requirements,
02b0: 20 65 78 74 65 6e 64 65 64 20 70 61 63 6b 61 67   extended packag
02c0: 65 20 6d 61 6e 61 67 65 6d 65 6e 74 20 66 6f 72  e management for
02d0: 20 6c 6f 63 61 6c 20 70 61 63 6b 61 67 65 73 2e   local packages.
02e0: 0a 0a 6c 61 70 70 65 6e 64 20 61 75 74 6f 5f 70  ..lappend auto_p
02f0: 61 74 68 20 5b 66 69 6c 65 20 6a 6f 69 6e 20 5b  ath [file join [
0300: 66 69 6c 65 20 64 69 72 6e 61 6d 65 20 5b 69 6e  file dirname [in
0310: 66 6f 20 73 63 72 69 70 74 5d 5d 20 6c 69 62 5d  fo script]] lib]
0320: 0a 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 72  ..package requir
0330: 65 20 54 63 6c 20 38 2e 34 20 20 20 20 20 20 20  e Tcl 8.4       
0340: 20 20 20 20 20 20 20 20 20 20 3b 20 23 20 52 65            ; # Re
0350: 71 75 69 72 65 64 20 72 75 6e 74 69 6d 65 2e 0a  quired runtime..
0360: 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 20  package require 
0370: 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f  vc::fossil::impo
0380: 72 74 3a 3a 63 76 73 20 3b 20 23 20 4d 61 69 6e  rt::cvs ; # Main
0390: 20 66 75 6e 63 74 69 6f 6e 61 6c 69 74 79 2e 0a   functionality..
03a0: 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23  .# # ## ### ####
03b0: 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23  # ######## #####
03c0: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23  ######## #######
03d0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 23  ##############.#
03e0: 23 20 45 78 65 63 75 74 69 6f 6e 0a 0a 76 63 3a  # Execution..vc:
03f0: 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a  :fossil::import:
0400: 3a 63 76 73 20 72 75 6e 20 24 61 72 67 76 0a 65  :cvs run $argv.e
0410: 78 69 74 20 30 0a 0a 23 20 23 20 23 23 20 23 23  xit 0..# # ## ##
0420: 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23  # ##### ########
0430: 20 23 23 23 23 23 23 23 23 23 23 23 23 23 20 23   ############# #
0440: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0450: 23 23 23 23 0a                                   ####.