linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Kacur <jkacur@redhat.com>
To: RT <linux-rt-users@vger.kernel.org>
Cc: Clark Williams <williams@redhat.com>, John Kacur <jkacur@redhat.com>
Subject: [PATCH] rt-tests: rm scripts/do-git-push
Date: Tue, 26 Jan 2021 01:44:38 -0500	[thread overview]
Message-ID: <20210126064438.23660-1-jkacur@redhat.com> (raw)

Remove this old script for maintaining rt-tests.
I have some new scripts that do this kind of thing that I maintain
out of tree, which I think is more appropriate anyway.

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 scripts/do-git-push | 115 --------------------------------------------
 1 file changed, 115 deletions(-)
 delete mode 100755 scripts/do-git-push

diff --git a/scripts/do-git-push b/scripts/do-git-push
deleted file mode 100755
index 1530d1001c49..000000000000
--- a/scripts/do-git-push
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/bin/sh
-#
-# script to automate pushing rt-tests tarball and git branch to
-# kernel.org.
-#
-# This won't work if you aren't me :)
-#
-#   Copyright 2009 Clark Williams <williams@redhat.com>
-#
-
-testing=0
-TEMP=$(getopt -o t -l test -n do-git-push -- "$@")
-if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
-eval set -- "$TEMP"
-while true; do
-    case "$1" in
-	-t|--test) testing=1 ; shift ;;
-	--) shift ; break ;;
-	*) echo "Internal Error!"; exit 1 ;;
-    esac
-done
-
-if [ $# -lt 1 ]
-then
-    echo "usage: do-git-push <version>"
-    exit -1
-fi
-
-version=$1
-accnt=clrkwllms@master.kernel.org
-destpath=/pub/linux/kernel/people/clrkwllms/
-branch=$(git symbolic-ref -q HEAD)
-
-if [ $testing -eq 1 ]; then
-    echo "version:  $version"
-    echo "accnt:    $accnt"
-    echo "destpath: $destpath"
-    echo "branch:   $branch"
-fi
-
-# sanity check
-if [ ! -d .git ]
-then
-    echo "No .git directory found!"
-    echo "cwd: $(pwd)"
-    exit -1
-fi
-
-# make sure we're on the master branch
-if [ $branch != 'refs/heads/master' ]; then
-   echo "must be on master branch to push!"
-   echo "(currently on branch: $branch)"
-   exit -1
-fi
-
-# double sanity check
-mkver=$(awk '$1 == "VERSION_STRING" {print $3; exit 0}' Makefile)
-if [ $version != $mkver ]
-then
-    echo "parameter mismatch with Makefile!"
-    echo "input parameter:  $version"
-    echo "Makefile version: $mkver"
-    exit -1
-fi
-
-# check the git tag
-tag="v$version"
-if rev=$(git rev-parse --verify -q "$tag")
-then
-	if [ "tag" = "$(git cat-file -t $rev)" ]; then
-		echo "using existing tag $tag"
-	else
-		echo "$tag is not a tag"
-		exit -1
-	fi
-else
-	echo "Generating annotated tag $tag"
-	if [ $testing -eq 0 ]; then
-	    git tag -a $tag
-	    if [ $? != 0 ]; then
-		echo "No tag message; aborting!"
-		exit -1
-	    fi
-	else
-	    echo "testing: Generate Tag"
-	fi
-fi
-
-# copy the tarball if it isn't already there
-tar=rt-tests-$version.tar.gz
-asc=rt-tests-$version.tar.asc
-
-if [ ! -e $tar ];
-then
-    echo "Generating tarfile $tar"
-    make release
-else
-    echo "Using existing tarfile $tar"
-fi
-
-if kup ls $destpath | grep $tar > /dev/null 2>&1
-then
-    echo "Tarfile $tar is already on kernel.org"
-else
-    echo "Copying tarfile $tar to kernel.org"
-    if [ $testing -eq 0 ]; then
-	kup put $tar $asc $destpath/$tar
-    else
-	echo "testing: copy tarfile"
-    fi
-fi
-
-[ $testing -eq 1 ] && dryrun=--dry-run
-echo "Pushing master and tags to kernel.org"
-git push $dryrun --tags origin master
-- 
2.26.2


                 reply	other threads:[~2021-01-26 18:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210126064438.23660-1-jkacur@redhat.com \
    --to=jkacur@redhat.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=williams@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).