Subversion Repositories eduke32

Rev

Rev 4548 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4548 Rev 4565
Line 197... Line 197...
197
    vc=git
197
    vc=git
198
    rev=$(git log | grep 'git-svn-id:' | head -n 1 | sed -E 's/.*\@([0-9]+).*/\1/')
198
    rev=$(git log | grep 'git-svn-id:' | head -n 1 | sed -E 's/.*\@([0-9]+).*/\1/')
199
    echo "Detected git repository, revision r$rev"
199
    echo "Detected git repository, revision r$rev"
200
fi
200
fi
201
201
202
if [ -n "$rev" ]; then
202
if [ -z "$rev" ]; then
203
    # throw the svn revision into a header.  this is ugly.
-
 
204
    echo "s_buildRev = \"r$rev\";" > source/rev.h
-
 
205
else
-
 
206
    rev=unknown
203
    rev=unknown
207
    vc=none
204
    vc=none
208
fi
205
fi
209
206
210
function dobuildtools ()
207
function dobuildtools ()
Line 370... Line 367...
370
367
371
        dobuildem ppc "ARCH='-arch ppc' $commonargs RELEASE=1 BUILD32_ON_64=0 USE_LIBPNG=0 USE_LIBVPX=0 $makecmd"
368
        dobuildem ppc "ARCH='-arch ppc' $commonargs RELEASE=1 BUILD32_ON_64=0 USE_LIBPNG=0 USE_LIBVPX=0 $makecmd"
372
    fi
369
    fi
373
fi
370
fi
374
371
375
# clean up, clean up, everybody everywhere, clean up, clean up, everybody do your share
-
 
376
if [ "$vc" == "svn" ]; then
-
 
377
    svn revert "source/rev.h"
-
 
378
elif [ "$vc" == "git" ]; then
-
 
379
    git checkout "source/rev.h"
-
 
380
fi
-
 
381
-
 
382
# Duplicating .app bundles for debug build:
372
# Duplicating .app bundles for debug build:
383
if [ $builddebug == 1 ] || [ $pack == 1 ]; then
373
if [ $builddebug == 1 ] || [ $pack == 1 ]; then
384
    for i in Mapster32 EDuke32; do
374
    for i in Mapster32 EDuke32; do
385
        if [ -d "$i.app" ]; then
375
        if [ -d "$i.app" ]; then
386
            cp -RP "$i.app" "$i.debug.app"
376
            cp -RP "$i.app" "$i.debug.app"