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
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
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
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
I had contributed a good amount of text/images to the Free Software
Concept Booklet. The booklet is available
here, in the
Wikibooks website.
Permalink |
Add Comment |
Share: Twitter, Facebook, Buzz, ... |
Tags: foss
I was among the team of people who had transcripted Richard Stallman’s
speech at NIT, Trichy. The transcript is now available
here, in the GNU
website.
Permalink |
Add Comment |
Share: Twitter, Facebook, Buzz, ... |
Tags: foss