~ubuntu-branches/ubuntu/gutsy/grhino/gutsy

« back to all changes in this revision

Viewing changes to scripts/makepkg-release

  • Committer: Bazaar Package Importer
  • Author(s): Bart Martens
  • Date: 2007-04-02 20:38:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070402203809-fxyqqtkhj9ou03dy
Tags: upstream-0.16.0
ImportĀ upstreamĀ versionĀ 0.16.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env perl
 
2
#
 
3
# makepkg-release
 
4
# Copyright (c) 2001, 2004 Kriang Lerdsuwanakij
 
5
# email:        lerdsuwa@users.sourceforge.net
 
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 2 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, write to the Free Software
 
19
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
20
 
 
21
$ret = system("scripts/dircheck");
 
22
if ($ret) {
 
23
        exit 1;
 
24
}
 
25
 
 
26
system "scripts/makepkg release";
 
27
 
 
28
$ver = `cat scripts/version`;
 
29
chomp $ver;
 
30
$ver =~ s/.*\"(.*)\".*/$1/;
 
31
$ver =~ tr/\./\_/;
 
32
 
 
33
system "cvs diff && cvs tag ver-$ver";