Changeset 1198


Ignore:
Timestamp:
10/13/15 17:04:59 (7 years ago)
Author:
joergs
Message:

dsc file in root or debian subdirectory

File:
1 edited

Legend:

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

    r1173 r1198  
    211211                # create DSC file from template
    212212        # replace version number in the description file
    213         sed -e "s/^Version:.*/Version: $VERSION-1/ig" -e  "/^Files:/,$ d" debian/${PACKAGE}.dsc >${BUILDTEMP}/src/${PACKAGE}/${PACKAGE}_${VERSION}-1.dsc
     213        if [ -r "${PACKAGE}.dsc" ]; then
     214            DSC="${PACKAGE}.dsc"
     215        elif [ -r "debian/${PACKAGE}.dsc" ]; then
     216            DSC="debian/${PACKAGE}.dsc"
     217        else
     218            echo "failed: debian directory exists, but ${PACKAGE}.dsc not found."
     219            exit 1
     220        fi
     221        sed -e "s/^Version:.*/Version: $VERSION-1/ig" -e  "/^Files:/,$ d" "$DSC" >${BUILDTEMP}/src/${PACKAGE}/${PACKAGE}_${VERSION}-1.dsc
    214222
    215223        # update the file list in the description file
Note: See TracChangeset for help on using the changeset viewer.