aboutsummaryrefslogtreecommitdiffstats
path: root/releasediff.sh
diff options
context:
space:
mode:
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" )