Superconducting Toolkit
リビジョン | 84eb939b91f3f5551d64327928df12275eb7a880 (tree) |
---|---|
日時 | 2016-10-05 02:37:33 |
作者 | spigafi <spigafi@c92e...> |
コミッター | spigafi |
(semi)automated release script/procedure reflecting 6.0
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13088 c92efa57-630b-4861-b058-cf58834340f0
@@ -1,5 +1,5 @@ | ||
1 | 1 | # Copyright (C) 2001-2016 Quantum ESPRESSO group |
2 | -# | |
2 | +# | |
3 | 3 | # This program is free software; you can redistribute it and/or |
4 | 4 | # modify it under the terms of the GNU General Public License |
5 | 5 | # as published by the Free Software Foundation; either version 2 |
@@ -64,7 +64,7 @@ default : | ||
64 | 64 | # If "|| exit 1" is not present, the error code from make in subdirectories |
65 | 65 | # is not returned and make goes on even if compilation has failed |
66 | 66 | |
67 | -pw : bindir libfft libla mods liblapack libs libiotk | |
67 | +pw : bindir libfft libla mods liblapack libs libiotk | |
68 | 68 | if test -d PW ; then \ |
69 | 69 | ( cd PW ; $(MAKE) TLDEPS= all || exit 1) ; fi |
70 | 70 |
@@ -118,7 +118,7 @@ ld1 : bindir liblapack libfft libla mods libs | ||
118 | 118 | if test -d atomic ; then \ |
119 | 119 | ( cd atomic ; $(MAKE) TLDEPS= all || exit 1 ) ; fi |
120 | 120 | |
121 | -upf : libfft libla mods libs liblapack | |
121 | +upf : libfft libla mods libs liblapack | |
122 | 122 | if test -d upftools ; then \ |
123 | 123 | ( cd upftools ; $(MAKE) TLDEPS= all || exit 1 ) ; fi |
124 | 124 |
@@ -166,7 +166,7 @@ mods : libiotk libla libfft | ||
166 | 166 | libs : mods |
167 | 167 | ( cd clib ; $(MAKE) TLDEPS= all || exit 1 ) |
168 | 168 | |
169 | -lrmods : libs libla libfft | |
169 | +lrmods : libs libla libfft | |
170 | 170 | ( cd LR_Modules ; $(MAKE) TLDEPS= all || exit 1 ) |
171 | 171 | |
172 | 172 | bindir : |
@@ -226,7 +226,7 @@ touch-dummy : | ||
226 | 226 | # into system directories with no danger of name conflicts |
227 | 227 | ######################################################### |
228 | 228 | |
229 | -inst : | |
229 | +inst : | |
230 | 230 | ( for exe in */*/*.x */bin/* ; do \ |
231 | 231 | file=`basename $$exe`; if test "$(INSTALLDIR)" != ""; then \ |
232 | 232 | if test ! -L $(PWD)/$$exe; then \ |
@@ -265,7 +265,7 @@ install : touch-dummy | ||
265 | 265 | |
266 | 266 | ######################################################### |
267 | 267 | # Run test-suite for numerical regression testing |
268 | -# NB: it is assumed that reference outputs have been | |
268 | +# NB: it is assumed that reference outputs have been | |
269 | 269 | # already computed once (usualy during release) |
270 | 270 | ######################################################### |
271 | 271 |
@@ -278,7 +278,7 @@ test-suite: pw cp touch-dummy | ||
278 | 278 | |
279 | 279 | # remove object files and executables |
280 | 280 | clean : doc_clean |
281 | - touch make.inc | |
281 | + touch make.inc | |
282 | 282 | for dir in \ |
283 | 283 | CPV LAXlib FFTXlib Modules PP PW EPW \ |
284 | 284 | NEB ACFDT COUPLE GWW XSpectra PWCOND \ |
@@ -309,13 +309,13 @@ veryclean : clean | ||
309 | 309 | - rm -f espresso.tar.gz |
310 | 310 | - rm -rf make.inc |
311 | 311 | |
312 | -# remove everything not in the original distribution | |
312 | +# remove everything not in the original distribution | |
313 | 313 | distclean : veryclean |
314 | 314 | ( cd install ; $(MAKE) -f plugins_makefile $@ || exit 1 ) |
315 | 315 | |
316 | 316 | tar : |
317 | 317 | @if test -f espresso.tar.gz ; then /bin/rm espresso.tar.gz ; fi |
318 | - # do not include unneeded stuff | |
318 | + # do not include unneeded stuff | |
319 | 319 | find ./ -type f | grep -v -e /.svn/ -e'/\.' -e'\.o$$' -e'\.mod$$'\ |
320 | 320 | -e /.git/ -e'\.a$$' -e'\.d$$' -e'\.i$$' -e'_tmp\.f90$$' -e'\.x$$' \ |
321 | 321 | -e'~$$' -e'\./GUI' -e '\./tempdir' | xargs tar rvf espresso.tar |
@@ -372,4 +372,3 @@ depend: libiotk version | ||
372 | 372 | |
373 | 373 | version: |
374 | 374 | - ( cd Modules; make version ) |
375 | - |
@@ -6,26 +6,35 @@ version=6.0 | ||
6 | 6 | revision=13079 |
7 | 7 | |
8 | 8 | # make sure there is no locale setting creating unneeded differences. |
9 | -LC_ALL=C | |
10 | -export LC_ALL | |
11 | - | |
12 | -mkdir $tempdir | |
13 | -cd $tempdir | |
14 | -/bin/rm -rf espresso/ qe-$version | |
9 | +#LC_ALL=C | |
10 | +#export LC_ALL | |
15 | 11 | |
16 | 12 | # get the svn copy via tag |
17 | 13 | svn checkout http://qeforge.qe-forge.org/svn/q-e/tags/QE-$version/espresso qe-$version |
18 | 14 | |
19 | 15 | # -OR- get the svn copy via revision checkout |
20 | -svn checkout -r$revision svn+ssh://spigafi@qeforge.qe-forge.org/svnroot/q-e/trunk/espresso qe-$version | |
16 | +svn checkout -r$revision svn+ssh://<...>@qeforge.qe-forge.org/svnroot/q-e/trunk/espresso qe-$version | |
21 | 17 | |
22 | 18 | cd qe-$version |
23 | 19 | |
20 | +# *** manual edit Makefile *** | |
21 | +# - Update PWgui | |
22 | +# - disable Doc distclean target | |
23 | + | |
24 | +# *** manual edit install/plugins_makefile *** | |
25 | +# - uncomment 'examples' target | |
26 | +# - uncomment 'uncompress-examples' target | |
27 | +# - uncomment 'examples_distclean' target | |
28 | + | |
29 | +# Manual edit "userconfig.tmp" and "ENVIRONMENT" | |
30 | +# - change 'SVN' to $revision | |
31 | +# - change 'REFERENCE_VERSION' to $revision | |
32 | + | |
24 | 33 | # generate version.f90 (requires svn files) |
34 | +# save version.f90 (make veryclean removes it) | |
25 | 35 | touch make.inc |
26 | 36 | cd Modules |
27 | 37 | make version.f90 |
28 | -# save version.f90 (make veryclean removes it) | |
29 | 38 | mv version.f90 .. |
30 | 39 | cd .. |
31 | 40 |
@@ -57,10 +66,6 @@ tar -xzvf PWgui-$version.tgz | ||
57 | 66 | make tar-qe-modes VERSION=$version |
58 | 67 | mv QE-modes-$version.tar.gz ../qe-$version-emacs_modes.tar.gz |
59 | 68 | |
60 | -# *** manual edit Makefile *** | |
61 | -# - Update PWgui | |
62 | -# - disable Doc distclean target | |
63 | - | |
64 | 69 | # Updating reference outputs on test-suite |
65 | 70 | cd test-suite |
66 | 71 | find . -name benchmark.out* > list-SVN.txt |
@@ -74,14 +79,14 @@ file_dst=`echo $x | awk '{ print $2}'` | ||
74 | 79 | mv ${file_src} ${file_dst} |
75 | 80 | done |
76 | 81 | rm ./STUFF-TO-RENAME.txt ./list-SVN.txt ./list-$version.txt |
77 | - | |
78 | -# Manual edit "userconfig.tmp" | |
82 | +cp License test-suite/ | |
79 | 83 | |
80 | 84 | cd .. |
81 | 85 | |
82 | 86 | make distclean |
83 | 87 | |
84 | 88 | # packacking test-suite |
89 | +mv test-suite test-suite | |
85 | 90 | tar -czvf ../qe-$version-test-suite.tar.gz test-suite |
86 | 91 | |
87 | 92 | # Grouping Examples in the same directory and packacking them |
@@ -105,9 +110,9 @@ mv ../PWCOND/examples/* PWCOND/ | ||
105 | 110 | mv ../PHonon/examples/* PHonon/ |
106 | 111 | rm -rf ../TDDFPT/Examples ../CPV/examples ../PHonon/examples ../NEB/examples ../COUPLE/examples ../PP/examples ../PP/simple_transport/examples ../PW/examples ../PWgui-6.0/examples ../XSpectra/examples ../GWW/examples ../EPW/examples ../atomic/examples ../PWCOND/examples |
107 | 112 | cd .. |
113 | +cp License Examples/ | |
108 | 114 | |
109 | -# Manual edit "Makefile" and "install/plugins_makefile" to enable target | |
110 | - | |
115 | +# Grouping Examples in the same directory and packacking them | |
111 | 116 | tar -czvf ../qe-$version-examples.tar.gz Examples |
112 | 117 | |
113 | 118 | cd ../ |
@@ -168,9 +173,7 @@ cp -R ../PHonon/Doc/user_guide ./ph_user_guide | ||
168 | 173 | cp -R ../NEB/Doc/user_guide ./neb_user_guide |
169 | 174 | cp -R ../atomic/Doc/pseudo-gen ./pseudo-gen |
170 | 175 | |
171 | -# | |
172 | 176 | # Copy "Docs" to QE website |
173 | - | |
174 | 177 | scp -R Doc <...>@<...>/wp-content/uploads/Doc-$version |
175 | 178 | |
176 | 179 | # Connect to the website and create/update symbolic link to "Doc-$version" |