Repository: incubator-unomi Updated Branches: refs/heads/master dd225fbf7 -> ab958be9e
UNOMI-44 Script to upload site changes doesn't work These modifications add checks on the generate-site-and-upload shell script to make sure that the required arguments are present and also updates the building instructions to document usage of this script. Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/ab958be9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/ab958be9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/ab958be9 Branch: refs/heads/master Commit: ab958be9eaf74fde004678b0219e4da00b176cf8 Parents: dd225fb Author: Serge Huber <[email protected]> Authored: Mon Jul 18 09:17:13 2016 +0200 Committer: Serge Huber <[email protected]> Committed: Mon Jul 18 09:17:13 2016 +0200 ---------------------------------------------------------------------- BUILDING | 18 ++++++++++++++++++ generate-site-and-upload.sh | 7 ++++++- 2 files changed, 24 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/ab958be9/BUILDING ---------------------------------------------------------------------- diff --git a/BUILDING b/BUILDING index 2acbbda..582b515 100644 --- a/BUILDING +++ b/BUILDING @@ -52,3 +52,21 @@ Building 3) The distributions will be available under "package/target" directory. +Updating the website +-------------------- + +We provide two scripts to generate the website and upload the modifications +to the live SVN repository. To generate the website and check if everything is in +place simply launch: + + ./generate-site.sh + +The generated site will then be in the target/site directory + +Once it is ready to be published to the live site, simply use the following +command: + + ./generate-site-and-upload.sh SVNusername SVNpassword + +Where the required username and password have the proper credentials for the SVN +Apache repository. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/ab958be9/generate-site-and-upload.sh ---------------------------------------------------------------------- diff --git a/generate-site-and-upload.sh b/generate-site-and-upload.sh index 05ddd1a..6c364bf 100755 --- a/generate-site-and-upload.sh +++ b/generate-site-and-upload.sh @@ -17,11 +17,16 @@ # limitations under the License. # ################################################################################ +if [ $# -ne 2 ] + then + echo "Illegal number of arguments supplied. Syntax should be generate-site-and-upload.sh SVNusername SVNpassword" + exit 1 +fi echo Generating site... mvn clean install site site:stage -P integration-tests,performance-tests cd rest mvn package cd - echo Committing site to Apache SVN... -mvn scm-publish:publish-scm +mvn scm-publish:publish-scm -Dusername=$1 -Dpassword=$2 echo Site generation and upload completed. \ No newline at end of file
