~vijaykumar

[ Home | Feed | Twitter | Vector Art | Ascii Art | Tutorials ]

Finding the Lastest SVN Tag

Tue, 14 Oct 2014

The following script finds the latest tag on an SVN project. The basic idea is to use svn info to find the last revision of the tags folder, and identify the tag with that revision. If the tags folder is not present, or if the tags folder is present but empty, the script prints N/O/N/E.

#!/bin/bash

#
# Usage: svn-latest-tag <SVN-PROJ-URL>
#
# Prints the latest tag or N/O/N/E if none available.
#

if [ "x$1" == "x" ]; then
    echo "Usage: svn-latest-tag <SVN-PROJ-URL>"
    exit 1
fi

#
# Tag name to be printed if none found, less likely to be a real tag
# name. (directories cannot contain the forward slash, right?)
#

latest_tag="N/O/N/E"
tags=$(svn ls $1/tags)
if [ $? -ne 0 ]; then
    echo $latest_tag
    exit 1
fi
last_rev=$(svn info $1 | grep "Last Changed Rev")
if [ $? -ne 0 ]; then
    echo $latest_tag
    exit 1
fi
# echo $last_rev
for tag in $tags; do
    # echo "Checking tag" $tag
    if svn info $1/tags/$tag | grep "$last_rev"; then
        latest_tag=tag
        break
    fi
done
echo $latest_tag

Permalink | Add Comment | Share: Twitter, Facebook, Buzz, ... | Tags: doc, foss, svn

GSM SMS Daemon on Debian

Mon, 30 Dec 2013

The gsm-utils package provides a GSM SMS Daemon that can be used to send and receive SMS, on a PC equipped with a GSM modem. The package has a couple of issues and pit-falls that makes installing it non-trivial.

Read Full Story ...

Permalink | Add Comment | Share: Twitter, Facebook, Buzz, ... | Tags: doc, foss

From Make to SCons

Wed, 01 May 2013

Make is the standard Unix tool to build software, and has been around for the past 30 years. The make build system has certain drawbacks that more recent tools are trying to fix. One such tool in SCons. This article aims to help a make user come up to speed with SCons.

Read Full Story ...

Permalink | Add Comment | Share: Twitter, Facebook, Buzz, ... | Tags: doc, foss, python

Notes on Git Remotes

Mon, 19 Nov 2012

A remote is a convenient way of referring to a remote repository, so that the user doesn’t have to type the entire URL again and again.

Moreover since git is a distributed, the user might want to refer to serveral remote repositories, to obtain changes from. Remotes let the user to conveniently name these different remote repositories.

When a project is cloned, a remote called origin is automatically created. The remote refers to the repository from which the project was cloned.

Read Full Story ...

Permalink | Add Comment | Share: Twitter, Facebook, Buzz, ... | Tags: foss, git

CVS Cheat Sheet

Sun, 20 Feb 2005

Permalink | Add Comment | Share: Twitter, Facebook, Buzz, ... | Tags: doc, foss

Free Software Concept Booklet

Tue, 01 Jun 2004

Permalink | Add Comment | Share: Twitter, Facebook, Buzz, ... | Tags: foss

Transcript of Richard Stallman's speech at NITT

Mon, 01 Mar 2004

Permalink | Add Comment | Share: Twitter, Facebook, Buzz, ... | Tags: foss

Tamil Translation of the GNU Manifesto

Sun, 01 Jun 2003

Permalink | Add Comment | Share: Twitter, Facebook, Buzz, ... | Tags: foss

Powered by Python | Made with PyBlosxom | Valid XHTML 1.1 | Best Viewed With Any Browser | Icon Credits | CC-BY-SA