Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: migration script 1.2

fsvs
Discussion topic

Back to topic list

Re: migration script 1.2

Author pmarek
Full name P.Marek
Date 2008-12-12 11:09:11 PST
Message I took a quick look, and ran it on my system - and it seems to work fine. Here are two patches for the cleanup part, and renaming the URLs file - both untested. What's left to do is the rewriting of the ignore patterns. And I'd propose changing your progress messages to have a "# " in front, the "echo " statements to "$DEBUG ", and setting $DEBUG to "echo" or "", depending on some commandline parameter. Then people can take a look what would happen, and possibly even redirect the output into a file to be used with "bash " directly. Furthermore I'd suggest to change the PREFIX_ calculation to something like this: # Only the path below $FSVS_WAA find $FSVS_WAA -type f -printf "%P\n" | # Do streaming, as this could be several thousand files. while IFS=/ read PREFIX_ONE PREFIX_TWO SUB_PATH do j=$FSVS_WAA/$PREFIX_ONE/$PREFIX_TWO/$SUB_PATH although I have to admit I don't quite understand why PREFIX_ONE etc. are really used - you do a "mkdir -p", so the levels in the middle are created anyway. If you don't need them, you could replace that with find ... | while read j If it gets a "help" or "usage" parameter (which prints some text), and possibly a "doitreally" (which sets DEBUG to "") ... that would make it nearly perfect, only a fine ASCII-art animation could be displayed while doing the work ;-) Nice work; good that you're including some documentation inline. Gunnar, *thank you very much*. You'll receive (at least) a honorable mention; maybe you'll even have a free wish (feature-wise) - and for the moment I'll just assume that you'd like http/https authentication running, so I'll try to get that working (although I have no real test environment). Regards, Phil -- Versioning your /etc, /home or even your whole installation? Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 7 of 17 | Next message in topic »

Messages

Show all messages in topic

migration script 1.2 tekknokra Gunnar Thielebein 2008-12-08 05:10:06 PST
     Re: migration script 1.2 pmarek P.Marek 2008-12-08 05:38:30 PST
     Re: migration script 1.2 pmarek P.Marek 2008-12-10 23:32:20 PST
         Re: migration script 1.2 tekknokra Gunnar Thielebein 2008-12-11 02:34:13 PST
         Re: migration script 1.2 tekknokra Gunnar Thielebein 2008-12-11 10:22:07 PST
             Re: migration script 1.2 pmarek P.Marek 2008-12-12 09:22:31 PST
                 Re: migration script 1.2 pmarek P.Marek 2008-12-12 11:09:11 PST
                     Re: migration script 1.2 pmarek P.Marek 2008-12-12 11:10:20 PST
                     Re: migration script 1.2 tekknokra Gunnar Thielebein 2008-12-13 05:30:29 PST
                         Re: migration script 1.2 pmarek P.Marek 2008-12-13 11:12:16 PST
                             Re: migration script 1.2 tekknokra Gunnar Thielebein 2009-01-08 09:23:04 PST
                                 Re: migration script 1.2 pmarek P.Marek 2009-01-09 09:46:27 PST
                                     Re: migration script 1.2 pmarek P.Marek 2009-02-08 01:05:41 PST
                                         Re: migration script 1.2 tekknokra Gunnar Thielebein 2009-02-08 04:03:36 PST
                                             Re: migration script 1.2 pmarek P.Marek 2009-02-08 05:08:02 PST
                                                 Re: migration script 1.2 tekknokra Gunnar Thielebein 2009-02-09 04:27:56 PST
     Re: migration script 1.2 pmarek P.Marek 2009-02-09 09:25:50 PST
Messages per page: