Permalink
Browse files

Sanity check for installations of previous version.

Relating to Issue 539
  • Loading branch information...
rainwoodman committed Nov 10, 2009
1 parent a882de2 commit 7b9106a967a7f1d9759992b2645c03f944df3b74
Showing with 10 additions and 0 deletions.
  1. +1 −0 Makefile.am
  2. +9 −0 Makefile.sanity
View
@@ -45,3 +45,4 @@ include $(top_srcdir)/Makefile.config
doc_DATA = README COPYING ChangeLog AUTHORS INSTALL \
README.XFCE README.GNOME README.LEGACY
+include $(top_srcdir)/Makefile.sanity
View
@@ -0,0 +1,9 @@
+# check if the installation will conflict with installations of previous versions
+install-exec-hook:
+ @if [ -f $(DESTDIR)$(GTK_MODULES_DIR)/libglobalmenu-gnome.so ]; then \
+ echo "ERROR: $(DESTDIR)$(GTK_MODULES_DIR)/libglobalmenu-gnome.so is found"; \
+ echo "ERROR: this file is a leftover of an installation of a previous version"; \
+ echo "ERROR: Please remove the previous version, or at least this file."; \
+ echo "ERROR: otherwise your Global Menu will not work properly"; \
+ exit 1; \
+ fi;

0 comments on commit 7b9106a

Please sign in to comment.