source: subversion/applications/utils/debian/update_svn_revision.sh @ 30595

Last change on this file since 30595 was 12629, checked in by joerg, 11 years ago

get svnrevision the new way

  • Property svn:executable set to *
File size: 328 bytes
Line 
1#!/bin/bash
2# replace the revision number in debian/changelog to the last time this
3# Subtree was modified
4
5svnrevision=`svn info . | grep "Last Changed Rev" | sed 's/Last Changed Rev: //'`
6svnrevision=${svnrevision/M/}
7
8if [ -n "${svnrevision}" ] ; then
9    perl -p -i -e "s/\(\S+\)/\(${svnrevision}\)/;" debian/changelog
10fi
11
Note: See TracBrowser for help on using the repository browser.