anchor.diff:  
   GOTO :EOF
   
  -::args: SQL_DIR
   :CLEANUP
  -del /F /Q tmp.zip
  -rmdir /s /q %SQL_DIR%
  +del /F /Q %EXTRACT_FILE%
  +rmdir /s /q %EXTRACT_DIR%
   GOTO :EOF
   
   :SUCCESS
  
positive.code: SET EMB_SERVER_PASS=RICEDEV
  
  :: URL of SQL scrips
  SET DBA_SCRIPT_URL=https://db.kc.kuali.org/userContent/dba/dbadb_oracle.zip
  SET UNT_SCRIPT_URL=https://db.kc.kuali.org/userContent/unt/untdb_oracle.zip
  SET EMB_CLIENT_SCRIPT_URL=https://db.kc.kuali.org/userContent/embedded/embeddeddb_client.zip
  SET EMB_SERVER_SCRIPT_URL=http://db.kc.kuali.org/userContent/embedded/embeddeddb_server.zip
  
  :: External program locations
  SET WGET_PROG=C:\cygwin\bin\wget.exe
  SET ZIP_PROG=c:\edstorm\utils\7-zip\7z.exe
  SET SQLPLUS_CMD=C:\oraclexe\app\oracle\product\10.2.0\server\BIN\sqlplus
  :: /* Advanced configuration */
  
  SET DBA_SQL_DIR=dbadb
  SET UNT_SQL_DIR=untdb
  SET EMB_CLIENT_SQL_DIR=embcdb
  SET EMB_SERVER_SQL_DIR=embsdb
  
  SET DBA_CMD=dba
  SET UNT_CMD=unt
  
negative.code: GOTO :END
  
  :DBA
  set DB_USER=%DBA_USER%
  set DB_PASS=%DBA_PASS%
  set SCRIPT_NAME=oracle_bundled
  call :UPDATE
  GOTO :SUCCESS
  
  :UNT
  set DB_USER=%UNT_USER%
  set DB_PASS=%UNT_PASS%
  set SCRIPT_NAME=oracle_test
  call :UPDATE
  GOTO :SUCCESS
  
  :ALL
  set DB_USER=%DBA_USER%
  set DB_PASS=%DBA_PASS%
  set SCRIPT_NAME=oracle_bundled
  call :UPDATE
  
  set DB_USER=%UNT_USER%
  set DB_PASS=%UNT_PASS%
  set SCRIPT_NAME=oracle_test
  call :UPDATE
  GOTO :SUCCESS
  
  :EMB
  set DB_USER=%EMB_CLIENT_USER%
  set DB_PASS=%EMB_CLIENT_PASS%
  set SCRIPT_NAME=oracle_client
  call :UPDATE
  
  set DB_USER=%EMB_SERVER_USER%
  set DB_PASS=%EMB_SERVER_PASS%
  set SCRIPT_NAME=oracle_server
  call :UPDATE
  GOTO :SUCCESS
  
  ::args: DB_USER, DB_PASS, SCRIPT_NAME
  :UPDATE
  call :CLEANUP
  %WGET_PROG% %WGET_OPTS% -O %EXTRACT_FILE% %SCRIPT_URL%
  %ZIP_PROG% x %EXTRACT_FILE% -y -o%EXTRACT_DIR%
  cd %EXTRACT_DIR%\oracle\
  %SQLPLUS_PROG% -S %DB_USER%/%DB_PASS% @%SCRIPT_NAME%
  %CD_BASE_DIR%
  call :CLEANUP
  
  