~ubuntu-branches/debian/sid/smplayer/sid

« back to all changes in this revision

Viewing changes to get_svn_revision.sh

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2009-03-31 23:05:43 UTC
  • mto: (1.1.9 upstream) (3.1.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20090331230543-nsklbxenl2hf2n6h
Tags: upstream-0.6.7
ImportĀ upstreamĀ versionĀ 0.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# This file is taken from the MPlayer sources, and adapted a little bit.
4
4
# It gets the SVN revision number and then saves it in two files:
5
 
# src/svn_revision.h and svn_revision.txt.
 
5
# src/svn_revision.h and svn_revision
6
6
 
7
7
test "$1" && extra="-$1"
8
8
 
17
17
# Update version.h only on revision changes to avoid spurious rebuilds
18
18
if test "$NEW_REVISION" != "$OLD_REVISION"; then
19
19
    echo "$NEW_REVISION" > src/svn_revision.h
20
 
        echo "SVN-r${svn_revision}${extra}" > svn_revision.txt
 
20
    echo "SVN-r${svn_revision}${extra}" > svn_revision
21
21
fi