~gala-dev/gala/windowswitcher-fade-opacity

« back to all changes in this revision

Viewing changes to build-aux/bzr-version-gen

  • Committer: RabbitBot
  • Author(s): Tom Beckmann, Rico Tzschichholz, Cody Garver
  • Date: 2014-04-06 18:30:23 UTC
  • mfrom: (368.1.21 plugins)
  • Revision ID: rabbitbot-20140406183023-0v1juolllz5u2fht
Add plugin support, move zoom functionality into a plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
scriptversion=2010-05-09.22; # UTC
 
4
 
 
5
# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
 
6
 
 
7
# This program is free software; you can redistribute it and/or modify
 
8
# it under the terms of the GNU General Public License as published by
 
9
# the Free Software Foundation; either version 3 of the License, or
 
10
# (at your option) any later version.
 
11
 
 
12
# This program is distributed in the hope that it will be useful,
 
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
# GNU General Public License for more details.
 
16
 
 
17
# You should have received a copy of the GNU General Public License
 
18
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 
 
20
# Additional permission under GNU GPL version 3 section 7
 
21
 
 
22
 
 
23
# Written by Giuseppe Scrivano.
 
24
 
 
25
if test -f .tarball-version
 
26
then
 
27
    cat .tarball-version | tr -d '\n'
 
28
    exit 0
 
29
fi
 
30
 
 
31
DIRTY=""
 
32
 
 
33
test -n "$(bzr diff | tr -d '\n')" && DIRTY="-dirty"
 
34
 
 
35
REVNO=$(bzr revno)
 
36
 
 
37
TAG=$(bzr tags -r $REVNO | cut -d' ' -f1)
 
38
if test -z "$TAG"
 
39
then
 
40
    TAG=$(bzr tags -r ..$REVNO | cut -d' ' -f1)
 
41
 
 
42
    # No tags yet
 
43
    if test -z "$1"
 
44
    then
 
45
        test -z "$TAG" && TAG="unknown"
 
46
    else
 
47
        TAG=$1
 
48
    fi
 
49
 
 
50
    TAG=$TAG.$REVNO
 
51
fi
 
52
 
 
53
 
 
54
printf "%s%s" "$TAG" "$DIRTY"
 
55
 
 
56
# Local variables:
 
57
# eval: (add-hook 'write-file-hooks 'time-stamp)
 
58
# time-stamp-start: "scriptversion="
 
59
# time-stamp-format: "%:y-%02m-%02d.%02H"
 
60
# time-stamp-time-zone: "UTC"
 
61
# time-stamp-end: "; # UTC"
 
62
# End: