Skip to content

Commit

Permalink
update makefile to use svn instead of git-svn. change variable and ru…
Browse files Browse the repository at this point in the history
…le names to be the specific component instead name of the generic component.
  • Loading branch information
bandre-ucar committed Feb 6, 2015
1 parent 7621df8 commit b3919ef
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
#
# make file to automate cloning svn externals into the git based cesm repo.
#
ATM_SVN = https://svn-ccsm-models.cgd.ucar.edu/cam1/branches/newtesting/models/atm/cam
GLC_SVN = https://svn-ccsm-models.cgd.ucar.edu/glc/branches/newtesting
ICE_SVN = https://svn-ccsm-models.cgd.ucar.edu/cice/branches/newtesting
LND_SVN = https://svn-ccsm-models.cgd.ucar.edu/clm2/branches/newtesting/models/lnd/clm
OCN_SVN = https://svn-ccsm-models.cgd.ucar.edu/pop2/branches/newtesting
ROF_SVN = https://svn-ccsm-models.cgd.ucar.edu/rivrtm/branches/newtesting
CAM_SVN = https://svn-ccsm-models.cgd.ucar.edu/cam1/branches/newtesting/models/atm/cam
CISM_SVN = https://svn-ccsm-models.cgd.ucar.edu/glc/branches/newtesting
CICE_SVN = https://svn-ccsm-models.cgd.ucar.edu/cice/branches/newtesting
CLM_SVN = https://svn-ccsm-models.cgd.ucar.edu/clm2/branches/newtesting/models/lnd/clm
POP_SVN = https://svn-ccsm-models.cgd.ucar.edu/pop2/branches/newtesting
RTM_SVN = https://svn-ccsm-models.cgd.ucar.edu/rivrtm/branches/newtesting
PIO_SVN = https://parallelio.googlecode.com/svn/trunk_tags/pio1_9_10/pio
WAV_SVN = https://svn-ccsm-models.cgd.ucar.edu/ww3/branches/newtesting
WW3_SVN = https://svn-ccsm-models.cgd.ucar.edu/ww3/branches/newtesting

# arbitrary starting point to speed up clones
SVN_HIST=65000
GIT_SVN_CLONE = git svn clone --no-follow-parent --no-minimize-url -r$(SVN_HIST):HEAD

SVN_CO = svn co

# NOTE(bja, 2015-01) can probably do smarter things with the clone
# command using --trunk, --tags, --branches to pull in CESM specific
# layout.
Expand All @@ -21,31 +24,31 @@ CI_GIT = https://github.com/CESM-Development/CoupledInfrastructure.git
MCT_GIT = https://github.com/MCSclimate/MCT.git


clone-svn : atm-svn glc-svn ice-svn lnd-svn ocn-svn rof-svn pio-svn wav-svn
clone-svn : cam-svn cism-svn cice-svn clm-svn pop-svn rtm-svn pio-svn ww3-svn

atm-svn : FORCE
$(GIT_SVN_CLONE) $(ATM_SVN) cesm/models/atm/cam
cam-svn : FORCE
$(SVN_CO) $(CAM_SVN) cesm/models/atm/cam

glc-svn : FORCE
$(GIT_SVN_CLONE) $(GLC_SVN) cesm/models/glc/cism
cism-svn : FORCE
$(SVN_CO) $(CISM_SVN) cesm/models/glc/cism

ice-svn : FORCE
$(GIT_SVN_CLONE) $(ICE_SVN) cesm/models/ice/cice
cice-svn : FORCE
$(SVN_CO) $(CICE_SVN) cesm/models/ice/cice

lnd-svn : FORCE
$(GIT_SVN_CLONE) $(LND_SVN) cesm/models/lnd/clm
clm-svn : FORCE
$(SVN_CO) $(CLM_SVN) cesm/models/lnd/clm

ocn-svn : FORCE
$(GIT_SVN_CLONE) $(OCN_SVN) cesm/models/ocn/pop2
pop-svn : FORCE
$(SVN_CO) $(POP_SVN) cesm/models/ocn/pop2

rof-svn : FORCE
$(GIT_SVN_CLONE) $(ROF_SVN) cesm/models/rof/rtm
rtm-svn : FORCE
$(SVN_CO) $(RTM_SVN) cesm/models/rof/rtm

pio-svn : FORCE
$(GIT_SVN_CLONE) $(PIO_SVN) cesm/models/utils/pio
$(SVN_CO) $(PIO_SVN) cesm/models/utils/pio

wav-svn : FORCE
$(GIT_SVN_CLONE) $(WAV_SVN) cesm/models/wav/ww3
ww3-svn : FORCE
$(SVN_CO) $(WW3_SVN) cesm/models/wav/ww3

# I think these were just one-off commands that don't have to be
# rerun, but I'm putting them here for documentation.
Expand Down

0 comments on commit b3919ef

Please sign in to comment.