diff options
Diffstat (limited to 'debian/helpers')
-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"); +} |