[jhbuild: 68/68] goalreport: adapt create-master-tracking-moduleset.sh to recent changes
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild: 68/68] goalreport: adapt create-master-tracking-moduleset.sh to recent changes
- Date: Fri, 11 May 2012 07:11:38 +0000 (UTC)
commit aa2ebb33ab105aca1cf898e9a47e45725ebae978
Author: FrÃdÃric PÃters <fpeters 0d be>
Date: Fri May 11 09:10:43 2012 +0200
goalreport: adapt create-master-tracking-moduleset.sh to recent changes
scripts/create-master-tracking-moduleset.sh | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/scripts/create-master-tracking-moduleset.sh b/scripts/create-master-tracking-moduleset.sh
index 2a7c6a8..dc3657d 100755
--- a/scripts/create-master-tracking-moduleset.sh
+++ b/scripts/create-master-tracking-moduleset.sh
@@ -1,11 +1,12 @@
#! /bin/sh
-xsltproc --nodtdattr scripts/create-master-tracking-moduleset.xsl \
- modulesets/gnome-suites-2.28.modules > \
- modulesets/gnome-suites-trunk.modules
+VERSION=$(grep '^moduleset =' jhbuild/defaults.jhbuildrc | awk -F"-" '{ print $NF }' | sed -e "s/'//g")
-xsltproc --nodtdattr scripts/create-master-tracking-moduleset.xsl \
- modulesets/gnome-2.28.modules > \
- modulesets/gnome-trunk.modules
+for FILENAME in modulesets/*-$VERSION.modules
+do
+ TRUNK_FILENAME=$(echo $FILENAME | sed -e "s/$VERSION/trunk/")
+ xsltproc --nodtdattr scripts/create-master-tracking-moduleset.xsl \
+ $FILENAME > $TRUNK_FILENAME
+ sed -i -e "s/-$VERSION.modules/-trunk.modules/" $TRUNK_FILENAME
+done
-sed -i -e 's/gnome-suites-2.28.modules/gnome-suites-trunk.modules/' modulesets/gnome-trunk.modules
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]