Skip to content

Commit

Permalink
build-aux/scripts: Fixes from perltidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
besser82 committed Jan 14, 2025
1 parent cadfc94 commit 9761b0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions build-aux/scripts/BuildCommon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -521,16 +521,13 @@ sub parse_symver_args {
if (/^SYMVER_MIN=(.+)$/) {
$usage_error->() if defined $SYMVER_MIN;
$SYMVER_MIN = $1;
}
elsif (/^SYMVER_FLOOR=(.+)$/) {
} elsif (/^SYMVER_FLOOR=(.+)$/) {
$usage_error->() if defined $SYMVER_FLOOR;
$SYMVER_FLOOR = $1;
}
elsif (/^COMPAT_ABI=(.+)$/) {
} elsif (/^COMPAT_ABI=(.+)$/) {
$usage_error->() if defined $COMPAT_ABI;
$COMPAT_ABI = $1;
}
else {
} else {
$usage_error->() if defined $map_in;
$map_in = $_;
}
Expand Down
9 changes: 3 additions & 6 deletions build-aux/scripts/gen-crypt-h
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,11 @@ sub process_config_h {

if ($_ eq '#define HAVE_SYS_CDEFS_H 1') {
$have_sys_cdefs_h = 1;
}
elsif ($_ eq '#define HAVE_SYS_CDEFS_BEGIN_END_DECLS 1') {
} elsif ($_ eq '#define HAVE_SYS_CDEFS_BEGIN_END_DECLS 1') {
$have_sys_cdefs_begin_end_decls = 1;
}
elsif ($_ eq '#define HAVE_SYS_CDEFS_THROW 1') {
} elsif ($_ eq '#define HAVE_SYS_CDEFS_THROW 1') {
$have_sys_cdefs_throw = 1;
}
elsif (/^#define PACKAGE_VERSION "((\d+)\.(\d+)\.\d+)"$/) {
} elsif (/^#define PACKAGE_VERSION "((\d+)\.(\d+)\.\d+)"$/) {
$substs{XCRYPT_VERSION_STR} = $1;
$substs{XCRYPT_VERSION_MAJOR} = $2;
$substs{XCRYPT_VERSION_MINOR} = $3;
Expand Down

0 comments on commit 9761b0d

Please sign in to comment.