Hahaha, made the mistake to copy the script in the SVN working copy so it was processed by itself!
Here is the script! (hopefully) On Monday, June 23, 2014 5:12:40 PM UTC+2, Daniel Kurka wrote: > > I think you attached the wrong script?! > > > On Mon, Jun 23, 2014 at 8:08 AM, Thomas Broyer <[email protected]> wrote: > >> So, attached is the script I'm using (just after a clean "svn checkout"). >> >> I'll commit with message: "Replace all files with dummy content pointing >> to gwt.googlesource.com" >> >> On Monday, June 23, 2014 9:57:11 AM UTC+2, Thomas Broyer wrote: >>> >>> Thanks. >>> >>> I'll post the script here for "review" before committing. >>> (I could also post the patch, I'm not sure it'll be that useful; maybe >>> on gwt-code-reviews.appspot.com?) >>> >>> On Monday, June 23, 2014 4:39:42 AM UTC+2, Daniel Kurka wrote: >>>> >>>> I think updating the trunk branch is a good idea. I just gave you >>>> commit rights and I did hide the source tab from the project. >>>> >>>> >>>> On Sun, Jun 22, 2014 at 5:53 PM, Thomas Broyer wrote: >>>> >>>>> Hi all, >>>>> >>>>> When we moved from SVN at code.google.com to Git at >>>>> gwt.googlesource.com, I wanted to keep the SVN repo alive because >>>>> there are many links to source files from blogs or sites like >>>>> StackOverflow >>>>> (I'm responsible for many of them). >>>>> >>>>> In the last few days however, I've seen many people linking to code in >>>>> the SVN repo's trunk rather than the Git repo's master. >>>>> >>>>> I think this partly comes from the fact that the SVN repo is still >>>>> linked to from https://code.google.com/p/google-web-toolkit/ “To >>>>> browse the GWT source code, visit the 'Source >>>>> <http://code.google.com/p/google-web-toolkit/source>' tab.” >>>>> I've asked several time that this link be fixed but it's still not >>>>> been done. It should link to https://code.google.com/p/ >>>>> google-web-toolkit/wiki/Source?tm=4 instead (what the Sources tab >>>>> actually links to) >>>>> >>>>> I'd also like to replace all files in the SVN trunk (not tags or >>>>> release branches, only trunk) with dummy content pointing to >>>>> gwt.googlesource.com. Something like: >>>>> >>>>> Source code for the GWT project has moved to >>>>> https://gwt.googlesource.com >>>>> >>>>> The file you're looking for can be now found at >>>>> https://gwt.googlesource.com/gwt/+/master/path/fo/file.java if it's >>>>> not been deleted or renamed since then. >>>>> >>>>> >>>>> Specifically, I don't want to just delete the "trunk" *branch* from >>>>> the SVN as that would break too many links. The "redirect" somehow >>>>> "breaks" >>>>> navigation (and particularly linking to a specific line in the file), but >>>>> at least it's better than a plain 404. >>>>> >>>>> What do you think? >>>>> >>>>> Note: because I don't have commit rights to the SVN (maybe we could >>>>> open that now that we no longer sync' from the Google repo?), I'll do a >>>>> script that replaces the content for all the files in trunk, along with >>>>> setting the mime type to text/plain, for someone else to run. Either >>>>> that, >>>>> or someone gives me the commit rights, after reviewing the script. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "GWT Contributors" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to google-web-toolkit-contributors+unsubscribe@ >>>>> googlegroups.com. >>>>> To view this discussion on the web visit https://groups.google.com/d/ >>>>> msgid/google-web-toolkit-contributors/19914684-71fb- >>>>> 49e5-b369-16157c68ac01%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/19914684-71fb-49e5-b369-16157c68ac01%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Google Germany GmbH >>>> *Dienerstr. 12* >>>> *80331 München* >>>> >>>> Registergericht und -nummer: Hamburg, HRB 86891 >>>> Sitz der Gesellschaft: Hamburg >>>> Geschäftsführer: Graham Law, Katherine Stephens >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "GWT Contributors" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-web-toolkit-contributors/711b963f-07d7-4a9a-8e5e-05a0b5de86ce%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/711b963f-07d7-4a9a-8e5e-05a0b5de86ce%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Google Germany GmbH > *Dienerstr. 12* > *80331 München* > > Registergericht und -nummer: Hamburg, HRB 86891 > Sitz der Gesellschaft: Hamburg > Geschäftsführer: Graham Law, Katherine Stephens > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/ca0e178e-61c7-4567-b83b-6344ffe81001%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
#!/bin/bash for f in $(find . -path ./.svn -prune -o -type f -print); do cat >"$f" <<END Source code for the GWT project has moved to https://gwt.googlesource.com The file you're looking for can be now found at https://gwt.googlesource.com/gwt/+/master/$f (if it's not been deleted or renamed since then.) END svn propset -q 'svn:mime-type' 'text/plain' "$f" done;
