diff --git a/build_tools/prep_tarball b/build_tools/prep_tarball
index e101c5d0398b02376ae4d1ff40ba4a5cb3792d9b..9ce249dfffce876d353e7d473fad13b4cabe48fc 100755
--- a/build_tools/prep_tarball
+++ b/build_tools/prep_tarball
@@ -8,6 +8,16 @@
 make -C sounds MENUSELECT_CORE_SOUNDS=CORE-SOUNDS-EN-GSM MENUSELECT_MOH=MOH-OPSOUND-WAV WGET=wget DOWNLOAD=wget all
 make AWK=awk GREP=grep menuselect-tree
 
+if ! which wiikiexport.py 2>&1 > /dev/null ; then
+	echo
+	echo "wikiexport.py not found in \${PATH}."
+	echo
+	echo "Please add repotools into PATH."
+	echo "    $ svn co http://svn.asterisk.org/svn/repotools"
+	echo
+	exit 1
+fi
+
 cd doc
 echo "Exporting Asterisk wiki to a PDF (this will take a minute) ..."
 wikiexport.py