#!/bin/sh set -e # debian doesn't like caps in package names (and we want to trim the .svn dirs) [ -d xcat-client-2.0 ] || cp -R xCAT-client-2.0 xcat-client-2.0 cd xcat-client-2.0 #rm debian/files find . -name .svn | xargs rm -rf deps=$(../debperldepends) sed -e "s/###debian-depends###/$deps/" debian/control dpkg-buildpackage -b cd .. rm -rf xcat-client-2.0