From d289faef76b0f5182cdef2bf717bb4005c059279 Mon Sep 17 00:00:00 2001 From: bmovaqar Date: Wed, 5 Nov 2008 13:09:05 +0000 Subject: [PATCH] [Bugs-1818607] Build and Run scripts fail on Unix if not using Bash/Ash/SH --- utils/RUN_DBExport.sh | 2 ++ utils/RUN_DBRestore.sh | 2 ++ utils/RUN_DBStart.sh | 2 ++ utils/RUN_DBStop.sh | 2 ++ utils/RUN_Env.sh | 2 ++ utils/RUN_TrlExport.sh | 2 ++ utils/RUN_TrlImport.sh | 2 ++ utils/myDBcopyTemplate.sh | 2 ++ utils/oracle/DBExport.sh | 2 ++ utils/oracle/DBExportFull.sh | 2 ++ utils/oracle/DBRestore.sh | 2 ++ utils/oracle/ExportReference.sh | 2 ++ utils/oracle/ImportAdempiere.sh | 2 ++ utils/oracle/ImportReference.sh | 2 ++ utils/oracle/PostMigration.sh | 2 ++ utils/oracle/Start.sh | 2 ++ utils/oracle/Stop.sh | 2 ++ utils/oracleXE/DBExport.sh | 2 ++ utils/oracleXE/DBExportFull.sh | 2 ++ utils/oracleXE/DBRestore.sh | 2 ++ utils/oracleXE/ExportReference.sh | 2 ++ utils/oracleXE/ImportAdempiere.sh | 2 ++ utils/oracleXE/ImportReference.sh | 2 ++ utils/oracleXE/PostMigration.sh | 2 ++ utils/oracleXE/Start.sh | 2 ++ utils/oracleXE/Stop.sh | 2 ++ utils/postgresql/DBExport.sh | 2 ++ utils/postgresql/DBRestore.sh | 2 ++ utils/postgresql/ExportReference.sh | 2 ++ utils/postgresql/ImportAdempiere.sh | 2 ++ utils/postgresql/PostMigration.sh | 2 ++ utils/postgresql/Start.sh | 2 ++ utils/postgresql/Stop.sh | 2 ++ utils_dev/RUN_build.sh | 2 ++ utils_dev/RUN_build2.sh | 2 ++ utils_dev/RUN_buildIncremental.sh | 2 ++ utils_dev/RUN_clean.sh | 2 ++ utils_dev/RUN_install.sh | 2 ++ 38 files changed, 76 insertions(+) diff --git a/utils/RUN_DBExport.sh b/utils/RUN_DBExport.sh index 610a37cbb1..f62bfe08b1 100644 --- a/utils/RUN_DBExport.sh +++ b/utils/RUN_DBExport.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # Author + Copyright 1999-2005 Jorg Janke # $Id: RUN_DBExport.sh,v 1.10 2005/05/31 18:45:33 jjanke Exp $ if [ $ADEMPIERE_HOME ]; then diff --git a/utils/RUN_DBRestore.sh b/utils/RUN_DBRestore.sh index 0c986ed431..e293c0e113 100644 --- a/utils/RUN_DBRestore.sh +++ b/utils/RUN_DBRestore.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: RUN_DBRestore.sh,v 1.9 2005/01/22 21:59:15 jjanke Exp $ if [ $ADEMPIERE_HOME ]; then cd $ADEMPIERE_HOME/utils diff --git a/utils/RUN_DBStart.sh b/utils/RUN_DBStart.sh index 6b5ff54d3e..240dd35303 100644 --- a/utils/RUN_DBStart.sh +++ b/utils/RUN_DBStart.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: RUN_DBStart.sh,v 1.4 2005/01/22 21:59:15 jjanke Exp $ if [ $ADEMPIERE_HOME ]; then cd $ADEMPIERE_HOME/utils diff --git a/utils/RUN_DBStop.sh b/utils/RUN_DBStop.sh index c728c9f5b9..6c51ead4bb 100644 --- a/utils/RUN_DBStop.sh +++ b/utils/RUN_DBStop.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: RUN_DBStop.sh,v 1.4 2005/01/22 21:59:15 jjanke Exp $ if [ $ADEMPIERE_HOME ]; then cd $ADEMPIERE_HOME/utils diff --git a/utils/RUN_Env.sh b/utils/RUN_Env.sh index 468e1f7a7e..0efd0511d8 100644 --- a/utils/RUN_Env.sh +++ b/utils/RUN_Env.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: RUN_Env.sh,v 1.16 2005/01/22 21:59:15 jjanke Exp $ echo Adempiere Environment Check diff --git a/utils/RUN_TrlExport.sh b/utils/RUN_TrlExport.sh index 5b44575734..3d2a463ba6 100644 --- a/utils/RUN_TrlExport.sh +++ b/utils/RUN_TrlExport.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: RUN_TrlExport.sh,v 1.4 2005/01/22 21:59:15 jjanke Exp $ if [ $ADEMPIERE_HOME ]; then diff --git a/utils/RUN_TrlImport.sh b/utils/RUN_TrlImport.sh index f0c3a070fb..672918d5bb 100644 --- a/utils/RUN_TrlImport.sh +++ b/utils/RUN_TrlImport.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: RUN_TrlImport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $ if [ $ADEMPIERE_HOME ]; then diff --git a/utils/myDBcopyTemplate.sh b/utils/myDBcopyTemplate.sh index c73c937400..23b926e23a 100644 --- a/utils/myDBcopyTemplate.sh +++ b/utils/myDBcopyTemplate.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # Copy Database after backup # $Id: myDBcopyTemplate.sh,v 1.1 2002/10/07 01:23:32 jjanke Exp $ diff --git a/utils/oracle/DBExport.sh b/utils/oracle/DBExport.sh index 3a6a66c039..e845560af3 100644 --- a/utils/oracle/DBExport.sh +++ b/utils/oracle/DBExport.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Adempiere Database Export $Revision: 1.5 $ # $Id: DBExport.sh,v 1.5 2005/12/20 07:12:17 jjanke Exp $ diff --git a/utils/oracle/DBExportFull.sh b/utils/oracle/DBExportFull.sh index ff5b83c8bf..13b701d8ad 100644 --- a/utils/oracle/DBExportFull.sh +++ b/utils/oracle/DBExportFull.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Adempiere Full Database Export $Revision: 1.3 $ # $Id: DBExportFull.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $ diff --git a/utils/oracle/DBRestore.sh b/utils/oracle/DBRestore.sh index a7396775ef..51264943e0 100644 --- a/utils/oracle/DBRestore.sh +++ b/utils/oracle/DBRestore.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: DBRestore.sh,v 1.8 2005/12/20 07:12:17 jjanke Exp $ echo Adempiere Database Restore $Revision: 1.8 $ diff --git a/utils/oracle/ExportReference.sh b/utils/oracle/ExportReference.sh index 98242ffa08..e6f9c5aa8e 100755 --- a/utils/oracle/ExportReference.sh +++ b/utils/oracle/ExportReference.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Adempiere Database Export $Revision: 1.5 $ # $Id: DBExport.sh,v 1.5 2005/12/20 07:12:17 jjanke Exp $ diff --git a/utils/oracle/ImportAdempiere.sh b/utils/oracle/ImportAdempiere.sh index e9ded0d6b8..3a5187ae32 100644 --- a/utils/oracle/ImportAdempiere.sh +++ b/utils/oracle/ImportAdempiere.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: ImportAdempiere.sh,v 1.10 2005/12/20 07:12:17 jjanke Exp $ echo Adempiere Database Import $Revision: 1.10 $ diff --git a/utils/oracle/ImportReference.sh b/utils/oracle/ImportReference.sh index e8f75f97f9..7a35209721 100644 --- a/utils/oracle/ImportReference.sh +++ b/utils/oracle/ImportReference.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: ImportReference.sh,v 1.5 2005/01/22 21:59:15 jjanke Exp $ echo Adempiere Reference Database Import $Revision: 1.5 $ diff --git a/utils/oracle/PostMigration.sh b/utils/oracle/PostMigration.sh index 43fed7b025..86f6598bc3 100644 --- a/utils/oracle/PostMigration.sh +++ b/utils/oracle/PostMigration.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: PostMigration.sh echo Oracle Post Migration Scripts diff --git a/utils/oracle/Start.sh b/utils/oracle/Start.sh index 517569ff10..4b0ba95781 100644 --- a/utils/oracle/Start.sh +++ b/utils/oracle/Start.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: Start.sh,v 1.6 2005/01/22 21:59:15 jjanke Exp $ sqlplus "system/$ADEMPIERE_DB_SYSTEM@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME AS SYSDBA" @$ADEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/Start.sql diff --git a/utils/oracle/Stop.sh b/utils/oracle/Stop.sh index 98c04a9dae..c1daf989a3 100644 --- a/utils/oracle/Stop.sh +++ b/utils/oracle/Stop.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: Stop.sh,v 1.7 2005/01/22 21:59:15 jjanke Exp $ # In a multi-instance environment set the environment first diff --git a/utils/oracleXE/DBExport.sh b/utils/oracleXE/DBExport.sh index 3a6a66c039..e845560af3 100644 --- a/utils/oracleXE/DBExport.sh +++ b/utils/oracleXE/DBExport.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Adempiere Database Export $Revision: 1.5 $ # $Id: DBExport.sh,v 1.5 2005/12/20 07:12:17 jjanke Exp $ diff --git a/utils/oracleXE/DBExportFull.sh b/utils/oracleXE/DBExportFull.sh index ff5b83c8bf..13b701d8ad 100644 --- a/utils/oracleXE/DBExportFull.sh +++ b/utils/oracleXE/DBExportFull.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Adempiere Full Database Export $Revision: 1.3 $ # $Id: DBExportFull.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $ diff --git a/utils/oracleXE/DBRestore.sh b/utils/oracleXE/DBRestore.sh index 56b5421721..192e3262a6 100644 --- a/utils/oracleXE/DBRestore.sh +++ b/utils/oracleXE/DBRestore.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: DBRestore.sh,v 1.8 2005/12/20 07:12:17 jjanke Exp $ echo Adempiere Database Restore $Revision: 1.8 $ diff --git a/utils/oracleXE/ExportReference.sh b/utils/oracleXE/ExportReference.sh index 98242ffa08..e6f9c5aa8e 100755 --- a/utils/oracleXE/ExportReference.sh +++ b/utils/oracleXE/ExportReference.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Adempiere Database Export $Revision: 1.5 $ # $Id: DBExport.sh,v 1.5 2005/12/20 07:12:17 jjanke Exp $ diff --git a/utils/oracleXE/ImportAdempiere.sh b/utils/oracleXE/ImportAdempiere.sh index ea50d59377..a0d3121559 100644 --- a/utils/oracleXE/ImportAdempiere.sh +++ b/utils/oracleXE/ImportAdempiere.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: ImportAdempiere.sh,v 1.10 2005/12/20 07:12:17 jjanke Exp $ echo Adempiere Database Import $Revision: 1.10 $ diff --git a/utils/oracleXE/ImportReference.sh b/utils/oracleXE/ImportReference.sh index e8f75f97f9..7a35209721 100644 --- a/utils/oracleXE/ImportReference.sh +++ b/utils/oracleXE/ImportReference.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: ImportReference.sh,v 1.5 2005/01/22 21:59:15 jjanke Exp $ echo Adempiere Reference Database Import $Revision: 1.5 $ diff --git a/utils/oracleXE/PostMigration.sh b/utils/oracleXE/PostMigration.sh index 43fed7b025..86f6598bc3 100644 --- a/utils/oracleXE/PostMigration.sh +++ b/utils/oracleXE/PostMigration.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: PostMigration.sh echo Oracle Post Migration Scripts diff --git a/utils/oracleXE/Start.sh b/utils/oracleXE/Start.sh index 517569ff10..4b0ba95781 100644 --- a/utils/oracleXE/Start.sh +++ b/utils/oracleXE/Start.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: Start.sh,v 1.6 2005/01/22 21:59:15 jjanke Exp $ sqlplus "system/$ADEMPIERE_DB_SYSTEM@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME AS SYSDBA" @$ADEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/Start.sql diff --git a/utils/oracleXE/Stop.sh b/utils/oracleXE/Stop.sh index 98c04a9dae..c1daf989a3 100644 --- a/utils/oracleXE/Stop.sh +++ b/utils/oracleXE/Stop.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: Stop.sh,v 1.7 2005/01/22 21:59:15 jjanke Exp $ # In a multi-instance environment set the environment first diff --git a/utils/postgresql/DBExport.sh b/utils/postgresql/DBExport.sh index 47e03e5bb0..f9a313cd92 100644 --- a/utils/postgresql/DBExport.sh +++ b/utils/postgresql/DBExport.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Adempiere PostgreSQL Database Export $Revision: 1.3 $ # $Id: DBExport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $ diff --git a/utils/postgresql/DBRestore.sh b/utils/postgresql/DBRestore.sh index ece23523e4..97a43dad7f 100644 --- a/utils/postgresql/DBRestore.sh +++ b/utils/postgresql/DBRestore.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: ImportAdempiere.sh,v 1.10 2005/12/20 07:12:17 jjanke Exp $ echo Adempiere Database Import $Revision: 1.10 $ diff --git a/utils/postgresql/ExportReference.sh b/utils/postgresql/ExportReference.sh index 8235e751ea..6d4a6a22b9 100644 --- a/utils/postgresql/ExportReference.sh +++ b/utils/postgresql/ExportReference.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Adempiere PostgreSQL Database Export $Revision: 1.3 $ # $Id: DBExport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $ diff --git a/utils/postgresql/ImportAdempiere.sh b/utils/postgresql/ImportAdempiere.sh index 201487a5f4..1786417abd 100644 --- a/utils/postgresql/ImportAdempiere.sh +++ b/utils/postgresql/ImportAdempiere.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: ImportAdempiere.sh,v 1.10 2005/12/20 07:12:17 jjanke Exp $ echo Adempiere Database Import $Revision: 1.10 $ diff --git a/utils/postgresql/PostMigration.sh b/utils/postgresql/PostMigration.sh index 3d008b5c49..70690fffb0 100644 --- a/utils/postgresql/PostMigration.sh +++ b/utils/postgresql/PostMigration.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # $Id: PostMigration.sh echo Postgresql Post Migration Scripts diff --git a/utils/postgresql/Start.sh b/utils/postgresql/Start.sh index 8af7b9e91f..03fe3d71b2 100644 --- a/utils/postgresql/Start.sh +++ b/utils/postgresql/Start.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Start PostgreSQL DB Service # $Id: Start.sh,v 1.3 2002/04/26 03:20:09 jjanke Exp $ diff --git a/utils/postgresql/Stop.sh b/utils/postgresql/Stop.sh index 731e5ef05e..80bd9ccd2e 100644 --- a/utils/postgresql/Stop.sh +++ b/utils/postgresql/Stop.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo Stop Oracle DB Service # $Id: Stop.sh,v 1.2 2002/04/24 01:52:59 jjanke Exp $ diff --git a/utils_dev/RUN_build.sh b/utils_dev/RUN_build.sh index 5c59a6efa8..8f19e63278 100755 --- a/utils_dev/RUN_build.sh +++ b/utils_dev/RUN_build.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # This script rebuilds Adempiere # Ported from Windows script Marek Mosiewicz # If you have difficulties, compare it with the Windows version. diff --git a/utils_dev/RUN_build2.sh b/utils_dev/RUN_build2.sh index f96385b539..7c32cc21b5 100644 --- a/utils_dev/RUN_build2.sh +++ b/utils_dev/RUN_build2.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # This script rebuilds Adempiere # Ported from Windows script Marek Mosiewicz # If you have difficulties, compare it with the Windows version. diff --git a/utils_dev/RUN_buildIncremental.sh b/utils_dev/RUN_buildIncremental.sh index a9d924d8a5..c0d8d208bf 100755 --- a/utils_dev/RUN_buildIncremental.sh +++ b/utils_dev/RUN_buildIncremental.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # This script compile Adempiere # Ported from Windows script Marek Mosiewicz diff --git a/utils_dev/RUN_clean.sh b/utils_dev/RUN_clean.sh index bbf0740b53..cc0cd4b881 100755 --- a/utils_dev/RUN_clean.sh +++ b/utils_dev/RUN_clean.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # This script cleans Adempiere builds # Ported from Windows script Marek Mosiewicz diff --git a/utils_dev/RUN_install.sh b/utils_dev/RUN_install.sh index 13110a6a01..6cc73b8daa 100755 --- a/utils_dev/RUN_install.sh +++ b/utils_dev/RUN_install.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # This script installs adempiere # Ported from Windows script Marek Mosiewicz