diff options
Diffstat (limited to 'scripts/universal-ctags.sh')
| -rwxr-xr-x | scripts/universal-ctags.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/scripts/universal-ctags.sh b/scripts/universal-ctags.sh new file mode 100755 index 0000000..06ebe85 --- /dev/null +++ b/scripts/universal-ctags.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + +set -e + +tar Jcvf ctags-$COMMIT.tar.xz ctags-$COMMIT + +rm -rf ctags-$COMMIT +CHECKSUM=`md5sum ctags-$COMMIT.tar.xz | cut -d ' ' -f 1` + +scp ctags-$COMMIT.tar.xz caraus.de:/srv/httpd/dlackware/download/hosted-sources/universal-ctags + +cat <<EOF > universal-ctags.info +PRGNAM="universal-ctags" +VERSION="$HASH" +HOMEPAGE="https://ctags.io/" +DOWNLOAD="https://download.dlackware.com/hosted-sources/universal-ctags/ctags-$COMMIT.tar.xz" +MD5SUM="$CHECKSUM" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="%README%" +MAINTAINER="Eugene Wissner" +EMAIL="belka@caraus.de" +EOF + +rm -f slackbuilds/development/universal-ctags/*.tar.xz +mv \ + universal-ctags.info \ + ctags-$COMMIT.tar.xz \ + slackbuilds/development/universal-ctags/ +cd slackbuilds/development/universal-ctags + +# Update version in the SlackBuild. +sed -i "s#^\(VERSION=\)\${VERSION:-.\+#\1\${VERSION:-$HASH}#" universal-ctags.SlackBuild +sed -i "s#^\(GITVERSION=\)\${GITVERSION:-.\+#\1\${GITVERSION:-$COMMIT}#" universal-ctags.SlackBuild + +# Commit. +git checkout master +#git checkout -b ctags$HASH +git add . +git commit -m "development/universal-ctags: Updated for version $HASH" |
