script to retroactively add commitids to past openbsd commits

add a specific hack for src/gnu/usr.bin/gcc/Attic/INSTALL

gcc has an old INSTALL file that later became a directory, so
checking out -r1.1 of the tree will throw an error when it tries to
mkdir over the existing file. move it to some other name since it
was deleted long ago

+10 -3
+10 -3
openbsd-commitid.rb
··· 25 25 sc.stray_commitids_to_changesets 26 26 sc.fill_in_changeset_data 27 27 28 - # check out the tree from CVSROOT/#{tree} in a scratch space (CVSTMP), which 29 - # is just necessary to be able to issue "cvs admin" commands, which get 30 - # stored back in CVSROOT/#{tree} 28 + if tree == "src" 29 + # gcc has an old INSTALL file that later became a directory, so checking 30 + # out -r1.1 of the tree will throw an error when it tries to mkdir over the 31 + # existing file. move it to some other name since it was deleted long ago 32 + if File.exists?(CVSROOT + "src/gnu/usr.bin/gcc/Attic/INSTALL,v") 33 + system("mv", "-f", CVSROOT + "src/gnu/usr.bin/gcc/Attic/INSTALL,v", 34 + CVSROOT + "src/gnu/usr.bin/gcc/Attic/INSTALL.old,v") 35 + end 36 + end 37 + 31 38 sc.repo_surgery(CVSTMP, CVSROOT, tree) 32 39 end