Commit ad4d805e authored by Julian Wiesener's avatar Julian Wiesener

added snapshot script

parent b889f010
#!/bin/bash
if [ -z "${DEBRELEASE}" ]; then
DEBRELEASE=$1
fi
if [ -z "${VERSION}" ]; then
VERSION=$2
fi
if [ -z "${DEBRELEASE}" ]; then
echo "Usage: $0 DEBRELEASE VERSION"
echo "Require DEBRELEASE"
exit 1
fi
if [ -z "${VERSION}" ]; then
echo "Usage: $0 DEBRELEASE VERSION"
echo "Require VERSION"
exit 1
fi
aptly repo add ${DEBRELEASE} ~/ino/build/archive/${VERSION}/${DEBRELEASE}
aptly publish update ${DEBRELEASE}
aptly snapshot create ${VERSION}+${DEBRELEASE} from repo ${DEBRELEASE}
aptly publish -distribution ${DEBRELEASE} snapshot ${VERSION}+${DEBRELEASE} ${VERSION}
aptly publish drop ${DEBRELEASE} latest
aptly snapshot drop latest+${DEBRELEASE}
aptly snapshot merge latest+${DEBRELEASE} ${VERSION}+${DEBRELEASE}
aptly publish -distribution ${DEBRELEASE} snapshot latest+${DEBRELEASE} latest
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment