Skip to content

Commit

Permalink
[master][packaging] Change build.sh to make it easier to use when bui…
Browse files Browse the repository at this point in the history
…lding packages on jenkins

 - Pass the package versions in as arguments
 - Don't perform the step of copying the .deb files in to the repository
  • Loading branch information
Ian Murray committed Jan 11, 2012
1 parent dfdc349 commit 9c6cfa4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.sh
Expand Up @@ -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
Expand Down Expand Up @@ -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."

0 comments on commit 9c6cfa4

Please sign in to comment.