rm -rf $SOURCE_DIRECTORY/old.libraries || true
#prepare install likes to leave $SCRIPT_DIRECTORY/old.libraries around
#this breaks the cp line below
chmod 755 $SOURCE_DIRECTORY/*        &&
# omit the old.binaries dir
for file in $SOURCE_DIRECTORY/*; do
  [[ -f $file ]] && cp $file /usr/sbin
done &&
if [ ! -f /etc/sorcery/local/guruinfo ]; then
  echo "GURU_NAME=\"Guru Name\"" >> /etc/sorcery/local/guruinfo
  echo "GURU_EMAIL=\"$SORCERER\"" >> /etc/sorcery/local/guruinfo
  echo "GURU_LOCAL_GRIMOIRE=\"local_grim_name\"" >> /etc/sorcery/local/guruinfo
  echo 'GURU_LOCAL_GRIMOIRE_SECTION_DIR="/var/lib/sorcery/codex/$GURU_LOCAL_GRIMOIRE/myspells"' >> /etc/sorcery/local/guruinfo
fi
