Changeset 761 for trunk


Ignore:
Timestamp:
Jun 12, 2009, 6:04:43 PM (15 years ago)
Author:
joergs
Message:

change Source: in SPEC-file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dassbuild/usr/bin/dassbuild_prepare.sh

    r753 r761  
    122122        svn log -v . > ChangeLog.new && mv ChangeLog.new ChangeLog
    123123        cat ChangeLog >> Changes
    124        
     124
    125125        printf "done\n"
    126126    fi
     
    132132    if [ -r "SOURCES" ]; then
    133133        # create a tar file from the sources
    134         SOURCE_ARCHIVE="$PACKAGE-$VERSION.orig.tar.gz"
     134        SOURCE_ARCHIVE="${PACKAGE}_${VERSION}.orig.tar.gz"
    135135        printf "creating $SOURCE_ARCHIVE: "
    136136
     
    158158    fi
    159159
    160    
     160    # copy orig SPEC-file (may be modified later)
     161    cp -a $SPECFILE ${BUILDTEMP}/src/${PACKAGE}
     162
    161163    echo $SVN_BUILD_RELEASE
    162164    if [ "$SVN_BUILD_RELEASE" ]; then
     
    165167        #sed "s/^Release:.*/Release: $SVN_BUILD_RELEASE/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE
    166168        #sed -r "s/^(Version:\s*\S*)/\1.$SVN_BUILD_RELEASE/ig"  $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE
    167         sed "s/^Version:.*/Version: $VERSION/ig" $SPECFILE > ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE
    168     else
    169         cp -a $SPECFILE ${BUILDTEMP}/src/${PACKAGE}
     169        sed -i "s/^Version:.*/Version: $VERSION/ig" ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE
     170    fi
     171
     172    if [ "$SOURCE_ARCHIVE" ]; then
     173        sed -i "s/^Source:.*/Source: $SOURCE_ARCHIVE/ig" ${BUILDTEMP}/src/${PACKAGE}/$SPECFILE
    170174    fi
    171175
Note: See TracChangeset for help on using the changeset viewer.