l=`head -1 $DEBCHANGELOG`
PROD=`echo $l|sed 's/ .*//g'`
VERSION=`echo $l|sed 's/.*(//g'|sed 's/).*//g'`
-echo "VERSION=$VERSION"
MAJOR=`echo $VERSION|sed 's/-.*//g'`
-echo "MAJOR=$MAJOR"
MINOR=`echo $VERSION|sed 's/.*-//g'`
-echo "MINOR=$MINOR"
TAR=${PROD}-${MAJOR}.tar.gz
if test ! -f ${TAR}; then
echo "$0: ${TAR} missing"
set -e
mkdir -p deb-src
ORIG=${PROD}_${MAJOR}.orig.tar.gz
-echo "TAR=$TAR"
-echo "ORIG=$ORIG"
cp ${TAR} deb-src/${ORIG}
cd deb-src
tar xf ${ORIG}