summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore11
-rwxr-xr-xBuild.PL23
-rwxr-xr-xbin/ekgping4
-rw-r--r--share/beep.ogg (renamed from beep.ogg)bin59381 -> 59381 bytes
4 files changed, 37 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c735b40
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+/Build
+/build/
+/_build/
+/blib/
+/cover_db/
+/lib/App/Dthumb/Data.pm
+/MANIFEST
+/MANIFEST.bak
+/MANIFEST.SKIP
+/MANIFEST.SKIP.bak
+/MYMETA.yml
diff --git a/Build.PL b/Build.PL
new file mode 100755
index 0000000..ef2ad6a
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,23 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+use Module::Build;
+
+Module::Build->new(
+
+ build_requires => {
+ 'Test::Compile' => 0,
+ 'Test::More' => 0,
+ 'Test::Pod' => 0,
+ },
+ dist_name => 'ekgping',
+ dist_version_from => 'bin/ekgping',
+ license => 'unrestricted',
+ requires => {
+ 'perl' => '5.10.0',
+ },
+ share_dir => 'share',
+ sign => 1,
+
+)->create_build_script();
diff --git a/bin/ekgping b/bin/ekgping
index f946c53..32d7770 100755
--- a/bin/ekgping
+++ b/bin/ekgping
@@ -4,6 +4,7 @@ use strict;
use warnings;
use 5.010;
+use File::ShareDir qw(dist_file);
use IO::Handle;
use IPC::Run qw(harness io);
use SDL::Mixer;
@@ -24,7 +25,8 @@ my $column = 0;
my $column_max = Term::Size::chars;
my $mixer = SDL::Mixer->new();
-my $beep_sound = SDL::Music->new('beep.ogg');
+my $beep_file = dist_file('ekgping', 'beep.ogg');
+my $beep_sound = SDL::Music->new($beep_file);
my $ping = harness(
[ 'ping', '-n', $host ],
diff --git a/beep.ogg b/share/beep.ogg
index b6a5364..b6a5364 100644
--- a/beep.ogg
+++ b/share/beep.ogg
Binary files differ