Re: Problem showing project images in app ported from XCode

From: Zak Burke (zdbw..artmouth.EDU)
Date: Mon Feb 11 2008 - 14:04:08 EST

  • Next message: Pierce T. Wetter III: "Re: Problem With Entity Modeler"

    On Feb 8, 2008, at 10:54 PM, Apoorva Muralidhara wrote:
    > On Feb 8, 2008, at 7:30 PM, Pascal Robert wrote:
    >> we also got this "problem" and instead of messing with the Ant
    >> patterns, we decided to mass-fix our bindings instead. For
    >> examples, most images were in a "images" folder, but the bindings
    >> didn't have the "images/" string.
    >>
    >> With the find command, BBEdit and regular expressions, it's a 5
    >> minutes job :-) Steps I did:
    >
    > [ . . . . ]
    >
    >> I did that for at least 15 projects and I think it took me 30
    >> minutes total. Must faster than trying to make Ant to work :-)
    >
    > Thanks. Something like this may be a better idea. (I would
    > probably use a nice find-piped-through-etags command, followed by an
    > Emacs etags-query-replace.)

    The following commands need to all be on a single line.

    # in-place replacement:
    find . -name \*wod -exec perl -pi -e 's/filename = \"(.*)\";/filename
    = "images/$1";/g' {} \;

    # backup to "original_filename.BAK"
    find . -name \*wod -exec perl -pi'.BAK' -e 's/filename = \"(.*)\";/
    filename = "images/$1";/g' {} \;

    zak.



    This archive was generated by hypermail 2.0.0 : Mon Feb 11 2008 - 14:05:05 EST