+2007-11-18 Andrew Ruthven
+ Add support for showing the version of the script.
+
2007-11-17 Andrew Ruthven
Add support for printing colour in the encoder status display.
@git-archive --format=tar --prefix=$(package)-$(version)/ $(version) `git-ls-tree --name-only $(version) | egrep -v "(.gitignore|debian|Makefile)"` | gzip > $(tarball)
build/etch/$(deb):
- @ssh build-etch-i386 "cd `pwd`; $(build)"
+ @rm -rf build/working &> /dev/null
+ @mkdir -p build/working
+ @git-archive --format=tar $(version) | (cd build/working; tar xf -)
+ @ssh build-etch-i386 "cd `pwd`/build/working; $(build)"
@mkdir -p build/etch
- @mv ../$(deb) build/etch
+ @mv build/$(deb) build/etch
+ @rm -rf build/working &> /dev/null
build/sid/$(deb):
- @ssh build-sid-i386 "cd `pwd`; $(build)"
+ @rm -rf build/working &> /dev/null
+ @mkdir -p build/working
+ @git-archive --format=tar $(version) | (cd build/working; tar xf -)
+ @ssh build-sid-i386 "cd `pwd`/build/working; $(build)"
@mkdir -p build/sid
- @mv ../$(deb) build/sid
+ @mv build/$(deb) build/sid
+ @rm -rf build/working &> /dev/null
publish: $(RELEASE_FILES)
for release in $(releases); do ars-add -r $$release -g main build/$$release/$(deb); done
my $episode = undef;
my $colour = undef;
+my $VERSION = '0.5';
+
GetOptions(
'c|colour|color' => \$colour,
'd|descripton' => \$description,
'e|episode' => \$episode,
'h|host=s' => \$host,
'p|port=s' => \$port,
+ 'v|version' => &print_version(),
);
die "Sorry, port isn't a number.\n"
print "\n";
}
+sub print_version {
+ print "mythtv-status, version $VERSION.\n";
+ print "Written by Andrew Ruthven <andrew\@etc.gen.nz>\n";
+ print "\n";
+ exit;
+}
+
=head1 NAME
mythtv-status - Display the status of a MythTV backend
The port to use when connecting to MythTV, defaults to 6544.
+=item -B<-v, --version>
+
+Show the version of mythtv-status and then exit.
+
=back
=head1 OUTPUT