Changeset 729


Ignore:
Timestamp:
Oct 9, 2008, 5:35:02 PM (16 years ago)
Author:
slederer
Message:

add some comments to the code

File:
1 edited

Legend:

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

    r728 r729  
    1313#   needs force parameter for tar.bz2 creation
    1414
     15# when building debian packages, which files from the "debian"
     16# directory are required (in addition to the package description
     17# and changelog)
     18debfiles="control rules"
     19 
    1520BUILDUSER=$USER
    1621[ -z $DEST_DIR ] && DEST_DIR="/tmp/build.$BUILDUSER"
     
    155160    fi
    156161
     162    # if there is a directory named "debian", prepare the
     163    # necessary files to build a debian package on OpenSUSE build service
     164
    157165    if [ -d debian ]; then
    158         debfiles="control rules"
    159         LANG=C;export LANG
     166      LANG=C;export LANG
     167        # replace version number in the description file
    160168        sed -e "s/^Version:.*/Version: $VERSION-1/ig" -e  "/^Files:/,$ d" debian/${PACKAGE} >${BUILDTEMP}/src/${PACKAGE}/${PACKAGE}.dsc
     169        # update the file list in the description file
    161170        (echo "Files: "; echo " 0 0 ${PACKAGE}-${VERSION}.tar.bz2"; echo " 0 0 ${PACKAGE}_${VERSION}-1.diff.gz") >>${BUILDTEMP}/src/${PACKAGE}/${PACKAGE}.dsc
     171        # create a changelog file
    162172        (echo "${PACKAGE} (${VERSION}-1) unstable; urgency=low"
    163173        echo
     
    167177        echo
    168178        )>${BUILDTEMP}/src/${PACKAGE}/debian.changelog
    169 
     179        # copy files from "debian" directory into the package directory, renaming
     180        # them accordingly
    170181        for f in $debfiles
    171182        do
Note: See TracChangeset for help on using the changeset viewer.