# This file can be used to uninstall old roccat installations if no package
# management system was used and the build files have been deleted.
# Please delete the next two lines and edit the following two lines before running.

echo "Please edit me first..."
exit

INSTALL_PREFIX=/usr
LIBDIR=${INSTALL_PREFIX}/lib64

RM_COMMAND="rm -i"

for device in arvo isku kone koneplus kovaplus pyra; do
	${RM_COMMAND} ${LIBDIR}/lib${device}.so*
	${RM_COMMAND} ${INSTALL_PREFIX}/include/${device}*.h
	${RM_COMMAND} /etc/udev/rules.d/60-roccat-${device}.rules
	${RM_COMMAND} /etc/udev/rules.d/90-roccat-${device}.rules
	${RM_COMMAND} ${INSTALL_PREFIX}/share/applications/roccat-${device}gui.desktop
	${RM_COMMAND} ${INSTALL_PREFIX}/bin/${device}control
	${RM_COMMAND} ${INSTALL_PREFIX}/bin/${device}gui
done

${RM_COMMAND} ${INSTALL_PREFIX}/share/applications/roccat-macro-editor.desktop
${RM_COMMAND} ${INSTALL_PREFIX}/bin/roccat_macro_editor
${RM_COMMAND} ${LIBDIR}/libroccat.so*
${RM_COMMAND} ${INSTALL_PREFIX}/include/roccat*.h

