#!/bin/sh # Copyright: © 2012 Enrico Tassi # License: MIT if [ -z "$1" -o "$1" = "-h" -o "$1" = "--help" ]; then echo Give as a unique argument the name of the source package echo that will be the name of the root directory of the package. exit 1 fi PKG=$1 mkdir $PKG/ cd $PKG git init git remote add origin git@salsa.debian.org:lua-team/$PKG.git [ ! -z "$DEBFULLNAME" ] && git config user.name "$DEBFULLNAME" [ ! -z "$DEBEMAIL" ] && git config user.email "<$DEBEMAIL>" cd .. mkdir $PKG/debian mkdir $PKG/debian/patches mkdir $PKG/debian/source mkdir $PKG/debian/tests echo '3.0 (quilt)' > $PKG/debian/source/format touch $PKG/debian/patches/series cp /usr/share/dh-lua/template/dh-lua.conf $PKG/debian/ cp /usr/share/dh-lua/template/rules $PKG/debian/ cp /usr/share/dh-lua/template/copyright $PKG/debian/ cp /usr/share/dh-lua/template/control $PKG/debian/ cp /usr/share/dh-lua/template/compat $PKG/debian/ cp /usr/share/dh-lua/template/tests.control $PKG/debian/tests/control cp /usr/share/dh-lua/template/tests.dh-lua-tests $PKG/debian/tests/dh-lua-tests chmod a+x $PKG/debian/rules cd $PKG git add debian/ cd ..