Crossplatform header for bash files

This commit is contained in:
Yehonal
2016-08-26 16:23:25 +02:00
parent 1f16a068e9
commit 41f64fb287
11 changed files with 11 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

View File

@@ -1,4 +1,5 @@
#!/bin/bash #!/usr/bin/env bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_PATH/includes/includes.sh" source "$CURRENT_PATH/includes/includes.sh"

View File

@@ -1,5 +1,3 @@
#!/bin/bash
# you can choose build type from cmd argument # you can choose build type from cmd argument
if [ ! -z $1 ] if [ ! -z $1 ]
then then

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env bash
unamestr=`uname` unamestr=`uname`
if [[ "$unamestr" == 'Darwin' ]]; then if [[ "$unamestr" == 'Darwin' ]]; then
SRCPATH=$(greadlink -f "../../") SRCPATH=$(greadlink -f "../../")

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
ROOTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../" && pwd )" ROOTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../" && pwd )"

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
GDB_FILE="$2" GDB_FILE="$2"
CONFIG="$3" CONFIG="$3"

View File

@@ -1,5 +1,3 @@
#!/bin/bash
# absolute root path of your azerothshard repository # absolute root path of your azerothshard repository
SRCPATH="$AC_PATH_ROOT" SRCPATH="$AC_PATH_ROOT"
# absolute path where binary files must be stored # absolute path where binary files must be stored

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PATH_MODULES="$CUR_PATH/modules/" PATH_MODULES="$CUR_PATH/modules/"