diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-11-08 17:49:43 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-11-08 17:52:45 +0100 |
commit | ace7e3c1fcc5842f9c1baf7887a23be96da0fd40 (patch) | |
tree | bb29755931a38385a21a03eee267812734b395fc | |
parent | 7f79e78b277019dfbcf3cea20705801c6fcf0a80 (diff) | |
download | vendor_replicant-release-scripts-ace7e3c1fcc5842f9c1baf7887a23be96da0fd40.tar.gz vendor_replicant-release-scripts-ace7e3c1fcc5842f9c1baf7887a23be96da0fd40.tar.bz2 vendor_replicant-release-scripts-ace7e3c1fcc5842f9c1baf7887a23be96da0fd40.zip |
Enable source to work from any directory
Without that fix, running releasetag.sh in the replicant root
directory fails:
$ ../releasetag.sh ./
../releasetag.sh: line 26: releasevars.sh: No such file or directory
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-x | build_release.sh | 2 | ||||
-rwxr-xr-x | release.sh | 2 | ||||
-rwxr-xr-x | releasediff.sh | 2 | ||||
-rwxr-xr-x | releasetag.sh | 2 | ||||
-rwxr-xr-x | releasevars.sh | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/build_release.sh b/build_release.sh index 57334c3..0a392eb 100755 --- a/build_release.sh +++ b/build_release.sh @@ -21,7 +21,7 @@ set -e SCRIPT=$0 REPLICANT_DIR=$1 -. releasevars.sh +. $(dirname $0)/releasevars.sh ARGS_COUNT=1 parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) @@ -232,7 +232,7 @@ REPLICANT_DIR="$(realpath $1)" RELEASE_DIR="$(realpath $2)" RELEASE_TYPE="$3" -. releasevars.sh +. $(dirname $0)/releasevars.sh RELEASE_TOOLS_DIR="$REPLICANT_DIR/out/host/linux-x86/bin" RELEASE_TOOLS="adb fastboot heimdall mkbootimg unpackbootimg" diff --git a/releasediff.sh b/releasediff.sh index 98a53ac..8e8582f 100755 --- a/releasediff.sh +++ b/releasediff.sh @@ -21,7 +21,7 @@ SCRIPT=$0 REPLICANT_DIR=$1 RELEASE_DIR=$2 -. releasevars.sh +. $(dirname $0)/releasevars.sh ARGS_COUNT=2 diff --git a/releasetag.sh b/releasetag.sh index 874ef2e..c8f6692 100755 --- a/releasetag.sh +++ b/releasetag.sh @@ -23,7 +23,7 @@ set -e SCRIPT=$0 REPLICANT_DIR=$1 -. releasevars.sh +. $(dirname $0)/releasevars.sh ARGS_COUNT=1 PUSH_REMOTE="git.replicant.us" diff --git a/releasevars.sh b/releasevars.sh index b0dd53b..b4e423b 100755 --- a/releasevars.sh +++ b/releasevars.sh @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. common.sh +. $(dirname $0)/common.sh RELEASE="" |