Changeset 168 for trunk/data/konvert/postnas_0.6
- Timestamp:
- 02/29/12 16:02:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/konvert/postnas_0.6/datenbank_anlegen.bat
r167 r168 34 34 if not %5x==x goto ARGSSUPPLIED 35 35 36 echo Continue? 37 set /p PREPARED="(y)es or (n)o:" 38 if %PREPARED%x==x goto :PREP 39 40 if %PREPARED%==y goto :PREP_OK 41 if %PREPARED%==n goto :End 42 goto :PREP 43 :PREP_OK 36 echo Die Parameter wurden nicht alle übergeben. Bitte rufen Sie das Skript mit Parametern auf. 37 echo Das Skript wird beendet 38 goto :PARAMETER_EMPTY 44 39 45 40 :ARGSSUPPLIED … … 51 46 set DROPDB=%6 52 47 echo. 48 if %DBHOST%x==x goto PARAMETER_EMPTY 49 if %DBPORT%x==x goto PARAMETER_EMPTY 50 if %DBUSER%x==x goto PARAMETER_EMPTY 51 if %DBNAME%x==x goto PARAMETER_EMPTY 52 if %DBTEMPLATE%x==x goto PARAMETER_EMPTY 53 if %DBUSER%x==x goto PARAMETER_EMPTY 53 54 54 55 :CHOICES … … 84 85 85 86 if %DROPDB%==ja goto START_DROPDB 87 if %DROPDB%==j goto START_DROPDB 88 if %DROPDB%==yes goto START_DROPDB 89 if %DROPDB%==y goto START_DROPDB 86 90 if %DROPDB%==no goto START_CREATE 87 91 goto :START_CREATE … … 102 106 psql -U %DBUSER% -h %DBHOST% -p %DBPORT% -f gemeinden_definition.sql %DBNAME% 2>> ..\log_alkis_gemeinden_definition.txt 103 107 psql -U %DBUSER% -h %DBHOST% -p %DBPORT% -f sichten.sql %DBNAME% 2>> ..\log_alkis_sichten.txt 108 echo Die Datenbank wurde erzeugt. Prüfen Sie die Logdateien. 104 109 goto END: 105 110 … … 110 115 goto END 111 116 117 :PARAMETER_EMPTY 118 echo ============================================================================== 119 echo Sorry, Parameter müssen übergeben werden 120 echo Diese Argumente müssen übergeben werden: 121 echo "%0 <HOST> <PORT> <DBNAME> <DBTEMPLATE> <DBUSER> <DropDB ja/nein>" 122 echo. 123 echo z. B. 124 echo %0 %DBHOST% %DBPORT% alkis_import template_postgis alkis_user ja 125 echo. 126 echo ============================================================================== 127 112 128 REM End, keep Terminal session open 113 129 :END 114 130 115 echo Die Datenbank wurde erzeugt. Prüfen Sie die Logdateien. 131 116 132 echo. 117 133 pause
Note: See TracChangeset
for help on using the changeset viewer.