[GRASS-SVN] r36485 - grass/trunk

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 25 13:39:11 EDT 2009


Author: 1gray
Date: 2009-03-25 13:39:10 -0400 (Wed, 25 Mar 2009)
New Revision: 36485

Modified:
   grass/trunk/Makefile
Log:
Removed extra `cat' invocations.
Makefile (default): Removed extra `cat' invocations.
(real-install): Likewise.


Modified: grass/trunk/Makefile
===================================================================
--- grass/trunk/Makefile	2009-03-25 15:22:01 UTC (rev 36484)
+++ grass/trunk/Makefile	2009-03-25 17:39:10 UTC (rev 36485)
@@ -87,7 +87,7 @@
 	done
 	$(MAKE) $(FILES_DST)
 	$(MAKE) ${ARCH_DISTDIR}/grass${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR}.tmp
-	@if [ `cat "$(ERRORLOG)" | wc -l` -gt 5 ] ; then \
+	@if [ `wc -l < "$(ERRORLOG)"` -gt 5 ] ; then \
 		echo "--"     >> $(ERRORLOG) ; \
 		echo "In case of errors please change into the directory with error and run 'make'." >> $(ERRORLOG) ; \
 		echo "If you get multiple errors, you need to deal with them in the order they"      >> $(ERRORLOG) ; \
@@ -99,7 +99,7 @@
 	@echo "--"  >> $(ERRORLOG)
 	@echo "Finished compilation: `date`" >> $(ERRORLOG)
 	@cat $(ERRORLOG)
-	@if [ `cat "$(ERRORLOG)" | wc -l` -gt 8 ] ; then false ; else true ; fi
+	@if [ `wc -l < "$(ERRORLOG)"` -gt 8 ] ; then false ; else true ; fi
 
 ${ARCH_DISTDIR}/%: %
 	$(INSTALL_DATA) $< $@
@@ -230,7 +230,7 @@
 	-tar cBf - gem/skeleton | tar xBCf ${INST_DIR}/etc - 2>/dev/null
 	-${INSTALL} gem/gem7 ${BINDIR} 2>/dev/null
 	@# enable OSX Help Viewer
-	@if [ "`cat include/Make/Platform.make | grep -i '^ARCH.*darwin'`" ] ; then /bin/ln -sfh "${INST_DIR}/docs/html" /Library/Documentation/Help/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR} ; fi
+	@if [ "`grep -i '^ARCH.*darwin' < include/Make/Platform.make`" ] ; then /bin/ln -sfh "${INST_DIR}/docs/html" /Library/Documentation/Help/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR} ; fi
 
 
 install-strip:



More information about the grass-commit mailing list