Skip to content

Commit

Permalink
Avoid output message.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Sep 23, 2023
1 parent de95c02 commit 8ab1408
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
30 changes: 22 additions & 8 deletions bin/make_err
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ sub create_public ($) {
my $sect_name; # Section of minor error messages
my $sect_desc; # Description of section

# Rename previous file
# rename "${prefix}${file}", "${prefix}${file}~" or die "unable to make backup";
# Remove previous file
if (-e "${prefix}${file}")
{
unlink "${prefix}${file}"
}

# Open new header file
open HEADER, ">${prefix}${file}" or die "unable to modify source";
Expand Down Expand Up @@ -224,8 +227,12 @@ sub create_init ($) {
my $sect_name; # Section of minor error messages
my $sect_desc; # Description of section

# Rename previous file
# rename "${prefix}${file}", "${prefix}${file}~" or die "unable to make backup";

# Remove previous file
if (-e "${prefix}${file}")
{
unlink "${prefix}${file}"
}

# Open new header file
open HEADER, ">${prefix}${file}" or die "unable to modify source";
Expand Down Expand Up @@ -282,9 +289,13 @@ sub create_term ($) {
my $sect_name; # Section of minor error messages
my $sect_desc; # Description of section

# Rename previous file
# rename "${prefix}${file}", "${prefix}${file}~" or die "unable to make backup";

# Remove previous file
if (-e "${prefix}${file}")
{
unlink "${prefix}${file}"
}

# Open new header file
open HEADER, ">${prefix}${file}" or die "unable to modify source";

Expand Down Expand Up @@ -330,8 +341,11 @@ sub create_define ($) {
my $sect_name; # Section of minor error messages
my $sect_desc; # Description of section

# Rename previous file
# rename "${prefix}${file}", "${prefix}${file}~" or die "unable to make backup";
# Remove previous file
if (-e "${prefix}${file}")
{
unlink "${prefix}${file}"
}

# Open new header file
open HEADER, ">${prefix}${file}" or die "unable to modify source";
Expand Down
7 changes: 5 additions & 2 deletions bin/make_overflow
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,11 @@ sub create_public ($) {
my $file = "H5overflow.h"; # Name of file to generate
my $name; # Name of function

# Rename previous file
# rename "${prefix}${file}", "${prefix}${file}~" or die "unable to make backup";
# Remove previous file
if (-e "${prefix}${file}")
{
unlink "${prefix}${file}"
}

# Open new header file
open HEADER, ">${prefix}${file}" or die "unable to modify source";
Expand Down
9 changes: 6 additions & 3 deletions bin/make_vers
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,14 @@ sub create_public ($) {
my $file = "H5version.h"; # Name of file to generate
my $name; # Name of function

# Rename previous file
# rename "${prefix}${file}", "${prefix}${file}~" or die "unable to make backup";
# Remove previous file
if (-e "${prefix}${file}")
{
unlink "${prefix}${file}"
}

# Open new header file
open HEADER, ">${prefix}${file}" or die "unable to modify source";
open HEADER, ">${prefix}${file}" or die "unable to modify source";

# Create file contents
print_copyright(*HEADER);
Expand Down

0 comments on commit 8ab1408

Please sign in to comment.