Ignore:
Timestamp:
May 26, 2009, 1:34:34 PM (15 years ago)
Author:
joergs
Message:

changed from tar.bz2 to orig.tar.gz to be compatable with Debian, checks for OSC_LOCAL flag file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dassbuild/svn_build_prepare.sh

    r736 r739  
    1111
    1212# TODO:
    13 #   needs force parameter for tar.bz2 creation
     13#   needs force parameter for tar.gz creation
    1414
    1515
     
    125125    if [ -r "SOURCES" ]; then
    126126        # create a tar file from the sources
    127         printf "creating $PACKAGE-$VERSION.tar.bz2: "
    128 
    129         if [ "$REBUILD" -o ! -r ${BUILDTEMP}/src/${PACKAGE}/$PACKAGE-$VERSION.tar.bz2 ]; then
     127        SOURCE_ARCHIVE="$PACKAGE-$VERSION.orig.tar.gz"
     128        printf "creating $SOURCE_ARCHIVE: "
     129
     130        if [ "$REBUILD" -o ! -r ${BUILDTEMP}/src/${PACKAGE}/$SOURCE_ARCHIVE ]; then
    130131            rm -rf ${BUILDTEMP}/src/${PACKAGE}
    131132            mkdir -p ${BUILDTEMP}/src/${PACKAGE}
    132             tar cvjf ${BUILDTEMP}/src/${PACKAGE}/$PACKAGE-$VERSION.tar.bz2 --files-from SOURCES --exclude .svn --exclude "*~"
     133            tar cvzf ${BUILDTEMP}/src/${PACKAGE}/$SOURCE_ARCHIVE --files-from SOURCES --exclude .svn --exclude "*~"
    133134        else
    134135            printf "already exists. Skipped\n"
    135             exit 1
     136            printf "  (${BUILDTEMP}/src/${PACKAGE}/$SOURCE_ARCHIVE)\n"
     137            # exit, but without error, so that the calling script will continue
     138            exit 0
    136139        fi
    137140    elif [ -r "SPECSOURCES" ]; then
Note: See TracChangeset for help on using the changeset viewer.