Changeset 1252
- Timestamp:
- 26/07/18 17:19:20 (3 years ago)
- Location:
- CMIP6dreqbuild/trunk/src/framework
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
CMIP6dreqbuild/trunk/src/framework/Makefile
r1241 r1252 3 3 targ ?= dreq2 4 4 fmt ?= xls 5 version ?= version 5 6 www ?= /var/www/html/dreq 6 7 wwwdata ?= /group_workspaces/jasmin2/cmip6_prep/cmip6_data_request/site 7 8 ddir ?= /data/svn/exarch/CMIP6dreq/trunk 9 prevVersion ?= 01.00.24 8 10 9 11 … … 105 107 106 108 siteDataShift: 107 ##mv $(wwwdata)/latest $(wwwdata)/$(version)109 mv $(wwwdata)/latest $(wwwdata)/old 108 110 ##[[ $$? != 0 ]] && exit -1; 109 ##echo MOVED $(wwwdata)/latest to $(wwwdata)/$( version)111 ##echo MOVED $(wwwdata)/latest to $(wwwdata)/$(prevVersion) 110 112 mv $(wwwdata)/new $(wwwdata)/latest 111 [[ $$? != 0 ]] && exit -1;113 ##[[ $$? != 0 ]] && exit -1; 112 114 echo MOVED $(wwwdata)/new to $(wwwdata)/latest 113 115 … … 117 119 echo "Let's rock" >&2; \ 118 120 else \ 119 echo "Base directory does not exist" >&2; \121 echo "Base directory -- $(wwwdata)/new -- does not exist" >&2; \ 120 122 exit 1; \ 121 123 fi … … 128 130 cp dreqPy/data3ex.js $(wwwdata)/new/data/exptData.js 129 131 132 betaHtml: 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 130 140 siteHtml: 131 141 cp dreqPy/tab01_1_1_dn.html dreqPy/tab01_1_1.html dreqPy/tab01_3_3.html $(www)/ … … 133 143 cp -r dreqPy/html/index/* $(www)/index/ 134 144 cp -r dreqPy/html/index.html $(www)/ 145 146 versionHtml: 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 153 versionLinks: 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) 135 158 136 159 cleanLocalHtml:
Note: See TracChangeset
for help on using the changeset viewer.