#!/bin/sh
if [ "$1" == "remove" ]; then

if [ `uname -m |grep "arm"` ]
	then
	FOLDER="/home/user/MyDocs/jammo_data"
	else
	FOLDER="/opt/jammo"
fi


for f in $(cut -d " " -f 1 jammo7-12_en.dif); do
  rm -f $FOLDER/mentor_speech7_12/en_GB/mentor/$f
done

rmdir $FOLDER/mentor_speech7_12/en_GB/mentor
rmdir $FOLDER/mentor_speech7_12/en_GB/

gtk-update-icon-cache -f /usr/share/icons/hicolor
update-desktop-database /usr/share/applications

fi
exit 0
