Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master guru-tools by Bor Kraljič (388752353d02e321fedf2199c469e3cbd7bc246e)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Bor Kraljič <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master guru-tools by Bor Kraljič (388752353d02e321fedf2199c469e3cbd7bc246e)
  • Date: Wed, 1 Sep 2010 06:20:14 -0500

GIT changes to master guru-tools by Bor Kraljič <pyrobor AT ver.si>:

smgl-keyring-diff | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)

New commits:
commit 388752353d02e321fedf2199c469e3cbd7bc246e
Author: Bor Kraljič <pyrobor AT ver.si>
Commit: Bor Kraljič <pyrobor AT ver.si>

smgl-keyring-diff: added option to use negative numbers

Some minor changes to help msg. (help msg changes if script gets renamed)

diff --git a/smgl-keyring-diff b/smgl-keyring-diff
index 3f36a99..6532188 100755
--- a/smgl-keyring-diff
+++ b/smgl-keyring-diff
@@ -2,13 +2,17 @@

if [ -z $1 ]; then
echo
- echo smgl-keyring-diff shows changes to the gpg keyring in git repository
+ echo $(basename $0) shows changes to the gpg keyring in git repository
echo
- echo To show the last change to the gurus.gpg run
- echo smgl-keyring-diff gurus.gpg
+ echo To show the last change to the gurus.gpg run:
+ echo $(basename $0) gurus.gpg
echo
- echo To show change No. 1 run
- echo smgl-keyring-diff gurus.gpg 1
+ echo To show change No. 1 run:
+ echo $(basename $0) gurus.gpg 1
+ echo
+ echo It also works with negative numbers. For example
+ echo to show preprevious change run:
+ echo $(basename $0) gurus.gpg -2
echo
exit 1
fi
@@ -20,6 +24,8 @@ echo The $1 keyring has been changed $C times.

if [ -z $2 ]; then
B=1
+elif [ $2 -lt 0 ];then
+ B=$((0-$2))
else
B=$(($C-$2+1))
fi



  • [SM-Commit] GIT changes to master guru-tools by Bor Kraljič (388752353d02e321fedf2199c469e3cbd7bc246e), Bor Kraljič, 09/01/2010

Archive powered by MHonArc 2.6.24.

Top of Page