~flexiondotorg/+junk/snap-spotify

« back to all changes in this revision

Viewing changes to monitor.sh

  • Committer: Martin Wimpress
  • Date: 2017-05-26 11:50:08 UTC
  • Revision ID: martin.wimpress@canonical.com-20170526115008-pxyqx2ncttcvs235
amd64 version bumped to 1.0.55.487.g256699aa-16

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#     snap install lp-build-snap
6
6
 
7
7
LPNAME=flexiondotorg
8
 
SNAP=gitter-desktop
 
8
SNAP=spotify-client-test
9
9
 
10
10
if [ -f OLD_VERSION ]; then
11
11
    source OLD_VERSION
23
23
    LPARCH=$(basename ${DEB} .deb | cut -d'_' -f3)
24
24
    VERSION=$(echo ${DEB} | cut -d'_' -f2)
25
25
    if [ "${OLD_VERSION}" != "${VERSION}" ] || [ ${REBUILD} -eq 1 ]; then
26
 
        echo "Detected ${VERSION}, which is different from ${OLD_VERSION}!"
 
26
        echo "Detected ${LPARCH} ${VERSION}, which is different from ${OLD_VERSION}!"
27
27
        sed "s/VVV/${VERSION}/" snap/snapcraft.yaml.in > snap/snapcraft.yaml.new
28
28
        sed -i "s|UUU|${DEB_URL}|" snap/snapcraft.yaml.new
29
29
        REBUILD=1
34
34
    if [ ${REBUILD} -eq 1 ]; then
35
35
        mv snap/snapcraft.yaml.new snap/snapcraft.yaml
36
36
        echo "OLD_VERSION=${VERSION}" > OLD_VERSION
 
37
        echo "${LPARCH} version bumped to ${VERSION}"
37
38
        bzr commit -m "${LPARCH} version bumped to ${VERSION}"
38
39
        bzr push :parent
39
40
        lp-build-snap --lpname ${LPNAME} --arch ${LPARCH} ${SNAP}