<p><b>dwj07@fsu.edu</b> 2012-03-08 08:58:26 -0700 (Thu, 08 Mar 2012)</p><p><br>
        -- BRANCH COMMIT --<br>
<br>
        Improving compatibility with mac versions of head and tail.<br>
</p><hr noshade><pre><font color="gray">Modified: branches/ocean_projects/ocean_test_cases_staging/ocean/oceanTestCases.sh
===================================================================
--- branches/ocean_projects/ocean_test_cases_staging/ocean/oceanTestCases.sh        2012-03-07 23:27:50 UTC (rev 1604)
+++ branches/ocean_projects/ocean_test_cases_staging/ocean/oceanTestCases.sh        2012-03-08 15:58:26 UTC (rev 1605)
@@ -13,12 +13,13 @@
 # REPOSITORY_ADDRESS=&quot;https://svn-mpas-model.cgd.ucar.edu/trunk/mpas --username user --password pass&quot;
 
 REPOSITORY_ADDRESS=&quot;https://svn-mpas-model.cgd.ucar.edu/trunk/mpas&quot;
+REPOSITORY_ADDRESS=&quot;https://svn-mpas-model.cgd.ucar.edu/branches/ocean_projects/monotonic_advection&quot;
 COMPILE_SET=&quot;gfortran&quot;
 MACHINE_NAME=&quot;lobo&quot;
 MACHINE_PPN=&quot;16&quot;
 SUBMISSION_CMD=msub
 PROC_LIST=&quot;2 4 8 16 32 64 128 256 512 1024 2048 4096&quot;
-PROC_LIST=&quot;2 4 8&quot;
+PROC_LIST=&quot;4&quot;
 
 ########################
 ## Script starts here ##
@@ -57,7 +58,9 @@
         cd ..
 
         ## Make a variable containing the make options used to build mpas
-        MAKE_OPTS=`sed -n &quot;/${COMPILE_SET}:/,/:/p&quot; mpas/Makefile | head -n -2 \
+        NUM_LINES=`sed -n &quot;/${COMPILE_SET}:/,/:/p&quot; mpas/Makefile | tail -n +2 | wc -l`
+        NUM_LINEA=`echo &quot;${NUM_LINES}-2&quot; | bc`
+        MAKE_OPTS=`sed -n &quot;/${COMPILE_SET}:/,/:/p&quot; mpas/Makefile | head -n ${NUM_LINES} \
                  | grep &quot;_PARALLEL&quot; -v | grep &quot;_DEBUG&quot; -v | sed &quot;s/FC_SERIAL/SFC/g&quot; \
                  | sed &quot;s/CC_SERIAL/SCC/g&quot; | sed &quot;s/_OPT//g&quot; | grep &quot;SERIAL&quot; -v \
                  | grep &quot;DEBUG&quot; -v | grep &quot;USE_PAPI&quot; -v | tail -n +2`
@@ -66,7 +69,7 @@
         ## revision the run was performed from
         echo &quot;Compile flags:&quot; &gt;&gt; .run_info
         echo &quot;$COMPILE_SET:&quot; &gt;&gt; .run_info
-        sed -n &quot;/${COMPILE_SET}:/,/:/p&quot; mpas/Makefile | head -n -2 | tail -n +2 &gt;&gt; .run_info
+        sed -n &quot;/${COMPILE_SET}:/,/:/p&quot; mpas/Makefile | head -n ${NUM_LINES} | tail -n +2 &gt;&gt; .run_info
         echo &quot;&quot; &gt;&gt; .run_info
         echo &quot;Checkout path:&quot; &gt;&gt; .run_info
         echo &quot;$REPOSITORY_ADDRESS&quot; &gt;&gt; .run_info

</font>
</pre>