Mercurial > dive4elements > river
diff flys-backend/contrib/import_river.sh @ 5540:25c2505df28f
Merged
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Wed, 03 Apr 2013 16:00:21 +0200 |
parents | 7c646d4d5103 |
children | 673f68bb19a4 |
line wrap: on
line diff
--- a/flys-backend/contrib/import_river.sh Wed Apr 03 15:59:01 2013 +0200 +++ b/flys-backend/contrib/import_river.sh Wed Apr 03 16:00:21 2013 +0200 @@ -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