-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added packer.pl * fixed packer.pl for git repo * added packer v1.10 + packed script and exe * v1.20 various fixes * packer.pl v1.21 + perldoc better packer.pl doc + added perldoc tool * deleted packed/perlpowertools.exe
- Loading branch information
Showing
122 changed files
with
5,541 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ Makefile [23456] | |
MANIFEST*[123456789] | ||
Changes*[123456789] | ||
|
||
/test/ |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env perl | ||
# | ||
# perldoc - perldoc for PerlPowerTools | ||
|
||
=begin metadata | ||
Name: perldoc | ||
Description: perldoc for perlpowertools | ||
Author: jul, kaldor@cpan.org | ||
License: Artistic License 2.0 | ||
=end metadata | ||
=cut | ||
|
||
use strict; | ||
use warnings; | ||
use utf8; | ||
use File::Basename; | ||
use Cwd 'abs_path'; | ||
|
||
# let perldoc also search in perlpowertools bin | ||
unshift @INC, dirname(abs_path(__FILE__)); | ||
|
||
# copy-paste from the real perldoc | ||
require 5; | ||
BEGIN { $^W = 1 if $ENV{'PERLDOCDEBUG'} } | ||
use Pod::Perldoc; | ||
exit( Pod::Perldoc->run() ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env perl | ||
# | ||
# perlpowertools - helper script for PerlPowerTools | ||
|
||
use strict; | ||
use warnings; | ||
use utf8; | ||
use Getopt::Std; | ||
use File::Basename; | ||
use Cwd 'abs_path'; | ||
|
||
our $VERSION = qw( 1.024 ); | ||
my $program = 'perlpowertools'; | ||
my @tools = qw( addbib apply ar arch arithmetic asa awk banner basename bc cal cat chgrp ching chmod chown clear cmp col colrm comm cp cut date dc deroff diff dirname du echo ed env expand expr factor false file find fish fmt fold fortune from glob grep hangman head id install join kill ln lock look ls mail man maze mimedecode mkdir mkfifo moo morse nl od par paste patch perldoc pig ping pom ppt pr primes printenv printf pwd rain random rev rm rmdir robots rot13 shar sleep sort spell split strings sum tac tail tar tee test time touch tr true tsort tty uname unexpand uniq units unpar unshar uudecode uuencode wc what which whois words wump xargs yes ); | ||
my $usage = <<EOF; | ||
Usage: $program [-hVl] | ||
$program tool [arg ...] | ||
-h, --help help | ||
-V, --version version | ||
-l list tools | ||
EOF | ||
|
||
# options | ||
$Getopt::Std::STANDARD_HELP_VERSION = 1; | ||
my %options = (); | ||
getopts("hVl", \%options) or die $usage; | ||
|
||
my $help = $options{h} || 0; | ||
my $version = $options{V} || 0; | ||
my $list = $options{l} || 0; | ||
|
||
die $usage if $help; | ||
die $VERSION . "\n" if $version; | ||
die join ("\n", @tools) . "\n" if $list; | ||
|
||
######## | ||
# MAIN # | ||
######## | ||
|
||
my $tool = shift || ''; | ||
die $usage if not grep { $tool eq $_ } @tools; | ||
|
||
my $file = defined $ENV{PAR_TEMP} ? "$ENV{PAR_TEMP}/inc/script/$tool" : dirname(abs_path($0)) . "/$tool"; | ||
$0 = $tool; # for usage/warning/error messages | ||
my $return = do $file; | ||
die $@ if $@; | ||
die "$file: $!" unless defined $return; | ||
|
||
exit 1; |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.