aboutsummaryrefslogtreecommitdiffstats
path: root/releasediff.sh
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-05-05 16:30:37 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-05-07 14:46:27 +0200
commit9d7a7dc094f56d04610c2917af37cb9c48e99961 (patch)
treecbb782176309fda193b7c9cd85e2fa574777d969 /releasediff.sh
parent491cc7445644441b11565cb5a52a66ce43cf5f41 (diff)
downloadvendor_replicant-release-scripts-9d7a7dc094f56d04610c2917af37cb9c48e99961.tar.gz
vendor_replicant-release-scripts-9d7a7dc094f56d04610c2917af37cb9c48e99961.tar.bz2
vendor_replicant-release-scripts-9d7a7dc094f56d04610c2917af37cb9c48e99961.zip
Replicant 6.0 0001 images release
Besides updating the scripts to account for changes introduced after Android 4.2, the following modifications were made: * Introduce releasevars.sh to store frequently used variables * Remove SDK parts and devices not yet supported by Replicant 6.0 * Add unpackbootimg to release tools * Use my GPG key for signing * Use more functionality from the repo tool to simplify the scripts * Only accept tags for git metadata. * Additionally tag the LineageOS mirror besides our forked repos. Ignore the manifest repo as it's tagged manually. * Add releasebuild.sh script to build all targets and the toolchain * Make sure a bash shell is used * Use repo tool from $PATH * Abort on error Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'releasediff.sh')
-rwxr-xr-xreleasediff.sh17
1 files changed, 5 insertions, 12 deletions
diff --git a/releasediff.sh b/releasediff.sh
index 68ba5cb..98a53ac 100755
--- a/releasediff.sh
+++ b/releasediff.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Copyright (C) 2013-2015 Paul Kocialkowski <contact@paulk.fr>
#
@@ -21,20 +21,13 @@ SCRIPT=$0
REPLICANT_DIR=$1
RELEASE_DIR=$2
+. releasevars.sh
+
ARGS_COUNT=2
-COLOR=1
-REPO="../tools/repo"
-METADATA="$RELEASE_DIR/metadata"
regexp=".*path=\"\([^\"]*\)\".*revision=\"\([^\"]*\)\".*"
-if [ "$COLOR" = "1" ]
-then
- color_start="\033[36m"
- color_end="\033[0m"
-else
- color_start=""
- color_end=""
-fi
+
+set_color
diff_repos () {
paths=$( cat "$METADATA/manifest.xml" | grep "path=" | sed "s/$regexp/\1/g" )