Make /contenttype/tree test work installed
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Jan 2014 03:30:24 +0000 (22:30 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 2 Jan 2014 03:30:24 +0000 (22:30 -0500)
The x-content/win32-software type is only recognized if
the autorun.exe file is executable. Since the file is installed
as data, we need to fix up its permissions in an
install-data-hook.

gio/tests/Makefile.am

index 0fae466..1cb0924 100644 (file)
@@ -541,3 +541,6 @@ giotypefuncs.c: Makefile
          sort | uniq | \
          $(SED) -e 's/^/*tp++ = /' -e 's/$$/ ();/' >> xgen-gio && \
          cp xgen-gio $@ # && rm -f xgen-gio xgen-giosrc.c
+
+install-data-hook:
+       $(AM_V_at) chmod a+x $(DESTDIR)$(installed_testdir)/x-content/win32-software/autorun.exe