/[MITgcm]/MITgcm_contrib/test_scripts/other/do_make_syntax.sh
ViewVC logotype

Contents of /MITgcm_contrib/test_scripts/other/do_make_syntax.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Feb 24 17:50:49 2015 UTC (10 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -2 lines
File MIME type: application/x-sh
also change makefile name

1 #! /usr/bin/env bash
2
3 # $Header: /u/gcmpack/MITgcm_contrib/test_scripts/other/do_make_syntax.sh,v 1.1 2012/03/14 18:24:16 jmc Exp $
4 # $Name: $
5
6 #- create a copy of current Makefile with additional FFLAGS
7 if test Makefile_syntax -ot Makefile ; then
8 echo -n '-- using new "Makefile_syntax",'
9 sed -e 's/^MAKEFILE = .*$/MAKEFILE = Makefile_syntax/' \
10 -e 's/^FFLAGS =.*$/& -syntax-only/' Makefile > Makefile_syntax
11 else
12 echo -n '-- use prev. "Makefile_syntax",'
13 fi
14 #- move away object files and remove "__genmod.mod" files:
15 ( mkdir tmp ; ~/bin/rn .o .oSv .c ; mv -f *.o tmp
16 ~/bin/rn .oSv .o ; rm -f *__genmod.mod ) > /dev/null 2>&1
17 #- make:
18 echo " exec 'make -f Makefile_syntax $*':"
19 make -f Makefile_syntax $*
20 RETVAL=$?
21 #- move back object files:
22 ( mv -f tmp/* . ; rmdir tmp ) > /dev/null 2>&1
23
24 exit $RETVAL

  ViewVC Help
Powered by ViewVC 1.1.22