File: gpt_version.in

package info (click to toggle)
grid-packaging-tools 3.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,936 kB
  • sloc: perl: 15,766; sh: 3,032; makefile: 225
file content (30 lines) | stat: -rw-r--r-- 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! @PERL@

eval 'exec @PERL@  -S $0 ${1+"$@"}'
    if 0; # not running under some shell

@GPT_PERL_INITIALIZER@

use strict;
use Getopt::Long;
use File::Find;
use Cwd;
use Config;

#
# Do a perl check for version >= 5.005.
#

if ( ! ( defined eval "require 5.005" ) )
{
    die "GPT requires at least Perl version 5.005";
}

require Grid::GPT::GPTIdentity;

if( Grid::GPT::GPTIdentity::gpt_version() ne "@VERSION@" )
{
  exit 1;
}

exit 0;