Merge lp:~posulliv/akiban-persistit/update-release-script into lp:akiban-persistit

Proposed by Padraig O'Sullivan
Status: Merged
Approved by: Nathan Williams
Approved revision: 411
Merged at revision: 410
Proposed branch: lp:~posulliv/akiban-persistit/update-release-script
Merge into: lp:akiban-persistit
Diff against target: 94 lines (+2/-42)
2 files modified
build_release.sh (+1/-41)
doc/build/build-doc.sh (+1/-1)
To merge this branch: bzr merge lp:~posulliv/akiban-persistit/update-release-script
Reviewer Review Type Date Requested Status
Nathan Williams Approve
Review via email: mp+143148@code.launchpad.net

Description of the change

Update default URL for location of javadoc. Also remove community related builds from the release script as they are no longer needed.

To post a comment you must log in.
Revision history for this message
Nathan Williams (nwilliams) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'build_release.sh'
2--- build_release.sh 2012-08-02 20:49:39 +0000
3+++ build_release.sh 2013-01-14 17:13:21 +0000
4@@ -23,8 +23,6 @@
5 # - akiban-persistit-X.X.X.tar.gz (binary, EPL)
6 # - akiban-persistit-X.X.X-source.zip (source, EPL)
7 # - akiban-persistit-X.X.X-source.tar.gz (source, EPL)
8-# - akiban-persistit-community-X.X.X.zip (binary, EULA)
9-# - akiban-persistit-community-X.X.X.tar.gz (binary, EULA)
10 #
11
12 set -e
13@@ -79,7 +77,6 @@
14
15 REQUIRED_PROGS="bzr mvn javac sphinx-build curl awk sed tr basename zip tar gpg"
16 BRANCH_DEFAULT="lp:~akiban-technologies/akiban-persistit"
17-COMM_LICENSE_URL="http://www.akiban.com/akiban-persistit-community-license-agreement-plaintext"
18
19 VERSION=""
20 BRANCH_URL=""
21@@ -126,7 +123,6 @@
22 BRANCH_DIR="${WORKSPACE}/${VERSION}"
23 SOURCE_DIR="${WORKSPACE}/${NAME}-${VERSION}-source"
24 OPEN_DIR="${WORKSPACE}/${NAME}-${VERSION}"
25-COMM_DIR="${WORKSPACE}/${NAME}-community-${VERSION}"
26 WEBDOCS_DIR="${WORKSPACE}/${NAME}-${VERSION}-website-docs"
27
28
29@@ -150,7 +146,6 @@
30 cp -r "${BRANCH_DIR}" "${OPEN_DIR}"
31 rm -r "${OPEN_DIR}"/{doc,examples/scripts,src,pom.xml}
32 mkdir "${OPEN_DIR}/doc"
33-cp -r "${OPEN_DIR}" "${COMM_DIR}"
34
35
36 echo "Building open edition and docs"
37@@ -167,44 +162,9 @@
38 mv "${BRANCH_DIR}"/target/*.jar "${OPEN_DIR}/${NAME}-${VERSION}.jar"
39
40
41-echo "Downloading and formating community license"
42-cd "${WORKSPACE}"
43-curl -s "${COMM_LICENSE_URL}" |
44- # Pull out the content between the two regexes, excluding the matches themselves
45- awk '/<div class="content">/ {flag=1;next} /<\/div>/ {flag=0} flag {print}' |
46- # Replace paragraph end marks for the first 4 paragraphs with newlines
47- awk '{if(NR < 8) sub(/<\/p>/, "\n"); print }' |
48- # Delete all: <p>, </p>, </div>, and &nbsp; occurrences
49- sed -e 's/<p>//g' -e 's/<\/p>//g' -e 's/<\/div>//g' -e 's/&nbsp;//g' |
50- # Replace unicode quotes with simple ones
51- sed -e 's/[“”]/"/g' -e "s/’/'/g" |
52- # Un-link email address(es)
53- sed -e 's/<a href=".*">//g' -e 's/<\/a>//g' |
54- # Collapse repeated spaces
55- tr -s ' ' |
56- # Wrap nicely at 80 characters
57- fold -s \
58- > "${COMM_DIR}/LICENSE.txt"
59-
60-
61-echo "Building community edition and docs"
62-cd "${BRANCH_DIR}"
63-cp "${COMM_DIR}/LICENSE.txt" .
64-awk 'BEGIN { FS="\n"; RS="";}\
65- {sub(/[ ]*<licenses>.*<\/licenses>/,\
66- "<licenses>\n<license>\n<name>Proprietary</name>\n<url>http://www.akiban.com/akiban-persistit-community-license-agreement</url>\n<distribution>manual</distribution>\n</license>\n</licenses>\n"); print;}'\
67- pom.xml > pom_comm.xml
68-maven_build "${REVNO}" "-f pom_comm.xml"
69-docs_build "../apidocs"
70-cp -r target/{site/apidocs,sphinx/html} "${COMM_DIR}/doc"
71-cp target/sphinx/text/ReleaseNotes "${COMM_DIR}/ReleaseNotes.txt"
72-rm target/*-sources.jar
73-mv target/*.jar "${COMM_DIR}/${NAME}-${VERSION}.jar"
74-
75-
76 echo "Creating zip and tar.gz files"
77 cd "${WORKSPACE}"
78-for DIR in "${OPEN_DIR}" "${SOURCE_DIR}" "${COMM_DIR}"; do
79+for DIR in "${OPEN_DIR}" "${SOURCE_DIR}"; do
80 BASE_DIR="`basename ${DIR}`"
81 zip -r "${DIR}.zip" "$BASE_DIR" >/dev/null
82 tar czf "${DIR}.tar.gz" "${BASE_DIR}"
83
84=== modified file 'doc/build/build-doc.sh'
85--- doc/build/build-doc.sh 2012-08-02 14:45:58 +0000
86+++ doc/build/build-doc.sh 2013-01-14 17:13:21 +0000
87@@ -31,7 +31,7 @@
88 #
89
90 APIDOC_INDEX="../../target/site/apidocs/index-all.html"
91-APIDOC_URL=${APIDOC_URL:-"http://www.akiban.com/sites/all/libraries/persistit-api"}
92+APIDOC_URL=${APIDOC_URL:-"http://akiban.github.com/persistit/javadoc"}
93 DOCPREP_CLASS="SphinxDocPrep"
94 DOCPREP_CLASSPATH="../../target/sphinx/classes:../../target/classes"
95

Subscribers

People subscribed via source and target branches