aboutsummaryrefslogtreecommitdiff
path: root/utils/opkg-trans-master.sh
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-09-13 15:33:26 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-09-13 15:33:26 +0200
commit74799790484128bc2de80a620b67aa584c204b6e (patch)
treecb5faee73240ca43a250949605648bec7817f3ba /utils/opkg-trans-master.sh
parentec7dbd0c3d7bff453883e7377e6ca974479aceb9 (diff)
downloadturris-myrepo-74799790484128bc2de80a620b67aa584c204b6e.tar.gz
turris-myrepo-74799790484128bc2de80a620b67aa584c204b6e.tar.bz2
turris-myrepo-74799790484128bc2de80a620b67aa584c204b6e.zip
Updater-ng-auto
Diffstat (limited to 'utils/opkg-trans-master.sh')
-rwxr-xr-xutils/opkg-trans-master.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/utils/opkg-trans-master.sh b/utils/opkg-trans-master.sh
deleted file mode 100755
index b16845c..0000000
--- a/utils/opkg-trans-master.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-# This script check if updater doesn't contain new commit and if so it bumps
-# automatically.
-
-UPDATER_REPO=https://kkoci@gitlab.labs.nic.cz/turris/updater.git
-UPDATER_REPO_PATH=/tmp/myrepo_updater_repo
-
-if [ ! -f $1/opkg-trans-master-auto/Makefile ]; then
- # Skip this when we don't have opkg-trans-master-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 HEAD)"
-VERSION="$(git $GIT_ARGS describe --abbrev=0 --tags)"
-RELEASE="$(($(git $GIT_ARGS rev-list --count $VERSION..HEAD) + 1))"
-
-# 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/opkg-trans-master-auto/Makefile