Whamcloud - gitweb
LU-864 test: Hostname name doesn't equal NID and use facet_mntpt
[fs/lustre-release.git] / ldiskfs / autoMakefile.am
index 163032b..04a00aa 100644 (file)
@@ -10,4 +10,14 @@ include build/autoMakefile.am.toplevel
 
 EXTRA_DIST += kernel_patches
 
 
 EXTRA_DIST += kernel_patches
 
+# this only needs to be done if disting stand-alone (i.e. not as a
+# subdir of lustre
 module-dist-hook:
 module-dist-hook:
+       if ! grep "AC_INIT(\[Lustre\], \[LUSTRE_VERSION\], \[http:\/\/bugs\.whamcloud\.com\/], \[lustre\])" ../configure.ac; then \
+           if [ -f META ]; then \
+               cp META $(distdir)/META; \
+           else \
+               echo -e "I have no idea how to create a META file in $(distdir).\nPlease file a bug at http://bugs.whamcloud.com/"; \
+               exit 1; \
+           fi; \
+       fi