Bug 499577: Add install_sysdeps.sh to swt.tools

Followup: Adding a .classpatch check. Warn user if .classpath not found.

Change-Id: I877f817583e6393f1a486a8233c54aa397b3019c
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=499577
Signed-off-by: Lev Ufimtsev <lufimtse@redhat.com>
diff --git a/bundles/org.eclipse.swt.tools/install_sysdeps.sh b/bundles/org.eclipse.swt.tools/install_sysdeps.sh
index 1a25055..b340113 100755
--- a/bundles/org.eclipse.swt.tools/install_sysdeps.sh
+++ b/bundles/org.eclipse.swt.tools/install_sysdeps.sh
@@ -89,3 +89,10 @@
 	;;
 esac
 
+
+# check if .classpath exists in swt project.
+if [ -a "../org.eclipse.swt/.classpath" ]; then 
+	func_echo_plus ".classpath found, you are good to go";
+else 
+	func_echo_error "Warning: ../org.eclipse.swt/.classpath not found. Normally you rename ../org.eclipse.swt/.classpath_gtk to ../*/.classpath manually"
+fi