#!/bin/sh

# Only works if you have dialog installed for now
which dialog > /dev/null || fatal "You must have dialog installed."

echo "Found Dialog"

dialog --stderr --title "Qtopia Core directory" --fselect "/" 10 10 2> tmp$$

DIR=$(cat tmp$$)
rm tmp$$

cat > buildHNDE.conf << EOF
#!/bin/sh
# Configuration file for building hnde via provided script

# Path to the qtopia core
QTOPIACORE=$DIR

EOF

