Thread: [Hw4mdl-svn] SF.net SVN: hw4mdl: [104] trunk/moodle/bin/package.sh
Brought to you by:
jhlinder,
trollinger
From: <hu...@us...> - 2006-11-29 12:35:21
|
Revision: 104 http://svn.sourceforge.net/hw4mdl/?rev=104&view=rev Author: hugues Date: 2006-11-29 04:35:15 -0800 (Wed, 29 Nov 2006) Log Message: ----------- Fixed text files not at the right place Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2006-11-29 12:32:21 UTC (rev 103) +++ trunk/moodle/bin/package.sh 2006-11-29 12:35:15 UTC (rev 104) @@ -19,11 +19,12 @@ SVN_URL=${SVN_URL_TRUNK} - BASEDIR=`pwd` - SVN_EXPORT_DIR=${BASEDIR}/export - BUILD_DIR=${BASEDIR}/build +BASEDIR=`pwd` +SVN_EXPORT_DIR=${BASEDIR}/export +BUILD_DIR=${BASEDIR}/build + function initdir() { echo -n "Creating build directories..." @@ -89,7 +90,7 @@ ${SVN_EXPORT_DIR}/moodle/README.txt\ ${SVN_EXPORT_DIR}/moodle/LICENSE.txt\ ${SVN_EXPORT_DIR}/moodle/INSTALL.txt\ - ${BUILD_DIR} + ${BUILD_DIR}/${target} echo "ok!" } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2006-12-26 11:15:58
|
Revision: 126 http://svn.sourceforge.net/hw4mdl/?rev=126&view=rev Author: hugues Date: 2006-12-26 03:15:55 -0800 (Tue, 26 Dec 2006) Log Message: ----------- http://u.horizonwimba.com/bugzilla/show_bug.cgi?id=9983 I've updated the way we package the integration to reflect the requested changes. Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2006-12-22 15:16:30 UTC (rev 125) +++ trunk/moodle/bin/package.sh 2006-12-26 11:15:55 UTC (rev 126) @@ -2,12 +2,17 @@ DEBUG=1 +VERSION=0.9 + TARGET=liveclassroom #TARGET=liveclassroom, voicetool, pronto + +PACKAGE=WimbaMoodle-${VERSION} + SVN_USER_PARAM= SVN_PASS_PARAM= -SVN_TAG_PARAM=liveclassroom_0.9 +SVN_TAG_PARAM=${TARGET}_${VERSION} SVN_URL_BASE=https://svn.sourceforge.net/svnroot/hw4mdl SVN_URL_TRUNK=${SVN_URL_BASE}/trunk @@ -27,6 +32,9 @@ function initdir() { + + package=$1; + echo -n "Creating build directories..." if [ -d ${SVN_EXPORT_DIR} ]; then rm -rf ${SVN_EXPORT_DIR} @@ -35,8 +43,8 @@ rm -rf ${BUILD_DIR} fi - mkdir -p ${BUILD_DIR}/${TARGET}/mod - mkdir -p ${BUILD_DIR}/${TARGET}/lang + mkdir -p ${BUILD_DIR}/${package}/mod + mkdir -p ${BUILD_DIR}/${package}/lang echo "ok!" } @@ -73,12 +81,13 @@ { target=$1; + package=$2; echo -n "Building distribution for ${target}..." - cp -r ${SVN_EXPORT_DIR}/moodle/mod/${target} ${BUILD_DIR}/${target}/mod/ + cp -r ${SVN_EXPORT_DIR}/moodle/mod/${target} ${BUILD_DIR}/${package}/mod/ LANG_EXPORT_DIR="${SVN_EXPORT_DIR}/moodle/lang" - LANG_BUILD_DIR="${BUILD_DIR}/${target}/lang" + LANG_BUILD_DIR="${BUILD_DIR}/${package}/lang" for afile in `find ${LANG_EXPORT_DIR} -name "${target}.php"` ; do src=`dirname ${afile}` dst=${src/#${LANG_EXPORT_DIR}/${LANG_BUILD_DIR}} @@ -90,23 +99,23 @@ ${SVN_EXPORT_DIR}/moodle/README.txt\ ${SVN_EXPORT_DIR}/moodle/LICENSE.txt\ ${SVN_EXPORT_DIR}/moodle/INSTALL.txt\ - ${BUILD_DIR}/${target} + ${BUILD_DIR}/${package} echo "ok!" } function pack () { - target=$1; + package=$1 - echo -n "Packing ${target}..." - tar czf ${target}-`date +"%d-%m-%Y"`.tar.gz -C ${BUILD_DIR} ${target} + echo -n "Packing ${package}..." + tar czf ${package}-`date +"%d-%m-%Y"`.tar.gz -C ${BUILD_DIR} ${package} echo "ok!" } -initdir; +initdir $PACKAGE; export_files; -prepare $TARGET; -pack $TARGET; +prepare $TARGET $PACKAGE; +pack $PACKAGE; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2006-12-27 12:38:12
|
Revision: 131 http://svn.sourceforge.net/hw4mdl/?rev=131&view=rev Author: hugues Date: 2006-12-27 04:38:10 -0800 (Wed, 27 Dec 2006) Log Message: ----------- updated build script to perform cleanup at the end of the process Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2006-12-27 11:01:38 UTC (rev 130) +++ trunk/moodle/bin/package.sh 2006-12-27 12:38:10 UTC (rev 131) @@ -2,7 +2,7 @@ DEBUG=1 -VERSION=0.9 +VERSION=0.9-SNAPSHOT TARGET=liveclassroom #TARGET=liveclassroom, voicetool, pronto @@ -113,9 +113,17 @@ echo "ok!" } +cleanup () +{ + echo -n "Cleaning up..." + rm -rf ${SVN_EXPORT_DIR} + rm -rf ${BUILD_DIR} + echo "ok!" +} initdir $PACKAGE; export_files; prepare $TARGET $PACKAGE; pack $PACKAGE; +cleanup; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2006-12-27 12:43:16
|
Revision: 132 http://svn.sourceforge.net/hw4mdl/?rev=132&view=rev Author: hugues Date: 2006-12-27 04:43:14 -0800 (Wed, 27 Dec 2006) Log Message: ----------- updated build script to put artifact in a target folder Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2006-12-27 12:38:10 UTC (rev 131) +++ trunk/moodle/bin/package.sh 2006-12-27 12:43:14 UTC (rev 132) @@ -27,9 +27,9 @@ BASEDIR=`pwd` SVN_EXPORT_DIR=${BASEDIR}/export BUILD_DIR=${BASEDIR}/build +ARTIFACT_DIR=${BASEDIR}/target - function initdir() { @@ -45,6 +45,9 @@ mkdir -p ${BUILD_DIR}/${package}/mod mkdir -p ${BUILD_DIR}/${package}/lang + + mkdir -p ${ARTIFACT_DIR} + echo "ok!" } @@ -107,9 +110,10 @@ function pack () { package=$1 + artifact_dir=$2 echo -n "Packing ${package}..." - tar czf ${package}-`date +"%d-%m-%Y"`.tar.gz -C ${BUILD_DIR} ${package} + tar czf ${artifact_dir}/${package}-`date +"%d-%m-%Y"`.tar.gz -C ${BUILD_DIR} ${package} echo "ok!" } @@ -125,5 +129,5 @@ initdir $PACKAGE; export_files; prepare $TARGET $PACKAGE; -pack $PACKAGE; +pack $PACKAGE $ARTIFACT_DIR; cleanup; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2007-01-03 17:07:04
|
Revision: 158 http://svn.sourceforge.net/hw4mdl/?rev=158&view=rev Author: hugues Date: 2007-01-03 09:07:00 -0800 (Wed, 03 Jan 2007) Log Message: ----------- http://u.horizonwimba.com/bugzilla/show_bug.cgi?id=9983 - Inserts the revision number in the package name Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2007-01-03 16:54:33 UTC (rev 157) +++ trunk/moodle/bin/package.sh 2007-01-03 17:07:00 UTC (rev 158) @@ -2,8 +2,13 @@ DEBUG=1 -VERSION=0.9-SNAPSHOT +SVN_URL_BASE=https://svn.sourceforge.net/svnroot/hw4mdl +SVN_URL_TRUNK=${SVN_URL_BASE}/trunk +SVN_URL_TAG=${SVN_URL_BASE}/tags/${SVN_TAG_PARAM} + +VERSION=0.9-SNAPSHOT_rev`svn info ${SVN_URL_BASE} | awk '/Revision/ { print $2;}'` + TARGET=liveclassroom #TARGET=liveclassroom, voicetool, pronto @@ -14,9 +19,6 @@ SVN_PASS_PARAM= SVN_TAG_PARAM=${TARGET}_${VERSION} -SVN_URL_BASE=https://svn.sourceforge.net/svnroot/hw4mdl -SVN_URL_TRUNK=${SVN_URL_BASE}/trunk -SVN_URL_TAG=${SVN_URL_BASE}/tags/${SVN_TAG_PARAM} if [ -n "$DEBUG" ]; then echo "Using SVN_TRUNK" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2007-01-10 15:37:06
|
Revision: 176 http://svn.sourceforge.net/hw4mdl/?rev=176&view=rev Author: hugues Date: 2007-01-10 07:36:59 -0800 (Wed, 10 Jan 2007) Log Message: ----------- Fixing the revision number Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2007-01-10 11:28:38 UTC (rev 175) +++ trunk/moodle/bin/package.sh 2007-01-10 15:36:59 UTC (rev 176) @@ -7,7 +7,7 @@ SVN_URL_TRUNK=${SVN_URL_BASE}/trunk SVN_URL_TAG=${SVN_URL_BASE}/tags/${SVN_TAG_PARAM} -VERSION=0.9-SNAPSHOT_rev`svn info ${SVN_URL_BASE} | awk '/Revision/ { print $2;}'` +VERSION=0.9-SNAPSHOT_`svn -q -r HEAD log ${SVN_URL_BASE} | awk '(NR==2) { print $1;}'` TARGET=liveclassroom #TARGET=liveclassroom, voicetool, pronto This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2007-01-10 17:01:40
|
Revision: 177 http://svn.sourceforge.net/hw4mdl/?rev=177&view=rev Author: hugues Date: 2007-01-10 09:01:35 -0800 (Wed, 10 Jan 2007) Log Message: ----------- http://u.horizonwimba.com/bugzilla/show_bug.cgi?id=10077 Included the help files in the package Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2007-01-10 15:36:59 UTC (rev 176) +++ trunk/moodle/bin/package.sh 2007-01-10 17:01:35 UTC (rev 177) @@ -93,6 +93,8 @@ LANG_EXPORT_DIR="${SVN_EXPORT_DIR}/moodle/lang" LANG_BUILD_DIR="${BUILD_DIR}/${package}/lang" + + # Copy the appropriate lang file for afile in `find ${LANG_EXPORT_DIR} -name "${target}.php"` ; do src=`dirname ${afile}` dst=${src/#${LANG_EXPORT_DIR}/${LANG_BUILD_DIR}} @@ -100,6 +102,16 @@ cp -r ${afile} ${dst} done + # Copy the appropriate help files + for afile in `find ${LANG_EXPORT_DIR/help} -name "${target}"` ; do + src=`dirname ${afile}` + dst=${src/#${LANG_EXPORT_DIR}/${LANG_BUILD_DIR}} + mkdir -p ${dst} + cp -r ${afile} ${dst} + done + + + cp \ ${SVN_EXPORT_DIR}/moodle/README.txt\ ${SVN_EXPORT_DIR}/moodle/LICENSE.txt\ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2007-01-17 10:01:31
|
Revision: 183 http://svn.sourceforge.net/hw4mdl/?rev=183&view=rev Author: hugues Date: 2007-01-17 02:01:27 -0800 (Wed, 17 Jan 2007) Log Message: ----------- Preparing tag liveclassroom 0.9 Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2007-01-16 20:33:35 UTC (rev 182) +++ trunk/moodle/bin/package.sh 2007-01-17 10:01:27 UTC (rev 183) @@ -1,30 +1,42 @@ #!/bin/bash DEBUG=1 +#DEV=1 - SVN_URL_BASE=https://svn.sourceforge.net/svnroot/hw4mdl -SVN_URL_TRUNK=${SVN_URL_BASE}/trunk -SVN_URL_TAG=${SVN_URL_BASE}/tags/${SVN_TAG_PARAM} -VERSION=0.9-SNAPSHOT_`svn -q -r HEAD log ${SVN_URL_BASE} | awk '(NR==2) { print $1;}'` +VERSION=0.9 +REPO_VERSION=`svn -q -r HEAD log ${SVN_URL_BASE} | awk '(NR==2) { print $1;}'` +if [ -n "$DEV" ]; then + VERSION=$VERSION_$REPO_VERSION +fi + +PACKAGE=WimbaMoodle-${VERSION} + TARGET=liveclassroom #TARGET=liveclassroom, voicetool, pronto - -PACKAGE=WimbaMoodle-${VERSION} - SVN_USER_PARAM= SVN_PASS_PARAM= SVN_TAG_PARAM=${TARGET}_${VERSION} +SVN_URL_TRUNK=${SVN_URL_BASE}/trunk +SVN_URL_TAG=${SVN_URL_BASE}/tags/${SVN_TAG_PARAM} + + +if [ -n "$DEV" ]; then + SVN_URL=${SVN_URL_TRUNK} +else + SVN_URL=${SVN_URL_TAG} +fi + if [ -n "$DEBUG" ]; then - echo "Using SVN_TRUNK" + echo "Using SVN url: "${SVN_URL} fi -SVN_URL=${SVN_URL_TRUNK} +exit -1; BASEDIR=`pwd` SVN_EXPORT_DIR=${BASEDIR}/export This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2007-01-17 10:03:15
|
Revision: 184 http://svn.sourceforge.net/hw4mdl/?rev=184&view=rev Author: hugues Date: 2007-01-17 02:03:09 -0800 (Wed, 17 Jan 2007) Log Message: ----------- Preparing for next release: 1.0 Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2007-01-17 10:01:27 UTC (rev 183) +++ trunk/moodle/bin/package.sh 2007-01-17 10:03:09 UTC (rev 184) @@ -1,11 +1,11 @@ #!/bin/bash DEBUG=1 -#DEV=1 +DEV=1 SVN_URL_BASE=https://svn.sourceforge.net/svnroot/hw4mdl -VERSION=0.9 +VERSION=1.0 REPO_VERSION=`svn -q -r HEAD log ${SVN_URL_BASE} | awk '(NR==2) { print $1;}'` if [ -n "$DEV" ]; then This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2007-01-17 20:56:39
|
Revision: 187 http://svn.sourceforge.net/hw4mdl/?rev=187&view=rev Author: hugues Date: 2007-01-17 12:56:35 -0800 (Wed, 17 Jan 2007) Log Message: ----------- Updating the package script with new version umber and removing the exit() Modified Paths: -------------- trunk/moodle/bin/package.sh Modified: trunk/moodle/bin/package.sh =================================================================== --- trunk/moodle/bin/package.sh 2007-01-17 10:28:17 UTC (rev 186) +++ trunk/moodle/bin/package.sh 2007-01-17 20:56:35 UTC (rev 187) @@ -5,7 +5,7 @@ SVN_URL_BASE=https://svn.sourceforge.net/svnroot/hw4mdl -VERSION=1.0 +VERSION=1.0-SNAPSHOT REPO_VERSION=`svn -q -r HEAD log ${SVN_URL_BASE} | awk '(NR==2) { print $1;}'` if [ -n "$DEV" ]; then @@ -24,8 +24,6 @@ SVN_URL_TRUNK=${SVN_URL_BASE}/trunk SVN_URL_TAG=${SVN_URL_BASE}/tags/${SVN_TAG_PARAM} - - if [ -n "$DEV" ]; then SVN_URL=${SVN_URL_TRUNK} else @@ -36,8 +34,6 @@ echo "Using SVN url: "${SVN_URL} fi -exit -1; - BASEDIR=`pwd` SVN_EXPORT_DIR=${BASEDIR}/export BUILD_DIR=${BASEDIR}/build This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |