-echo "cat /etc/bootstrap-functions.sha"
-if [ -f /etc/bootstrap-functions.sha ];then
- cat /etc/bootstrap-functions.sha
-else
- echo "Cannot find /etc/bootstrap-functions.sha"
+for hashfile in bootstrap.sha bootstrap-functions.sha
+do
+ echo -n "${hashfile}: "
+ if [ -f /etc/${hashfile} ];then
+ cat /etc/${hashfile}
+ else
+ echo "Cannot find ${hashfile}"
+ fi
+done
+
+echo "sha1sum of script [${0}]: " $(sha1sum $0)
+
+MISSING_PKGS=$(dpkg-checkbuilddeps |& perl -pe 's/^.+://g; s/\(.*?\)//g; s/\|\s+\S+//g;')
+MISSING_PKGS="devscripts pristine-tar ${MISSING_PKGS}"
+
+if [ -n "${MISSING_PKGS}" ]
+then
+ echo "*******************************************************************"
+ echo "* ADD MISSING DEPENDENCIES TO RESPIN SCRIPT:"
+ echo "${MISSING_PKGS}"
+ echo "*******************************************************************"