From 0e4c73795c97fed32f7c495aa8b14f3e45c5faf2 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 12 Apr 2016 22:07:43 -0400 Subject: [PATCH 1/2] the shebang of bash scripts should be the 1st line of script file --- buildcore.sh | 4 ++-- builddep.sh | 3 ++- buildlocal.sh | 1 + makerpm | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/buildcore.sh b/buildcore.sh index 0fbcf0ec6..8db928c6a 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -1,6 +1,6 @@ -# The shell is commented out so that it will run in bash on linux and ksh on aix -# !/bin/bash +#!/bin/bash +# The shell is commented out so that it will run in bash on linux and ksh on aix # Build and upload the xcat-core code, on either linux or aix. # Getting Started: diff --git a/builddep.sh b/builddep.sh index 5a3f7e931..b5667f99e 100755 --- a/builddep.sh +++ b/builddep.sh @@ -1,5 +1,6 @@ +#!/bin/sh # The shell is commented out so that it will run in bash on linux and ksh on aix -# !/bin/sh + # # Package up all the xCAT open source dependencies # - creating the yum repos diff --git a/buildlocal.sh b/buildlocal.sh index fa4e6dfa6..da6f64899 100755 --- a/buildlocal.sh +++ b/buildlocal.sh @@ -1,3 +1,4 @@ +#!/bin/sh ####################################################################### #build script for local usage #used for Linux/AIX/Ubuntu diff --git a/makerpm b/makerpm index 76a800688..45c85481d 100755 --- a/makerpm +++ b/makerpm @@ -1,6 +1,6 @@ -# The shell is commented out so that it will run in bash on linux and ksh on aix -# !/bin/bash +#!/bin/bash +# The shell is commented out so that it will run in bash on linux and ksh on aix # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html # Common script to make any one the xcat rpms. To build locally, run in the top dir of local svn repository, for example: From 035a8e63850da3d9df67b430bb8beaf5188a9917 Mon Sep 17 00:00:00 2001 From: immarvin Date: Wed, 13 Apr 2016 00:49:11 -0400 Subject: [PATCH 2/2] remove the comment lines for AIX build --- buildcore.sh | 1 - builddep.sh | 1 - makerpm | 1 - 3 files changed, 3 deletions(-) diff --git a/buildcore.sh b/buildcore.sh index 8db928c6a..13494774c 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -1,6 +1,5 @@ #!/bin/bash -# The shell is commented out so that it will run in bash on linux and ksh on aix # Build and upload the xcat-core code, on either linux or aix. # Getting Started: diff --git a/builddep.sh b/builddep.sh index b5667f99e..84ca78e40 100755 --- a/builddep.sh +++ b/builddep.sh @@ -1,5 +1,4 @@ #!/bin/sh -# The shell is commented out so that it will run in bash on linux and ksh on aix # # Package up all the xCAT open source dependencies diff --git a/makerpm b/makerpm index 45c85481d..355e236bf 100755 --- a/makerpm +++ b/makerpm @@ -1,6 +1,5 @@ #!/bin/bash -# The shell is commented out so that it will run in bash on linux and ksh on aix # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html # Common script to make any one the xcat rpms. To build locally, run in the top dir of local svn repository, for example: