mirror of
https://github.com/fspc/gbootroot.git
synced 2026-09-08 12:51:40 -04:00
Tweaking some error codes.
This commit is contained in:
+5
-5
@@ -82,7 +82,7 @@ chomp $make_paragraph[1];
|
||||
my @make_lines = split(/\n/,$make_paragraph[1]);
|
||||
shift(@make_lines);
|
||||
|
||||
chdir($gbootroot_cvs) or die "Couldn't change to $gbootroot_cvs: $?\n";
|
||||
chdir($gbootroot_cvs) or die "Couldn't change to $gbootroot_cvs: $!\n";
|
||||
|
||||
# Basically we are just concerned with the first part of cp and will
|
||||
# use home_builder to make sure the directory exists.
|
||||
@@ -130,14 +130,14 @@ if (-d $packaging_place) {
|
||||
|
||||
# Now we to the dh_make thing, and setup the time, version, and defaults.
|
||||
|
||||
chdir($packaging_place) or die "Can't change to $packaging_place: $?\n";
|
||||
chdir($packaging_place) or die "Can't change to $packaging_place: $!\n";
|
||||
system "dh_make -e $email";
|
||||
|
||||
# Here we ask the user what changes to add to the changelog and set the proper
|
||||
# time using 822-date. If it is the initial release we don't do anything.
|
||||
|
||||
open(CHANGELOG,"$packaging_defaults/changelog")
|
||||
or die "Couldn't open $packagaging_place/changelog: $?\n";
|
||||
or die "Couldn't open $packaging_place/changelog: $!\n";
|
||||
my @changelog = <CHANGELOG>;
|
||||
close (CHANGELOG);
|
||||
|
||||
@@ -173,7 +173,7 @@ if (!$stop) {
|
||||
}
|
||||
|
||||
open(CHANGELOG,">$packaging_defaults/changelog")
|
||||
or die "Couldn't open check: $?\n";
|
||||
or die "Couldn't open check: $!\n";
|
||||
for my $ct (0 .. ($#changelog - 3)) {
|
||||
print CHANGELOG $changelog[$ct];
|
||||
}
|
||||
@@ -193,7 +193,7 @@ system "chgrp $real_gid $packaging_defaults/changelog";
|
||||
|
||||
# Set-up the copyright
|
||||
open(COPYRIGHT,">$packaging_defaults/copyright")
|
||||
or die "Couldn't open up $packaging_defaults/copyright: $?\n";
|
||||
or die "Couldn't open up $packaging_defaults/copyright: $!\n";
|
||||
print COPYRIGHT "This package was debianized by $name\n";
|
||||
print COPYRIGHT "$email on " , `822-date`, ".\n";
|
||||
print COPYRIGHT "Author: \n$name <$email>\n\n";
|
||||
|
||||
Reference in New Issue
Block a user