-DEB_INSTALL=debian/osm-$MDG_NAME.install
-export DEBEMAIL="mmarchetti@sandvine.com"
-export DEBFULLNAME="Michael Marchetti"
-
-PKG_VERSION=$(git describe --match "v*" --tags --abbrev=0)
-PKG_VERSION_PREFIX=$(echo $PKG_VERSION | sed -e 's/v//g')
-PKG_VERSION_POST=$(git rev-list $PKG_VERSION..HEAD | wc -l)
-if [ "$PKG_VERSION_POST" -eq 0 ]; then
- PKG_DIR="osm-${MDG_NAME}-${PKG_VERSION_PREFIX}"
-else
- PKG_DIR="osm-${MDG_NAME}-$PKG_VERSION_PREFIX.post${PKG_VERSION_POST}"
-fi
-
-rm -rf $PKG_DIR
-rm -f *.orig.tar.xz
-rm -f *.deb
-rm -f $DEB_INSTALL
-mkdir -p $PKG_DIR
-
-for dir in $PKG_DIRECTORIES; do
- ln -s $PWD/$dir $PKG_DIR/.
- echo "$dir/* usr/share/osm-$MDG_NAME/$dir" >> $DEB_INSTALL
-done
-cp LICENSE $PKG_DIR/.
-echo "LICENSE usr/share/osm-$MDG_NAME" >> $DEB_INSTALL
-cp -R debian $PKG_DIR/.
-
-cd $PKG_DIR
-dh_make -y --indep --createorig --a -c apache
-dpkg-buildpackage -uc -us -tc -rfakeroot
-cd -
-