|
|
|
@ -27,6 +27,14 @@ error_usage_die(){
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Copy/ install wrapper for files
|
|
|
|
|
cin-bin(){
|
|
|
|
|
install -Dm755 "$@"
|
|
|
|
|
}
|
|
|
|
|
cin-file(){
|
|
|
|
|
install -Dm644 "$@"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Check that "build" file exists in directory
|
|
|
|
|
check(){
|
|
|
|
|
if ! [ -f "$1/build" ]; then
|
|
|
|
@ -67,7 +75,7 @@ build_file(){
|
|
|
|
|
gen_control_file "$@"
|
|
|
|
|
|
|
|
|
|
for maintfile in preinst postinst prerm postrm; do
|
|
|
|
|
[ -f $maintfile ] && cp $maintfile "$builddir"/debian/
|
|
|
|
|
[ -f $maintfile ] && cin-bin $maintfile "$builddir"/debian/
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
cd -
|
|
|
|
|