mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-22 16:43:23 -05:00
Adds a better check for the version.
This commit is contained in:
parent
b6654a93ef
commit
dd791da247
@ -29,11 +29,11 @@ my $email = "freesource\@users.sourceforge.net";
|
|||||||
my $name = "Jonathan Rosenbaum";
|
my $name = "Jonathan Rosenbaum";
|
||||||
|
|
||||||
# Other vars
|
# Other vars
|
||||||
my $version;
|
|
||||||
my ($real_uid, $real_gid) = (stat($user_home))[4,5];
|
my ($real_uid, $real_gid) = (stat($user_home))[4,5];
|
||||||
|
|
||||||
# Find the version
|
# Find the version
|
||||||
|
|
||||||
|
my $version;
|
||||||
open(CVS, "$gbootroot_cvs/$prog") or
|
open(CVS, "$gbootroot_cvs/$prog") or
|
||||||
die "Couldn't find $prog in $gbootroot_cvs: $!\n";
|
die "Couldn't find $prog in $gbootroot_cvs: $!\n";
|
||||||
while (<CVS>) {
|
while (<CVS>) {
|
||||||
@ -132,8 +132,8 @@ close (CHANGELOG);
|
|||||||
|
|
||||||
my $stop;
|
my $stop;
|
||||||
foreach (@changelog) {
|
foreach (@changelog) {
|
||||||
if (/$version/) {
|
if (/$version-$revision/) {
|
||||||
print "\nThe changelog for $version already exists, this may mean\n" .
|
print "\nThe changelog for $version-$revision already exists, this may mean\n" .
|
||||||
"that this is the first invocation or that you haven't changed the\n" .
|
"that this is the first invocation or that you haven't changed the\n" .
|
||||||
"version in the $prog program.\n";
|
"version in the $prog program.\n";
|
||||||
$stop = 1;
|
$stop = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user