source: osm/applications/editors/josm/debian/update_svn_revision.sh@ 17798

Last change on this file since 17798 was 12545, checked in by joerg, 16 years ago

get svnrevision the new way

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