Mercurial > dive4elements > river
diff flys-backend/contrib/import_river.sh @ 5459:7c646d4d5103
be more flexible with river names (e.g. containing white space) in import script
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 27 Mar 2013 15:26:51 +0100 |
parents | 480d2f1f61cc |
children | 673f68bb19a4 |
line wrap: on
line diff
--- a/flys-backend/contrib/import_river.sh Wed Mar 27 13:02:53 2013 +0100 +++ b/flys-backend/contrib/import_river.sh Wed Mar 27 15:26:51 2013 +0100 @@ -156,9 +156,9 @@ fi GEW_FILE="$1" -RIVER_NAME=$(grep "Gew.sser" "$1" | awk '{print $2}') +RIVER_NAME=$(grep "Gew.sser" "$1" | sed 's/Gew.sser: //') DATE=$(date +%Y.%m.%d_%H%M) -LOG_DIR=${LOG}/${RIVER_NAME}-$DATE +LOG_DIR=${LOG}/`basename $GEW_FILE .gew`-$DATE mkdir -p ${LOG_DIR} if [ "$POSTGRES" = "TRUE" ]; then