[MOAB-dev] r5833 - MOAB/trunk

vijaysm at mcs.anl.gov vijaysm at mcs.anl.gov
Fri Oct 26 04:24:44 CDT 2012


Author: vijaysm
Date: 2012-10-26 04:24:44 -0500 (Fri, 26 Oct 2012)
New Revision: 5833

Modified:
   MOAB/trunk/Makefile.am
Log:
A better way of writing out the configuration options, one per line. The previous code failed miserably on MacOS systems while the modifications passes all tests in systems tested so far.

Modified: MOAB/trunk/Makefile.am
===================================================================
--- MOAB/trunk/Makefile.am	2012-10-25 01:25:53 UTC (rev 5832)
+++ MOAB/trunk/Makefile.am	2012-10-26 09:24:44 UTC (rev 5833)
@@ -53,9 +53,11 @@
 # First line: get unformatted data from config.status
 # Second line: extract just the list of options
 # Third line: put individual options on separate lines
+# Fourth line: remove any empty lines and trim spaces and then write to config file.
 moab.config: config.status Makefile.am
 	$(AM_V_GEN)./config.status --version | \
 	  sed -e 's/.*options "\(.*\)"/\1/p' -e 'd' | \
-	  sed -e "s/'[[:space:]]'/'\n'/g" >$@
+	  tr "'" "\n" | \
+	  sed -e '/^ *$$/d' > $@
 
 CLEANFILES = moab.config



More information about the moab-dev mailing list