]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/cats/make_postgresql_tables.cmd
kes Add context menu for floating a window.
[bacula/bacula] / bacula / src / win32 / cats / make_postgresql_tables.cmd
index ed2172208270d2d3ee9f37566d40de30b7c89472..0dae458541a3f1f01861cd8c2d443a838b4f9a78 100644 (file)
@@ -1,14 +1,14 @@
-rem \r
-rem  shell script to create Bacula PostgreSQL tables\r
-rem \r
-bindir=@SQL_BINDIR@\r
+@ECHO off\r
+REM\r
+REM  Script to create Bacula PostgreSQL tables\r
+REM\r
 \r
-$bindir/psql -f make_postgresql_tables.sql -d bacula $*\r
-if ERRORLEVEL 1 GOTO :ERROR\r
-echo "Creation of Bacula PostgreSQL tables succeeded."\r
+"@SQL_BINDIR@\psql" -f "@bin_dir_cmd@\make_postgresql_tables.sql" -d bacula %*\r
+IF ERRORLEVEL 1 GOTO :ERROR\r
+ECHO Creation of Bacula PostgreSQL tables succeeded.\r
 EXIT /b 0\r
 GOTO :EOF\r
 \r
 :ERROR\r
-echo "Creation of Bacula PostgreSQL tables failed."\r
+ECHO Creation of Bacula PostgreSQL tables failed.\r
 EXIT /b 1\r