aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-02-01 22:22:55 +0100
committerKarel Kočí <cynerd@email.cz>2018-02-01 22:22:55 +0100
commit453bf5553b1bdbc74640784a3fc9ee8f0835481e (patch)
treeb69764d946e276d91f4a399e0642c7202bbac15d /utils
parentc6bed5cb193a7d42834cedee12fe6ee559f17620 (diff)
downloadturris-myrepo-453bf5553b1bdbc74640784a3fc9ee8f0835481e.tar.gz
turris-myrepo-453bf5553b1bdbc74640784a3fc9ee8f0835481e.tar.bz2
turris-myrepo-453bf5553b1bdbc74640784a3fc9ee8f0835481e.zip
Implement and use universal pkgauto instead of updater-ng-auto
Diffstat (limited to 'utils')
-rwxr-xr-xutils/updater-ng-auto.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/utils/updater-ng-auto.sh b/utils/updater-ng-auto.sh
deleted file mode 100755
index d9157a0..0000000
--- a/utils/updater-ng-auto.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-# This script check if updater doesn't contain new commit and if so it bumps
-# automatically.
-
-COMMIT=HEAD
-UPDATER_REPO=https://kkoci@gitlab.labs.nic.cz/turris/updater.git
-UPDATER_REPO_PATH=/tmp/myrepo_updater_repo
-
-if [ ! -f $1/updater-ng-auto/Makefile ]; then
- # Skip this when we don't have updater-ng-auto
- exit
-fi
-
-# Update updater git repo
-GIT_ARGS="--git-dir="$UPDATER_REPO_PATH" --bare"
-if [ ! -d $UPDATER_REPO_PATH ]; then
- git clone --bare $UPDATER_REPO $UPDATER_REPO_PATH
-else
- git $GIT_ARGS fetch $UPDATER_REPO master:master
-fi
-# Get info
-HASH="$(git $GIT_ARGS rev-parse $COMMIT)"
-VERSION="$(git $GIT_ARGS describe --abbrev=0 --tags $COMMIT | sed 's/^v//')"
-RELEASE="$(($(git $GIT_ARGS rev-list --count v$VERSION..$COMMIT) + 1))"
-VERSION="$VERSION.99999"
-
-# Now replace stuff in Makefile
-sed -i "s/^PKG_VERSION:=.*/PKG_VERSION:=$VERSION/;s/^PKG_RELEASE:=.*/PKG_RELEASE:=$RELEASE/;s/^PKG_SOURCE_VERSION:=.*/PKG_SOURCE_VERSION:=$HASH/" $1/updater-ng-auto/Makefile
-
-echo -e "\e[1;35mUpdater-ng package has now version: $VERSION-$RELEASE\e[0m"