Changeset 728 for trunk/technical/common


Ignore:
Timestamp:
Oct 9, 2008, 3:50:31 PM (16 years ago)
Author:
slederer
Message:

add support for building debian packages on OpenSUSE build service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/technical/common/build/svn_build_prepare.sh

    r727 r728  
    5050        cp -a "$1" ${BUILDTEMP}/src/${PACKAGE}
    5151        cd ${BUILDTEMP}/src/${PACKAGE}; rpm2cpio $1 | cpio -i
    52     fi
     52fi                                                                                                                                                                                                                     
    5353else
    5454    # uses Subversion (svn) to generate more information for the RPM
     
    6969            SVN_BUILD_RELEASE=${SVN_BUILD_RELEASE}p
    7070            REBUILD="yes"
    71         else # check if RPM has been build already
     71        else # check if RPM has been built already
    7272            # TODO: this check is broken for OpenSUSE build service,
    7373            #       because version is changed later on
     
    104104        printf "done\n"
    105105    fi
    106     # just make sure, that the Changes file exist
     106    # just make sure, that the Changes file exists
    107107    touch Changes
    108108   
     
    155155    fi
    156156
     157    if [ -d debian ]; then
     158        debfiles="control rules"
     159        LANG=C;export LANG
     160        sed -e "s/^Version:.*/Version: $VERSION-1/ig" -e  "/^Files:/,$ d" debian/${PACKAGE} >${BUILDTEMP}/src/${PACKAGE}/${PACKAGE}.dsc
     161        (echo "Files: "; echo " 0 0 ${PACKAGE}-${VERSION}.tar.bz2"; echo " 0 0 ${PACKAGE}_${VERSION}-1.diff.gz") >>${BUILDTEMP}/src/${PACKAGE}/${PACKAGE}.dsc
     162        (echo "${PACKAGE} (${VERSION}-1) unstable; urgency=low"
     163        echo
     164        echo "  * generated from SVN revision ${SVN_BUILD_RELEASE}"
     165        echo
     166        echo -n " -- dass IT GmbH <info@dass-it.de>  "; date +"%a, %e %b %Y %X %z"
     167        echo
     168        )>${BUILDTEMP}/src/${PACKAGE}/debian.changelog
     169
     170        for f in $debfiles
     171        do
     172            [ -r "$f" ] && cp "debian/$f" ${BUILDTEMP}/src/${PACKAGE}/debian.$f       
     173        done     
     174    fi
    157175fi
Note: See TracChangeset for help on using the changeset viewer.