+++ /dev/null
-#!/bin/sh
-HOST=$1
-if test -z "${HOST}"; then
- echo "Usage"
- echo " $0 host"
- exit 1
-fi
-DEBCHANGELOG=debian/changelog
-if test ! -f $DEBCHANGELOG; then
- echo "$DEBCHANGELOG missing"
- exit 1
-fi
-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"
- exit 1
-fi
-ORIG=${PROD}_${MAJOR}.orig.tar.gz
-echo "TAR=$TAR"
-echo "ORIG=$ORIG"
-DIR="debian/build-${PROD}-${VERSION}"
-set -e
-ssh $HOST "rm -fr ${DIR}; mkdir ${DIR}"
-scp ${TAR} ${HOST}:${DIR}/${ORIG}
-ssh ${HOST} "cd ${DIR} && tar xzf ${ORIG}"
-scp -r debian "${HOST}:${DIR}/${PROD}-${MAJOR}"
-ssh ${HOST} "cd ${DIR}/${PROD}-${MAJOR} && dpkg-buildpackage -rfakeroot"
-# Local Variables:
-# mode:shell-script
-# sh-indentation: 2
-# sh-basic-offset: 8
-# End: