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 |
|
---|
5 | svncorerevision=`svn info core | grep "Last Changed Rev" | sed 's/Last Changed Rev: //'`
|
---|
6 | svncorerevision=${svncorerevision/M/}
|
---|
7 | svnpluginsrevision=`svn info plugins | grep "Last Changed Rev" | sed 's/Last Changed Rev: //'`
|
---|
8 | svnpluginsrevision=${svnpluginsrevision/M/}
|
---|
9 | svnrevision="$svncorerevision$svnpluginsrevision"
|
---|
10 |
|
---|
11 | if [ -n "$svnrevision" ] ; then
|
---|
12 | perl -p -i -e "s/\(\S+\)/\(${svnrevision}\)/;" debian/changelog
|
---|
13 | fi
|
---|
14 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.