aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Pfeffer <zach.pfeffer@linaro.org>2013-02-28 13:41:30 -0600
committerZach Pfeffer <zach.pfeffer@linaro.org>2013-02-28 13:41:30 -0600
commitce057aad73e556d03e62cfc320549bb310b18091 (patch)
tree7c550067167bdb2ad8bd93b45344ad1c228d1df7
parent43cd0a24597fc63b3efb74c576264c749838160b (diff)
downloadat-ce057aad73e556d03e62cfc320549bb310b18091.tar.gz
Add tohttp to transform a manifest
Signed-off-by: Zach Pfeffer <zach.pfeffer@linaro.org>
-rw-r--r--install.sh2
-rw-r--r--tools.sh19
2 files changed, 18 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index 2d8fcff..e3a9107 100644
--- a/install.sh
+++ b/install.sh
@@ -1,6 +1,8 @@
sudo apt-get install realpath
sudo apt-get install curl
sudo apt-get install ia32-libs
+sudo apt-get install python
+
sudo bash -c "echo \"127.0.0.1 flexlm.linaro.org\" >> /etc/hosts"
diff --git a/tools.sh b/tools.sh
index 3c70877..732c15a 100644
--- a/tools.sh
+++ b/tools.sh
@@ -501,12 +501,25 @@ function buildrun() {
bathsink
}
+function getorupdatemanifest() {
+ ./repo init -u ssh://$REMOTEUSER@linaro-private.git.linaro.org/srv/linaro-private.git.linaro.org/android/manifest.git -b linaro_android_4.2.2 -m vexpress-juice-aosp.xml
+ sed -i "s/linaro-big-little-switcher-bot/$REMOTEUSER/" .repo/manifest.xml
+
+}
+
+function tohttp {
+ wget http://bazaar.launchpad.net/~linaro-automation/linaro-android-build-tools/trunk/download/head:/sanitizemanifest.py-20121026100311-5cyxt3zk9wgvwohf-1/rewrite-manifest.py
+
+ python rewrite-manifest.py .repo/manifest.xml > new-manifest.xml
+ mv new-manifest.xml .repo/manifest.xml 
+ time ./repo sync
+}
+
function getsource() {
curl "http://android.git.linaro.org/gitweb?p=tools/repo.git;a=blob_plain;f=repo;hb=refs/heads/stable" > repo
chmod +x repo
- ./repo init -u ssh://$REMOTEUSER@linaro-private.git.linaro.org/srv/linaro-private.git.linaro.org/android/manifest.git -b linaro_android_4.2.2 -m vexpress-juice-aosp.xml
- sed -i "s/linaro-big-little-switcher-bot/$REMOTEUSER/" .repo/manifest.xml
- time ./repo sync # this may take some time
+ getorupdatemanifest
+ tohttp
}
export GETANDBUILD_DOC="Get all source, build everything and run"