From 5085af7eacbd584571664be9e16c4741862382c5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 16 Apr 2024 21:35:39 +0200 Subject: Adding debian version 2:1.21~1. Signed-off-by: Daniel Baumann --- debian/helpers/getdefault.pl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 debian/helpers/getdefault.pl (limited to 'debian/helpers/getdefault.pl') 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"); +} -- cgit v1.2.3