~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 <URL>
#
# Prints the latest tag or N/O/N/E if none available.
#

if [ "x$1" == "x" ]; then
    echo "Usage: svn-latest-tag <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

ERPNext Conference, In a Nut Shell

Sat, 27 Sep 2014

ERPNext is an opensource ERP software written in Python, by a team of developers from Mumbai. The ERPNext team recently organized a conference, and my experiences at the conference, is covered in this article.

Read Full Story ...

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

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

Chennaipy July Meet Minutes

Sun, 28 Jul 2013

Chennaipy met on 27th of July. Due to some renovation work at the usual venue, Zilogic Systems, the meeting was held at IITM.

Surprisingly this time, we had a couple of people arriving before the meeting time. And gradually the participant count hit 14. Thanks to Kiran and Srini for promoting the meet in various other forums.

Read Full Story ...

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

ReviewBoard with LDAP

Sat, 20 Jul 2013

ReviewBoard comes with excellent documentation, but the LDAP configuration is not very clear. Hope this blog article serves to fill in the gap.

Read Full Story ...

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

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