fi
genchanges=""
+build_source=""
### check for run in fakeroot
--email EMAIL email address used in the maintainer field of the package
--changes create a .changes file
--revision add debian revision
+ --source build a source package instead of a binary deb package
--help display this help and exit
--version output version information and exit
revision="-${1}"
elif [[ "x$1" == x--changes ]]; then
genchanges="true"
+ elif [[ "x$1" == x--source ]]; then
+ build_source="true"
else
unrecognized_option "$1"
fi
tmp="$( mktemp -d -t "$program_name.XXXXXXXXXX" )"
echo "$tmp"
-debian_dir="$tmp/debian"
-install -d -m 755 "$debian_dir"
+package_dir="$tmp/package"
+install -d -m 755 "$package_dir"
-install_dir="$tmp/install"
-install -d -m 755 "$install_dir"
+debian_dir="$package_dir/debian"
+install -d -m 755 "$debian_dir"
# load and execute plugins
echo -n "Loading plugins:"