Skip to content

Commit

Permalink
#84 update release script, removing unused vars and fixing what .deb …
Browse files Browse the repository at this point in the history
…packages are actually added to the repo
  • Loading branch information
tobyweston committed Sep 1, 2019
1 parent c6c75c7 commit ce5efe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions release_debian_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ if ! git diff-index --quiet HEAD --; then
fi
if [ -z "$1" ]
then
echo "Release the robotooling debian repository"
echo ""
echo "Usage: ./release_debian_package <pgp passphrase>"
exit -1
fi

RELEASE_FOLDER=target/release-debian-package
ROOT_FOLDER=$(pwd)
TARGET_FOLDER=debian
TARGET_DISTRIBUTION=stable
APTLY_PUBLISH=debian/aptly/public

# build man pages (prerequisite `gem install ronn` and `gem install rdiscount`)
Expand All @@ -32,7 +32,7 @@ sbt clean debian:packageBin
# update debian repository (prerequisite required `brew install aptly`)
# this assumes the repository has previously been created (`aptly create`)
echo "Adding package to repository..."
aptly -config=debian/.aptly.conf repo add badrobot-releases ${TARGET_FOLDER}
aptly -config=debian/.aptly.conf repo add badrobot-releases ${ROOT_FOLDER}/target/temperature-machine_*.deb

# update aptly database in git
git add debian/aptly/db
Expand All @@ -58,7 +58,7 @@ git checkout gh-pages
echo "Copy repository into robotooling gh-pages..."
git rm -r debian
mkdir -p debian
cp -R ../debian/aptly/public/* debian
cp -R ${ROOT_FOLDER}/debian/aptly/public/* debian
git add debian
git commit -m "updating debian repository (created by aptly)"

Expand Down

0 comments on commit ce5efe8

Please sign in to comment.