From b64e027c3aee0ceb210296fe32ff215a2734dd4c Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Mon, 29 Mar 2010 00:10:10 +0000 Subject: [PATCH] Added files used in creating RCs. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@928539 13f79535-47bb-0310-9956-ffa450edef68 --- math-RC.sh | 77 ++++++++++++++++++++++++++++++++ math-pre-RC.sh | 30 +++++++++++++ siteMods/pom.xml | 51 ++++++++++++++++++++++ siteMods/site.css | 109 ++++++++++++++++++++++++++++++++++++++++++++++ siteMods/site.xml | 51 ++++++++++++++++++++++ 5 files changed, 318 insertions(+) create mode 100755 math-RC.sh create mode 100755 math-pre-RC.sh create mode 100644 siteMods/pom.xml create mode 100644 siteMods/site.css create mode 100644 siteMods/site.xml diff --git a/math-RC.sh b/math-RC.sh new file mode 100755 index 000000000..55b246581 --- /dev/null +++ b/math-RC.sh @@ -0,0 +1,77 @@ +#!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ----------------------------------------------------------------------------- +# +# Shell script to create commons math RCs. +# This script should be run from a fresh checkout of the RC tag. +# +# $Revision$ $Date$ +# ----------------------------------------------------------------------------- +# Set script variables +version=2.1 +repo_path=~/.m2/repository/org/apache/commons/commons-math/${version} +site_mods_path=./siteMods +release_path=~/math-release +# +# Delete any locally installed artifacts from previous runs +rm -rf ${repo_path} +echo "Cleaned maven repo." +rm -rf ${release_path} +echo "Cleaned local release directory" +mvn clean +# +# Chicanery to get only the userguide in the site +cp ${site_mods_path}/pom.xml . +cp ${site_mods_path}/site.xml src/site/ +mvn site +cp ${site_mods_path}/site.css target/site/css +rm target/site/* +rm -rf target/site/style +cp -r target/apidocs target/site +svn revert src/site/site.xml +svn revert pom.xml +# +# Generate the release artifacts and install them locally +mvn assembly:assembly +mvn -Prc -DcreateChecksum=true install +# +# Copy the zips/tarballs and release notes to release directory +mkdir ${release_path} +cp ${repo_path}/*.zip ${release_path} +cp ${repo_path}/*.zip.* ${release_path} +cp ${repo_path}/*.gz ${release_path} +cp ${repo_path}/*.gz.* ${release_path} +cp RELEASE-NOTES.txt ${release_path} +# +# Copy site +cp -R target/site ${release_path} +# +# Copy maven artifacts +cp -R ${repo_path} ${release_path} +# +# Rename maven, site directories +mv ${release_path}/${version} ${release_path}/maven +mv ${release_path}/site ${release_path}/docs +echo "Artifacts copied." +# +# Delete tars/zips from maven subdirectory +rm ${release_path}/maven/*.zip +rm ${release_path}/maven/*.zip* +rm ${release_path}/maven/*.gz +rm ${release_path}/maven/*.gz* +echo "Release candidate complete" + diff --git a/math-pre-RC.sh b/math-pre-RC.sh new file mode 100755 index 000000000..2d505463f --- /dev/null +++ b/math-pre-RC.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ----------------------------------------------------------------------------- +# +# Shell script to update download page and release notes prior +# to preparing a commons math release candidate. +# +# Note: RELEASE-NOTES.txt may need a little reformatting prior +# to checkin. Both RELEASE-NOTES.txt and the generated download +# page need to be checked in after review. +# +# $Revision$ $Date$ +# ---------------------------------------------------------------------------- +mvn changes:announcement-generate +mv target/announcement/math-release-notes.vm RELEASE-NOTES.txt +mvn commons:download-page diff --git a/siteMods/pom.xml b/siteMods/pom.xml new file mode 100644 index 000000000..f9c3f80a8 --- /dev/null +++ b/siteMods/pom.xml @@ -0,0 +1,51 @@ + + + + + 4.0.0 + org.apache.commons + commons-math + 2.1 + Commons Math User Guide + 2003 + User Guide + http://commons.apache.org/math/ + + jira + http://issues.apache.org/jira/browse/MATH + + + scm:svn:http://svn.apache.org/repos/asf/commons/proper/math/trunk + scm:svn:https://svn.apache.org/repos/asf/commons/proper/math/trunk + http://svn.apache.org/viewvc/commons/proper/math/trunk + + + math + 2.0 + UTF-8 + UTF-8 + + + + + + + + diff --git a/siteMods/site.css b/siteMods/site.css new file mode 100644 index 000000000..63ebc61a5 --- /dev/null +++ b/siteMods/site.css @@ -0,0 +1,109 @@ +body { + color: #000; + background-color: #fff; + font-size: 13px; +} + +p { + margin-left: 4px; + margin-top: 8px; + margin-bottom: 4px; +} +ul, ol { + margin-top: 4px; + margin-bottom: 4px; +} + +h2 { + color: #fff; + border: none; + margin-top: 8px; + margin-bottom: 4px; + padding: 4px 4px 4px 6px; + background-color: #036; + font-weight: 900; + font-size: 13px; + background-image: url(../images/nw_maj_rond.gif); + background-repeat: no-repeat; +} + +h3 { + color: #fff; + background-color: #888; + margin-top: 12px; + margin-bottom: 4px; + padding: 4px 4px 4px 6px; + border: none; + font-weight: 900; + font-size: 13px; + background-image: url(../images/nw_maj_rond.gif); + background-repeat: no-repeat; +} + +div#bodyColumn { + margin-top: 0px; + margin-left: 158px; +} + +div#bodyColumn a { + text-decoration: underline; +} +div#bodyColumn a:link { + color: #00f; +} +div#bodyColumn a:visited { + color: #00f; +} +a:active, a:hover { + color: #f30 !important; +} + +div.source { + background-color: #eee; + color: #000; + margin-right: 0px; + margin-left: 4px; + margin-top: 1em; +} + +div#leftColumn { + color: #000; + background-color: #eee; + margin-left: 0px; + margin-top: 0px; + border-right: 1px solid #aaa; + border-bottom: 1px solid #aaa; + border-top: none; + border-left: none; +} + +#navcolumn { + margin-top: 0px; + + color: #000; + border: none; + padding: 6px 4px 0 8px; +} + +#navcolumn li { + padding-left: 8px; +} + +#navcolumn h5 { + padding-top: 3px; +} + +#banner, #banner td { + background-color: #fff; + color: #000; +} + +#banner td { + height: 100%; + vertical-align: middle; +} + +#menuCommons a.externalLink, #menuCommons a.externalLink:link, #menuCommons a.externalLink:visited, #menuCommons a.externalLink:active, #menuCommons a.externalLink:hover { + background-image: none; + padding-right: 0px; +} diff --git a/siteMods/site.xml b/siteMods/site.xml new file mode 100644 index 000000000..82ecd63d6 --- /dev/null +++ b/siteMods/site.xml @@ -0,0 +1,51 @@ + + + + + + org.apache.commons + commons-skin + 2 + + + + + + + + + + + + + + + + + + + + + + + +