gvsig-raster / org.gvsig.raster / tags / org.gvsig.raster_Before-MultiFile-refactoring / mvnraster @ 22479
History | View | Annotate | Download (2.17 KB)
1 |
#!/bin/sh |
---|---|
2 |
|
3 |
PLATFORM="linux" |
4 |
COMPILER="gcc4" |
5 |
ARCH="i386" |
6 |
DISTRIBUTION="all" |
7 |
TYPE="dynamic" |
8 |
CLASSIFIER=$PLATFORM"-"$DISTRIBUTION"-"$COMPILER"-"$ARCH"-"$TYPE |
9 |
|
10 |
|
11 |
if [ "$1" = "--help" ] ; then |
12 |
echo "Usage: First parameter:" |
13 |
echo " -install: mvn install" |
14 |
echo " -eclipse: mvn eclipse" |
15 |
echo " -deploy: mvn deploy" |
16 |
echo " -clean: mvn clean" |
17 |
echo " Second parameter:" |
18 |
echo " without second parameter only base projects" |
19 |
echo " -all: all projects" |
20 |
echo " -remote: base projects plus remote services" |
21 |
echo " -formats: base projects plus other formats \(ecw, mrsid, netcdf, time support\)" |
22 |
exit |
23 |
fi |
24 |
|
25 |
ADDITIONAL_PARAMS="-Dnative-platform="$PLATFORM" -Dnative-compiler="$COMPILER" -Dnative-arch="$ARCH" -Dnative-distribution="$DISTRIBUTION" -Dlibrary-type="$TYPE" -Dnative-classifier="$CLASSIFIER" -Pinstall-extensions -Dmaven.test.skip" |
26 |
|
27 |
PARAMS_INSTALL="install "$ADDITIONAL_PARAMS" -Pinstall-extensions -Dmaven.test.skip" |
28 |
PARAMS_ECLIPSE="eclipse:eclipse "$ADDITIONAL_PARAMS |
29 |
PARAMS_DEPLOY="deploy "$ADDITIONAL_PARAMS" -Pinstall-extensions -Dmaven.test.skip" |
30 |
PARAMS_CLEAN="clean" |
31 |
|
32 |
PATHS_BASE="org.gvsig.raster.cache org.gvsig.raster org.gvsig.raster.gdal org.gvsig.raster.tilecache org.gvsig.raster.app" |
33 |
PATHS_REMOTE="org.gvsig.raster.wmts org.gvsig.raster.wms org.gvsig.raster.wcs" |
34 |
PATHS_FORMATS="org.gvsig.raster.ermapper org.gvsig.raster.lizardtech org.gvsig.raster.netcdf org.gvsig.raster.timeseries" |
35 |
|
36 |
PATHS=$PATHS_BASE; |
37 |
|
38 |
if [ "$2" = "-remote" ] ; then |
39 |
PATHS=$PATHS" "$PATHS_REMOTE; |
40 |
fi |
41 |
|
42 |
if [ "$2" = "-formats" ] ; then |
43 |
PATHS=$PATHS" "$PATHS_FORMATS; |
44 |
fi |
45 |
|
46 |
if [ "$2" = "-all" ] ; then |
47 |
PATHS=$PATHS" "$PATHS_FORMATS" "$PATHS_REMOTE; |
48 |
fi |
49 |
|
50 |
echo "***********************************" |
51 |
echo "Command: mvn "$1 |
52 |
echo "Projects: "$PATHS |
53 |
echo "***********************************" |
54 |
|
55 |
|
56 |
for i in $PATHS |
57 |
do |
58 |
#echo "$i" |
59 |
cd $i |
60 |
if [ "$1" = "-install" ] ; then |
61 |
mvn $PARAMS_INSTALL; |
62 |
else |
63 |
if [ "$1" = "-eclipse" ] ; then |
64 |
mvn $PARAMS_ECLIPSE; |
65 |
else |
66 |
if [ "$1" = "-deploy" ] ; then |
67 |
mvn $PARAMS_DEPLOY; |
68 |
else |
69 |
if [ "$1" = "-clean" ] ; then |
70 |
mvn $PARAMS_CLEAN; |
71 |
fi |
72 |
fi |
73 |
fi |
74 |
fi |
75 |
|
76 |
cd .. |
77 |
done |
78 |
|
79 |
|