Hey, On Wed, Sep 16, 2009 at 7:06 PM, b.ohr <[email protected]> wrote: > > Hi, > > after migrating to Snow Leopard (clean install --> the long way) I had some > time for my MacRuby-Plugin-Project: > > First I changed the make-Script for libgit2 to (eliminated the ruby part and > made a "make clean" detection): > > export > PATH=$PATH:$HOME/bin:$HOME/local/bin:/sw/bin:/opt/local/bin:`"$TARGET_BUILD_DIR"/gitx > --git-path` > git submodule init > git submodule update > cd libgit2 > ARCHS="" > for a in `echo $VALID_ARCHS`; do ARCHS="$ARCHS -arch $a"; done > ARCHSFILE="archs" > touch $ARCHSFILE > OLDARCHS=`cat $ARCHSFILE` > if [ "$OLDARCHS" != "$ARCHS" ]; then > make clean > fi > echo "$ARCHS" > $ARCHSFILE > rm -f libgit2.a > make CFLAGS="$ARCHS" > ranlib libgit2.a
Ha, cool that ruby works! Could you send a patch for the ARCHS thing? then I can just include that in GitX itself. I was thinking about testing GitX with Ruby, which seems a bit easier than using an obj-c testing framework. I was hoping MacRuby would be included with SL, but obviously it isn't ready yet. Perhaps we can use RubyCocoa in the meantime? Do you know if that would be easy to do? - Pieter
