Changeset 2836

Show
Ignore:
Timestamp:
01/07/12 08:07:25 (4 months ago)
Author:
paparazzia
Message:

* prise en charge de $VLMGSHHSURL pour rapatrier les fichiers depuis
testing si possible (see #619)
* ne dezippe que les fichiers necessaires

Location:
trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/hosting/UPGRADE

    r2704 r2836  
    99  EDIT file ./conf/conf_script  
    1010    - change VLM SVNBRANCH to V_0_19 
     11    - add "export VLMGSHHSURL=http://testing.virtual-loup-de-mer.org/gshhs/" 
    1112 
    1213  RUN 
  • trunk/hosting/conf/conf_script.dist

    r2660 r2836  
    5353export VLM_GRIB_MAX_TIME=24 
    5454 
     55#Pas de mail par défaut en cas d'echouage 
    5556export MAIL_FOR_COASTCROSSING=false 
     57 
     58#URL de récupération des fichiers gshhs 
     59export VLMGSHHSURL=http://testing.virtual-loup-de-mer.org/gshhs/ 
    5660 
    5761########################################## 
  • trunk/hosting/scripts/maj_module.sh

    r2680 r2836  
    8080    else  
    8181        echo "+$confmodule: Download des fichiers poly, rivers et borders" 
    82         wget --output-document="$VLMTEMP/poly-f-1.dat" "http://dev.virtual-loup-de-mer.org/datas/poly-f-1.dat" 
     82        wget --output-document="$VLMTEMP/poly-f-1.dat" "$VLMGSHHSURL/poly-f-1.dat" 
    8383        echo -n "+$confmodule: copie dans  $VLMGSHHS..." 
    8484        mv "$VLMTEMP/poly-f-1.dat" "$VLMGSHHS/" 
    8585        echo 'OK !' 
    86         wget --output-document="$VLMTEMP/rivers-f-1.dat" "http://dev.virtual-loup-de-mer.org/datas/rivers-f-1.dat" 
     86        wget --output-document="$VLMTEMP/rivers-f-1.dat" "$VLMGSHHSURL/rivers-f-1.dat" 
    8787        echo -n "+$confmodule: copie dans  $VLMGSHHS..." 
    8888        mv "$VLMTEMP/rivers-f-1.dat" "$VLMGSHHS/" 
    8989        echo 'OK !' 
    90         wget --output-document="$VLMTEMP/borders-f-1.dat" "http://dev.virtual-loup-de-mer.org/datas/borders-f-1.dat" 
     90        wget --output-document="$VLMTEMP/borders-f-1.dat" "$VLMGSHHSURL/borders-f-1.dat" 
    9191        echo -n "+$confmodule: copie dans  $VLMGSHHS..." 
    9292        mv "$VLMTEMP/borders-f-1.dat" "$VLMGSHHS/" 
    9393        echo 'OK !' 
    94         wget --output-document="$VLMTEMP/ETOPO1_Ice.dat" "http://dev.virtual-loup-de-mer.org/datas/ETOPO1_Ice.dat" 
     94        wget --output-document="$VLMTEMP/ETOPO1_Ice.dat" "$VLMGSHHSURL/ETOPO1_Ice.dat" 
    9595        echo -n "+$confmodule: copie dans  $VLMGSHHS..." 
    9696        mv "$VLMTEMP/ETOPO1_Ice.dat" "$VLMGSHHS/" 
  • trunk/hosting/scripts/upgrades.d/up-0.19-0.sh

    r2682 r2836  
    33#do what can be done before maintenance mode 
    44$VLMRACINE/scripts/maj_module.sh base 
     5$VLMRACINE/scripts/maj_module.sh maps 
    56 
    6  
  • trunk/maps/init-gshhs.sh

    r2474 r2836  
    55 
    66destpath=$VLMGSHHS 
    7 gshhsfile=gshhs_2.1.1.zip 
    8 urlgshhs=http://www.ngdc.noaa.gov/mgg/shorelines/data/gshhs/version2.1.1/$gshhsfile 
     7gshhsfile=gshhs+wdbii_2.2.0.zip 
     8if test -n "$VLMGSHHSURL" ; then 
     9    urlgshhs=$VLMGSHHSURL/$gshhsfile 
     10else     
     11    urlgshhs=http://www.ngdc.noaa.gov/mgg/shorelines/data/gshhs/version2.2.0/$gshhsfile 
     12fi 
    913 
    1014mkdir -p $destpath 
     
    1620    rm -Rf $VLMTEMP/$gshhsfile 
    1721    wget --output-document=$VLMTEMP/$gshhsfile $urlgshhs 
    18     unzip -j $VLMTEMP/$gshhsfile -d $destpath/ 
     22    unzip -u -j $VLMTEMP/$gshhsfile -d $destpath/ 
     23    mv $VLMTEMP/$gshhsfile $destpath/ 
    1924fi         
    2025