/ tools / debian / ppa-build-source
ppa-build-source
 1  #!/bin/sh
 2  set -e
 3  
 4  DATE=$(date +%Y%m%d)
 5  rm -f debian/changelog
 6  DISTRO=${DEB_DISTRO:-"$(lsb_release -cs)"}
 7  VERSION=0.1.${DATE}~${DISTRO}
 8  EDITOR=true NAME="Darling build server" EMAIL=${DEB_EMAIL:-noreply@darlinghq.org} dch -u low -v ${VERSION} --create --distribution ${DISTRO} --package darling "Daily build"
 9  
10  ARG='-S'
11  if [ -e "../darling_${VERSION}.orig.tar.xz" ]; then
12  rm ../darling_${VERSION}.orig.tar.xz
13  fi
14  tar -cJf ../darling_${VERSION}.orig.tar.xz .
15  
16  debuild --no-lintian -us -uc -S ${ARG}