##// END OF EJS Templates
some updates to the release scripts
Matthias Bussonnier -
Show More
@@ -9,14 +9,6 b" python -c 'import sphinx'"
9 9 python -c 'import sphinx_rtd_theme'
10 10 python -c 'import nose'
11 11
12 echo -n 'PREV_RELEASE (X.y.z):'
13 read PREV_RELEASE
14 echo -n 'MILESTONE (X.y):'
15 read MILESTONE
16 echo -n 'VERSION (X.y.z):'
17 read VERSION
18 echo -n 'branch (master|X.y):'
19 read branch
20 12
21 13 BLACK=$(tput setaf 1)
22 14 RED=$(tput setaf 1)
@@ -28,14 +20,47 b' CYAN=$(tput setaf 6)'
28 20 WHITE=$(tput setaf 7)
29 21 NOR=$(tput sgr0)
30 22
23
24 echo -n "PREV_RELEASE (X.y.z) [$PREV_RELEASE]: "
25 read input
26 PREV_RELEASE=${input:-$PREV_RELEASE}
27 echo -n "MILESTONE (X.y) [$MILESTONE]: "
28 read input
29 MILESTONE=${input:-$MILESTONE}
30 echo -n "VERSION (X.y.z) [$VERSION]:"
31 read input
32 VERSION=${input:-$VERSION}
33 echo -n "branch (master|X.y) [$branch]:"
34 read input
35 branch=${input:-$branch}
36
37 ask_section(){
38 echo
39 echo $BLUE"$1"$NOR
40 echo -n $GREEN"Press Enter to continue, S to skip: "$GREEN
41 read -n1 value
42 echo
43 if [ -z $value ] || [ $value = 'y' ] ; then
44 return 0
45 fi
46 return 1
47 }
48
49
50
31 51 echo
32 echo $BLUE"Updating what's new with informations from docs/source/whatsnew/pr"$NOR
52 if ask_section "Updating what's new with informations from docs/source/whatsnew/pr"
53 then
33 54 python tools/update_whatsnew.py
34 55
35 56 echo
36 57 echo $BLUE"please move the contents of "docs/source/whatsnew/development.rst" to version-X.rst"$NOR
37 58 echo $GREEN"Press enter to continue"$NOR
38 59 read
60 fi
61
62 if ask_section "Gen Stats, and authors"
63 then
39 64
40 65 echo
41 66 echo $BLUE"here are all the authors that contributed to this release:"$NOR
@@ -53,6 +78,8 b' echo $GREEN"Please merge it with the right file (github-stats-X.rst) and commit.'
53 78 echo $GREEN"press enter to continue."$NOR
54 79 read
55 80
81 fi
82
56 83 echo "Cleaning repository"
57 84 git clean -xfdi
58 85
General Comments 0
You need to be logged in to leave comments. Login now