Changeset 1252


Ignore:
Timestamp:
26/07/18 17:19:20 (11 months ago)
Author:
mjuckes
Message:

makefile updates for site maintenance (versions)

Location:
CMIP6dreqbuild/trunk/src/framework
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreqbuild/trunk/src/framework/Makefile

    r1241 r1252  
    33targ ?= dreq2 
    44fmt ?= xls 
     5version ?= version 
    56www ?= /var/www/html/dreq 
    67wwwdata ?= /group_workspaces/jasmin2/cmip6_prep/cmip6_data_request/site 
    78ddir ?= /data/svn/exarch/CMIP6dreq/trunk 
     9prevVersion ?= 01.00.24 
    810 
    911 
     
    105107 
    106108siteDataShift: 
    107         ##mv $(wwwdata)/latest $(wwwdata)/$(version)  
     109        mv $(wwwdata)/latest $(wwwdata)/old 
    108110        ##[[ $$? != 0 ]] && exit -1; 
    109         ##echo MOVED $(wwwdata)/latest to $(wwwdata)/$(version) 
     111        ##echo MOVED $(wwwdata)/latest to $(wwwdata)/$(prevVersion) 
    110112        mv $(wwwdata)/new $(wwwdata)/latest 
    111         [[ $$? != 0 ]] && exit -1; 
     113        ##[[ $$? != 0 ]] && exit -1; 
    112114        echo MOVED $(wwwdata)/new to $(wwwdata)/latest 
    113115 
     
    117119          echo "Let's rock" >&2; \ 
    118120        else \ 
    119           echo "Base directory does not exist" >&2; \ 
     121          echo "Base directory -- $(wwwdata)/new -- does not exist" >&2; \ 
    120122          exit 1; \ 
    121123        fi 
     
    128130        cp dreqPy/data3ex.js $(wwwdata)/new/data/exptData.js 
    129131 
     132betaHtml: 
     133        mkdir -p $(www)/beta/ $(www)/beta/css/ $(www)/beta/index/ 
     134        (cd $(www)/beta; ln -s $(wwwdata)/new/data ; ln -s $(wwwdata)/new/tabs03 ;  ln -s $(wwwdata)/new/u ; ln -s $(wwwdata)/new/t) 
     135        cp dreqPy/tab01_1_1_dn.html dreqPy/tab01_1_1.html dreqPy/tab01_3_3.html $(www)/beta/ 
     136        cp websiteExtras/dreq.css $(www)/beta/css/ 
     137        cp -r dreqPy/html/index/* $(www)/beta/index/ 
     138        cp -r dreqPy/html/index.html $(www)/beta/ 
     139 
    130140siteHtml: 
    131141        cp dreqPy/tab01_1_1_dn.html dreqPy/tab01_1_1.html dreqPy/tab01_3_3.html $(www)/ 
     
    133143        cp -r dreqPy/html/index/* $(www)/index/ 
    134144        cp -r dreqPy/html/index.html $(www)/ 
     145 
     146versionHtml: 
     147        mkdir $(www)/$(version)  $(www)/$(version)/index $(www)/$(version)/css 
     148        cp $(www)/tab01_1_1_dn.html dreqPy/tab01_1_1.html dreqPy/tab01_3_3.html $(www)/$(version) 
     149        cp  $(www)/css/dreq.css  $(www)/$(version)/css/ 
     150        cp $(www)/index/* $(www)/$(version)/index/ 
     151        cp $(www)/index.html $(www)/experiments.html $(www)/mipVars.html  $(www)/$(version) 
     152 
     153versionLinks: 
     154        (cd $(www)/$(version); ln -s /group_workspaces/jasmin2/cmip6_prep/cmip6_data_request/site/$(version)/data) 
     155        (cd $(www)/$(version); ln -s /group_workspaces/jasmin2/cmip6_prep/cmip6_data_request/site/$(version)/tabs03) 
     156        (cd $(www)/$(version); ln -s /group_workspaces/jasmin2/cmip6_prep/cmip6_data_request/site/$(version)/u) 
     157        (cd $(www)/$(version); ln -s /group_workspaces/jasmin2/cmip6_prep/cmip6_data_request/site/$(version)/t) 
    135158 
    136159cleanLocalHtml: 
Note: See TracChangeset for help on using the changeset viewer.