gvsig-raster / org.gvsig.raster / tags / v2.2.1 / closeVersions @ 22479
History | View | Annotate | Download (4.71 KB)
1 |
#!/bin/bash |
---|---|
2 |
#Pasos: |
3 |
#1:Comprobar los números de versión de las variables y el password |
4 |
#2:Comprobar que los buildnumber de los proyectos son correctos y están commitados |
5 |
#3:Ejecutar este script |
6 |
#4:Subir los instaladores que estarán dice $HOME/.gvsig-devel.properties |
7 |
|
8 |
PW=******* |
9 |
LIBRARIES_VERSION=(2.2.0 1.0.1) |
10 |
LIBRARIES_NEXT_VERSION=(2.2.1-SNAPSHOT 1.0.2-SNAPSHOT) |
11 |
MULTIPLAT_PLUGINS_VERSION=(2.2.1 2.2.1 2.2.1 2.2.1) |
12 |
MULTIPLAT_PLUGINS_NEXT_VERSION=(2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT) |
13 |
ALLPLAT_PLUGINS_VERSION=(2.2.0 2.2.1 2.2.1 2.2.0 2.2.1 2.2.1 2.2.1 2.2.1 2.2.1 2.2.1 2.2.1 2.2.1 2.2.1) |
14 |
ALLPLAT_PLUGINS_NEXT_VERSION=(2.2.1-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.1-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT 2.2.2-SNAPSHOT) |
15 |
|
16 |
LIBRARIES="org.gvsig.raster.cache org.gvsig.toolbox" |
17 |
MULTIPLAT_PLUGINS="org.gvsig.raster org.gvsig.raster.gdal org.gvsig.raster.ermapper org.gvsig.raster.lizardtech" |
18 |
ALLPLAT_PLUGINS="org.gvsig.geoprocess org.gvsig.raster.tilecache org.gvsig.raster.tools org.gvsig.raster.georeferencing org.gvsig.raster.multifile org.gvsig.raster.netcdf org.gvsig.raster.osm org.gvsig.raster.postgis org.gvsig.raster.principalcomponents org.gvsig.raster.reproject org.gvsig.raster.wcs org.gvsig.raster.wms org.gvsig.raster.wmts" |
19 |
|
20 |
WORKSPACE=. #QUITAR EN JENKINS |
21 |
LOG=$HOME"/log-closeversions-"`date +%d%m%Y%H%M`".txt" |
22 |
|
23 |
S0="https://devel.gvsig.org/svn/gvsig-raster" |
24 |
S1="https://devel.gvsig.org/svn/gvsig-georeferencing" |
25 |
S2="https://devel.gvsig.org/svn/gvsig-toolbox" |
26 |
S3="https://devel.gvsig.org/svn/gvsig-osm" |
27 |
S4="https://devel.gvsig.org/svn/gvsig-geoprocess" |
28 |
|
29 |
PARAMETERS_LIN="-Dnative-platform=linux -Dnative-compiler=gcc4 -Dnative-arch=i386 -Dnative-distribution=all -Dlibrary-type=dynamic -Dnative-classifier=linux-all-gcc4-i386-dynamic -Dnative_classifier=linux-all-gcc4-i386-dynamic -Dmaven.test.skip" |
30 |
|
31 |
PARAMETERS_WIN="-Dnative-platform=win -Dnative-compiler=vs8 -Dnative-arch=i386 -Dnative-distribution=win -Dlibrary-type=dynamic -Dnative-classifier=win-nt-vs8-i386-dynamic -Dnative_classifier=win-nt-vs8-i386-dynamic -Dmaven.test.skip" |
32 |
|
33 |
PLUGINS=$MULTIPLAT_PLUGINS" "$ALLPLAT_PLUGINS |
34 |
PROJECTS=$LIBRARIES" "$PLUGINS |
35 |
|
36 |
LIBRARIES_SERVER=($S0 $S2) |
37 |
MULTIPLAT_PLUGINS_SERVER=($S0 $S0 $S0 $S0) |
38 |
ALLPLAT_PLUGINS_SERVER=($S4 $S0 $S0 $S1 $S0 $S0 $S3 $S0 $S0 $S0 $S0 $S0 $S0) |
39 |
PLUGINS_SERVER=("${MULTIPLAT_PLUGINS_SERVER[@]}" "${ALLPLAT_PLUGINS_SERVER[@]}") |
40 |
PROJECTS_SERVER=("${LIBRARIES_SERVER[@]}" "${PLUGINS_SERVER[@]}") |
41 |
|
42 |
PLUGINS_VERSION=("${MULTIPLAT_PLUGINS_VERSION[@]}" "${ALLPLAT_PLUGINS_VERSION[@]}") |
43 |
PLUGINS_NEXT_VERSION=("${MULTIPLAT_PLUGINS_NEXT_VERSION[@]}" "${ALLPLAT_PLUGINS_NEXT_VERSION[@]}") |
44 |
PROJECTS_VERSION=("${LIBRARIES_VERSION[@]}" "${PLUGINS_VERSION[@]}") |
45 |
PROJECTS_NEXT_VERSION=("${LIBRARIES_NEXT_VERSION[@]}" "${PLUGINS_NEXT_VERSION[@]}") |
46 |
|
47 |
|
48 |
#****************************************** |
49 |
# Checkout |
50 |
#****************************************** |
51 |
|
52 |
cont=0; |
53 |
for i in $PROJECTS; |
54 |
do |
55 |
svn checkout ${PROJECTS_SERVER[cont]}"/"$i"/trunk/"$i |
56 |
#echo ${PROJECTS_SERVER[cont]}"/"$i"/trunk/"$i |
57 |
cont=$((cont+1)) |
58 |
done |
59 |
|
60 |
exit; |
61 |
|
62 |
#****************************************** |
63 |
# Clean |
64 |
#****************************************** |
65 |
|
66 |
|
67 |
for i in $PROJECTS; |
68 |
do |
69 |
cd $WORKSPACE/$i |
70 |
echo "Cambiando a..."$WORKSPACE/$i >> $LOG |
71 |
mvn clean >> $LOG |
72 |
mvn release:clean >> $LOG |
73 |
cd .. |
74 |
done |
75 |
|
76 |
cont=0 |
77 |
for i in $PROJECTS; |
78 |
do |
79 |
cd $WORKSPACE/$i |
80 |
echo "Cambiando a..."$WORKSPACE/$i >> $LOG |
81 |
|
82 |
#****************************************** |
83 |
# Prepare |
84 |
#****************************************** |
85 |
|
86 |
mvn release:prepare -B -DdryRun=false -Dtag=v${PROJECTS_VERSION[cont]} -DreleaseVersion=${PROJECTS_VERSION[cont]} -DdevelopmentVersion=${PROJECTS_NEXT_VERSION[cont]} -DpreparationGoals="clean install" -Dusername=nbrodin -Dpassword=$PW -DignoreSnapshots=true -Darguments=$PARAMETERS_LIN |
87 |
|
88 |
|
89 |
read -p "¿Prepare de $i correcto? ¿Continuar? s/n: " CONTINUE |
90 |
if [ "$CONTINUE" == "n" ]; then |
91 |
mvn release:rollback |
92 |
exit; |
93 |
fi |
94 |
|
95 |
#****************************************** |
96 |
# Perform |
97 |
#****************************************** |
98 |
|
99 |
mvn release:perform -Darguments=$PARAMETERS_LIN |
100 |
|
101 |
read -p "¿Perform de $i correcto? ¿Continuar? s/n: " CONTINUE |
102 |
if [ "$CONTINUE" == "n" ]; then |
103 |
mvn release:rollback |
104 |
exit; |
105 |
fi |
106 |
|
107 |
cont=$((cont+1)) |
108 |
cd .. |
109 |
done |
110 |
|
111 |
|
112 |
#****************************************** |
113 |
# Windows Installer |
114 |
#****************************************** |
115 |
|
116 |
cont=0; |
117 |
for i in $MULTIPLAT_PLUGINS; |
118 |
do |
119 |
svn checkout ${MULTIPLAT_PLUGINS_SERVER[cont]}"/"$i"/tags/v"${MULTIPLAT_PLUGINS_VERSION[cont]} |
120 |
cd v${MULTIPLAT_PLUGINS_VERSION[cont]} |
121 |
mvn install $PARAMETERS_WIN |
122 |
cd .. |
123 |
rm v${MULTIPLAT_PLUGINS_VERSION[cont]} -rf |
124 |
cont=$((cont+1)) |
125 |
done |