diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:35:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:35:39 +0000 |
commit | 5085af7eacbd584571664be9e16c4741862382c5 (patch) | |
tree | 45d37dc19ad21ebff57e2a8ef1ef6131887d1bdd /debian/helpers/getdefault.pl | |
parent | Merging upstream version 2:1.21~1. (diff) | |
download | golang-defaults-5085af7eacbd584571664be9e16c4741862382c5.tar.xz golang-defaults-5085af7eacbd584571664be9e16c4741862382c5.zip |
Adding debian version 2:1.21~1.debian/2%1.21_1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/helpers/getdefault.pl')
-rwxr-xr-x | debian/helpers/getdefault.pl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/helpers/getdefault.pl b/debian/helpers/getdefault.pl new file mode 100755 index 0000000..0c12743 --- /dev/null +++ b/debian/helpers/getdefault.pl @@ -0,0 +1,15 @@ +#!/usr/bin/perl + +# Get default Go implementation. + +use warnings; +use strict; + +use Debian::Debhelper::Dh_Lib; + +my %known_packages = map { $_ => 1 } getpackages('arch'); +if (exists($known_packages{'golang-go'})) { + printf("golang-go\n"); +} else { + printf("gccgo-go\n"); +} |