summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-30 08:45:39 +0000
committerMike Frysinger <vapier@gentoo.org>2008-11-30 08:45:39 +0000
commitb7fc9ac87ddd137eea78cb9a4e7fc62fc05f0678 (patch)
treea36b16c27c1ca5c1540cefcd47c8a99573cae6b0 /scripts/svn-status
parentbroken (diff)
downloadenlightenment-b7fc9ac87ddd137eea78cb9a4e7fc62fc05f0678.tar.gz
enlightenment-b7fc9ac87ddd137eea78cb9a4e7fc62fc05f0678.tar.bz2
enlightenment-b7fc9ac87ddd137eea78cb9a4e7fc62fc05f0678.zip
script to quickly compare overlay with svn
Diffstat (limited to 'scripts/svn-status')
-rwxr-xr-xscripts/svn-status28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/svn-status b/scripts/svn-status
new file mode 100755
index 0000000..7cceaa6
--- /dev/null
+++ b/scripts/svn-status
@@ -0,0 +1,28 @@
+#!/bin/bash
+svn=${1:-/usr/local/src/enlightenment/svn}
+overlay=${2:-${0%/*}/../}
+
+get_svn_dirs() {
+ find $svn/$1/ \
+ -mindepth 1 -maxdepth 1 \
+ -type d '!' '(' -name CVSROOT -o -name .svn ')' \
+ -printf '%P\n' | sort
+}
+
+line() {
+ printf "%10s: %-20s -> %s\n" "$1" "$2" \
+ $(find $overlay -name "$3" -printf '%P')
+}
+has() { [[ " ${*:2} " == *" $1 "* ]] ; }
+
+for t in OLD BROKEN E-MODULES-EXTRA PROTO "" ; do
+ for d in $(get_svn_dirs $t) ; do
+ dd=$d
+ if [[ -z ${t} ]] ; then
+ [[ ! -e ${svn}/${d}/configure.ac ]] && continue
+ fi
+ [[ ${d}${t} == E-MODULES-EXTRA ]] && continue
+ [[ ${t} == E-MODULES-EXTRA ]] && dd=e_modules-$d
+ line "${t/-EXTRA}" $d $dd
+ done
+done