From a80733d771370a01f08fbc6c990df2fdd9707006 Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Mon, 23 Mar 2015 11:21:25 +0100 Subject: [PATCH] Add publish fork instructions for bitcoinj --- doc/tomp2pReadme.md | 52 +++++++++++++++++++++++++++++++++++++ doc/update_fork_bitcoinj.sh | 23 ++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 doc/tomp2pReadme.md create mode 100644 doc/update_fork_bitcoinj.sh diff --git a/doc/tomp2pReadme.md b/doc/tomp2pReadme.md new file mode 100644 index 0000000000..a271c77c9b --- /dev/null +++ b/doc/tomp2pReadme.md @@ -0,0 +1,52 @@ +How to publish custom TomP2P snapshots: + +Update this fork to upstream/master: + + git clone https://github.com/bitsquare/TomP2P.git + cd TomP2P + git remote add upstream https://github.com/tomp2p/TomP2P.git + git checkout master + git pull upstream master + git push origin master + +Create a custom qualified snapshot version: + + git checkout published (if the first time: git checkout -b published) + git reset --hard master + export COMMITHASH=$(git log --oneline -1 | cut -d" " -f1) + git grep -l 5.0-Alpha | xargs perl -p -i -e "s/5.0-Alpha(..?)-SNAPSHOT/5.0-Alpha$1.$COMMITHASH-SNAPSHOT/" + git diff # review changes to poms + git commit -am"Qualify pom version for publication" + +Build artifacts: + + mvn clean package -DskipTests + +Upload artifacts to Artifactory: + + Log in at https://partnerdemo.artifactoryonline.com/partnerdemo/webapp/login.html (@ManfredKarrer and @cbeams know the creds) + Go to https://partnerdemo.artifactoryonline.com/partnerdemo/webapp/deployartifact.html + Upload each of the tomp2p jar files, and accept all defaults in the form that follows + Finally, upload the top-level pom.xml (this is the tomp2p-parent pom). + +Re-apply this README: + + git show bitsquare-published-91276e8:README > README + git add README + git commit -m"Add README with publication instructions" + +Tag the published branch: + + git tag bitsquare-published-$COMMITHASH published + +(Force) push the published branch: + + git push -f origin published + +Push tags: + + git push --tags + + +Note this would all be a lot easier if TomP2P published its own snapshots :) + diff --git a/doc/update_fork_bitcoinj.sh b/doc/update_fork_bitcoinj.sh new file mode 100644 index 0000000000..9292cd8174 --- /dev/null +++ b/doc/update_fork_bitcoinj.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +cd /Users/mk/Documents/_intellij/bitcoinj-fork +git reset --hard +git remote add upstream https://github.com/bitcoinj/bitcoinj.git +git checkout master +git pull upstream master +git push origin master + +git checkout published +git reset --hard master +export COMMITHASH=$(git log --oneline -1 | cut -d" " -f1) +echo $COMMITHASH +git grep -l 0.13-SNAPSHOT | xargs perl -p -i -e "s/0.13-SNAPSHOT/0.13.$COMMITHASH-SNAPSHOT/" +git commit -am"Qualify pom version for publication" + +mvn clean install -DskipTests + +git tag bitsquare-published-$COMMITHASH published +git push -f origin published +git push --tags + +