Automatically building Debian packages

This commit is contained in:
Pierre Pronchery 2012-10-02 22:30:54 +00:00
parent 668adf2ab5
commit fdab2efc60

View File

@ -32,6 +32,7 @@ VERSION=
CKSUM="cksum" CKSUM="cksum"
CUT="cut" CUT="cut"
DCH="dch" DCH="dch"
DPKG_BUILDPACKAGE="dpkg-buildpackage -rfakeroot"
FIND="find" FIND="find"
GREP="grep" GREP="grep"
MAKE="make" MAKE="make"
@ -43,7 +44,7 @@ SHA1="sha1"
SIZE="_size" SIZE="_size"
TR="tr" TR="tr"
WC="wc" WC="wc"
YEAR=$(date +%Y) YEAR="$(date +%Y)"
#dependencies #dependencies
DEPEND_desktop=0 DEPEND_desktop=0
DEPEND_docbook=0 DEPEND_docbook=0
@ -209,6 +210,15 @@ _package_debian()
_error "Could not create debian/changelog" _error "Could not create debian/changelog"
return 2 return 2
fi fi
#build the package
_info "Building the package..."
$DPKG_BUILDPACKAGE
#XXX ignore errors if the command is not installed
if [ $ret -eq 127 ]; then
_warning "Could not build the package"
return 0
fi
} }
_debian_changelog() _debian_changelog()