Revision 42380 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/resources-application/gvSIG.sh
gvSIG.sh | ||
---|---|---|
92 | 92 |
# gvSIG home folder |
93 | 93 |
export GVSIG_HOME_FOLDER="$HOME/$GVSIG_APPLICATION_NAME" |
94 | 94 |
|
95 |
mkdir -p "$GVSIG_HOME_FOLDER" |
|
95 |
if [ ! -d "$GVSIG_HOME_FOLDER" ] ; then |
|
96 |
mkdir -p "$GVSIG_HOME_FOLDER" |
|
97 |
fi |
|
96 | 98 |
|
97 | 99 |
#################### |
98 | 100 |
# Load config file # |
... | ... | |
147 | 149 |
########################################################## |
148 | 150 |
# Search in gvSIG/extensiones the architecture of plugins |
149 | 151 |
# installeds and set as PREFERED_ARCHITECTURE |
152 |
# Note: Busybox n windows don't support -exec in find |
|
150 | 153 |
########################################################## |
151 | 154 |
|
152 | 155 |
cd "$GVSIG_INSTALL_FOLDER" |
153 |
x=$(find "./gvSIG/extensiones" -name package.info) |
|
154 |
x=$(grep -h "architecture=[^a]" "$x" | sort|head -n 1) |
|
156 |
find . -name package.info | while read fname |
|
157 |
do |
|
158 |
cat $fname |
|
159 |
done | grep "architecture=[^a]" | sort | head -n 1 | read x |
|
155 | 160 |
if [ "X${x}X" != "XX" ] ; then |
156 | 161 |
eval $x |
157 | 162 |
PREFERED_ARCHITECTURE="$architecture" |
158 | 163 |
else |
159 | 164 |
PREFERED_ARCHITECTURE="$ARCH" |
160 | 165 |
fi |
161 |
cd - |
|
166 |
cd - >/dev/null
|
|
162 | 167 |
|
163 | 168 |
########################################################## |
164 | 169 |
|
Also available in: Unified diff