Commit c0996d36 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix getopt call (args reversed).

Add install target to stick into the sbin directory.
parent c17d17da
......@@ -3,7 +3,7 @@ TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ../..
SUBDIR = event/example
PROGRAMS = tbrecv tbsend
PROGRAMS = tbrecv tbsend eventdebug.pl
include $(OBJDIR)/Makeconf
......@@ -28,7 +28,7 @@ tbsend: tbsend.o
$(PROGRAMS): ../lib/libevent.a ../lib/event.h
install:
install: $(addprefix $(INSTALL_SBINDIR)/, eventdebug.pl)
clean:
/bin/rm -f *.o $(PROGRAMS)
......@@ -20,7 +20,7 @@ sub usage {
}
my %opt = ();
getopt(\%opt,"s:p:h");
getopt("s:p:h", \%opt);
if ($opt{h}) { exit &usage; }
if (@ARGV) { exit &usage; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment