gvsig-raster / org.gvsig.raster / tags / org.gvsig.raster-2.2.8 / distrib @ 22479
History | View | Annotate | Download (2.52 KB)
1 | 2759 | nbrodin | #/bin/bash |
---|---|---|---|
2 | |||
3 | #USER= |
||
4 | #PASS= |
||
5 | |||
6 | REPO="https://devel.gvsig.org/svn/gvsig-raster" |
||
7 | |||
8 | 2761 | nbrodin | INCREMENT=3 #1:major number 2:minor number 3:bug number |
9 | 2840 | cmartinez | export 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" |
10 | export PARAMETERS_LIN64="-Dnative-platform=linux64 -Dnative-compiler=gcc4 -Dnative-arch=x86_64 -Dnative-distribution=all -Dlibrary-type=dynamic -Dnative_classifier=linux-all-gcc4-X86_64-dynamic -Dnative_classifier=linux-all-gcc4-X86_64-dynamic -Dmaven.test.skip" |
||
11 | export 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" |
||
12 | 2759 | nbrodin | |
13 | VERSION_TO_FIX=`cat pom.xml | grep "<version>" | head -n 1 | sed 's/<version>//g' | sed 's/-SNAPSHOT<\/version>//g'`; |
||
14 | MAJOR_NUMBER=`echo $VERSION_TO_FIX | cut -d"." -f 1`; |
||
15 | MINOR_NUMBER=`echo $VERSION_TO_FIX | cut -d"." -f 2`; |
||
16 | BUG_NUMBER=`echo $VERSION_TO_FIX | cut -d"." -f 3`; |
||
17 | |||
18 | VERSION_TO_FIX=$MAJOR_NUMBER"."$MINOR_NUMBER"."$BUG_NUMBER |
||
19 | |||
20 | if [ $INCREMENT -eq 1 ]; then |
||
21 | MAJOR_NUMBER=$((MAJOR_NUMBER+1)); |
||
22 | fi |
||
23 | |||
24 | if [ $INCREMENT -eq 2 ]; then |
||
25 | MINOR_NUMBER=$((MINOR_NUMBER+1)); |
||
26 | fi |
||
27 | |||
28 | if [ $INCREMENT -eq 3 ]; then |
||
29 | BUG_NUMBER=$((BUG_NUMBER+1)); |
||
30 | fi |
||
31 | |||
32 | NEXT_DEV_VERSION=$MAJOR_NUMBER"."$MINOR_NUMBER"."$BUG_NUMBER"-SNAPSHOT" |
||
33 | |||
34 | #*********************************************** |
||
35 | # Fix version & linux 32 packaging |
||
36 | #*********************************************** |
||
37 | |||
38 | 2781 | nbrodin | #mvn release:prepare -B -DdryRun=false -Dtag=v$VERSION_TO_FIX -DreleaseVersion=$VERSION_TO_FIX -DdevelopmentVersion=$NEXT_DEV_VERSION -DpreparationGoals="clean install" -Dusername=$USER -Dpassword=$PASS -DignoreSnapshots=true -Darguments=$PARAMETERS_LIN |
39 | 2759 | nbrodin | |
40 | 2781 | nbrodin | #read -p "¿Prepare de $i correcto? ¿Continuar? s/n: " CONTINUE |
41 | #if [ "$CONTINUE" == "n" ]; then |
||
42 | #mvn release:rollback |
||
43 | #exit; |
||
44 | #fi |
||
45 | 2759 | nbrodin | |
46 | 2781 | nbrodin | #mvn release:perform -Dusername=$USER -Dpassword=$PASS -Darguments=$PARAMETERS_LIN |
47 | 2759 | nbrodin | |
48 | 2781 | nbrodin | #read -p "¿Perform de $i correcto? ¿Continuar? s/n: " CONTINUE |
49 | #if [ "$CONTINUE" == "n" ]; then |
||
50 | #mvn release:rollback |
||
51 | #exit; |
||
52 | #fi |
||
53 | 2759 | nbrodin | |
54 | #*********************************************** |
||
55 | # Windows and Lin64 Installer |
||
56 | #*********************************************** |
||
57 | |||
58 | 2770 | nbrodin | svn checkout ${REPO}"/org.gvsig.raster/tags/v"${VERSION_TO_FIX} |
59 | 2781 | nbrodin | cd v${VERSION_TO_FIX} |
60 | 2770 | nbrodin | mvn install $PARAMETERS_WIN |
61 | mvn install $PARAMETERS_LIN64 |
||
62 | cd .. |
||
63 | rm v${VERSION_TO_FIX} -rf |