From 9c6cfa4b81e6502a36863ed15cf9a3dc45a10d2f Mon Sep 17 00:00:00 2001 From: Ian Murray Date: Wed, 11 Jan 2012 15:58:31 +0000 Subject: [PATCH] [master][packaging] Change build.sh to make it easier to use when building packages on jenkins - Pass the package versions in as arguments - Don't perform the step of copying the .deb files in to the repository --- build.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index fd43e94629d..51da5ded36a 100755 --- a/build.sh +++ b/build.sh @@ -26,8 +26,8 @@ # sudo apt-get install buildkit-deb buildkit-apt-repo -CKAN_PACKAGE_VERSION=01 -DEPS_PACKAGE_VERSION=01 +CKAN_PACKAGE_VERSION=$1 +DEPS_PACKAGE_VERSION=$2 # If you don't run this command from the CKAN source directory, specify the # path to CKAN here CKAN_PATH=$PWD @@ -68,7 +68,7 @@ cp ${CKAN_PATH}/build/buildkit/env/build/licenses/dist/buildkit/*.deb ${CKAN_PAT echo "done." # Add the .debs to the repository and the export the latest files for upload -echo "Adding the packages to the $REPO_NAME repo using files in ${CKAN_PATH}/dist/buildkit/*.deb ..." -sudo -u buildkit buildkit repo remove -a $REPO_NAME dummy_arg -sudo -u buildkit buildkit repo add $REPO_NAME ${CKAN_PATH}/dist/buildkit/*.deb -echo "done." +# echo "Adding the packages to the $REPO_NAME repo using files in ${CKAN_PATH}/dist/buildkit/*.deb ..." +# sudo -u buildkit buildkit repo remove -a $REPO_NAME dummy_arg +# sudo -u buildkit buildkit repo add $REPO_NAME ${CKAN_PATH}/dist/buildkit/*.deb +# echo "done."