Revision 43459

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/resources-application/tools/make-portable
282 282

  
283 283
function prepare_portable_macos() {
284 284
    echo "Creating MacOS app layout"
285
    mkdir "$INSTALL_FOLDER/Contents"
286
    mkdir "$INSTALL_FOLDER/Contents/MacOS"
285
    mkdir -p "$INSTALL_FOLDER/Contents/MacOS"
286
    cd "$INSTALL_FOLDER/Contents/MacOS"
287 287
    echo '#!/bin/bash
288
x=$(dirname $0)
289
x=$(dirname $x)
290
x=$(dirname $x)
291
exec "$x/gvSIG.sh"
292
' >"$INSTALL_FOLDER/Contents/MacOS/${PORTABLE_NAME}"
293
    chmod a+x "$INSTALL_FOLDER/Contents/MacOS/${PORTABLE_NAME}"
294
   cp "$INSTALL_FOLDER/Contents/MacOS/${PORTABLE_NAME}" "gvSIG"
295
   cp "$INSTALL_FOLDER/Contents/MacOS/${PORTABLE_NAME}" "gvSIG-desktop"
296
   cp "$INSTALL_FOLDER/Contents/MacOS/${PORTABLE_NAME}" "gvSIG-desktop-${PORTABLE_VERSION/-*/}"
297
   cp "$INSTALL_FOLDER/Contents/MacOS/${PORTABLE_NAME}" "gvSIG-desktop-${PORTABLE_VERSION}"
298
   rm -f "$INSTALL_FOLDER/gvSIG/extensiones/org.gvsig.gdal.app.mainplugin/gdal/libc++.1.dylib"
288
cd "$(dirname $0)/../.."
289
exec "./gvSIG.sh"
290
' >"${PORTABLE_NAME}"
291
    chmod a+x "${PORTABLE_NAME}"
292
    cp "${PORTABLE_NAME}" "gvSIG"
293
    cp "${PORTABLE_NAME}" "gvSIG-desktop"
294
    cp "${PORTABLE_NAME}" "gvSIG-desktop-${PORTABLE_VERSION/-*/}"
295
    cp "${PORTABLE_NAME}" "gvSIG-desktop-${PORTABLE_VERSION}"
296
    rm -f "$INSTALL_FOLDER/gvSIG/extensiones/org.gvsig.gdal.app.mainplugin/gdal/libc++.1.dylib"
297
    cd "$INSTALL_FOLDER"
299 298
}
300 299

  
301 300
function zipfolder() {

Also available in: Unified diff