Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
150 additions
and
4 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
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
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,8 @@ | ||
INSCRIPTS = paargs | ||
SCRIPTS = ${INSCRIPTS} | ||
|
||
MAN = paargs.1 | ||
|
||
CLEANFILES = paargs.1 | ||
|
||
.include <mkc.mk> |
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,67 @@ | ||
#!/bin/sh | ||
|
||
usage (){ | ||
cat 1>&2 <<'EOF' | ||
paargs - wrapper for paexec | ||
usage: paargs [OPTIONS] | ||
OPTIONS: | ||
h display this help | ||
V display version | ||
P | ||
t | ||
X | ||
f | ||
m | ||
I | ||
0 | ||
Z | ||
z | ||
EOF | ||
} | ||
|
||
command='paexec -Cxleg' | ||
version='@version@' | ||
|
||
shquote (){ | ||
__cmd=`printf '%s\n' "$1" | sed "s|'|'\\\\\''|g"` | ||
printf "%s\n" "'$__cmd'" | ||
} | ||
|
||
while getopts 0fI:hm:P:t:VXzZ: f; do | ||
case "$f" in | ||
'?') | ||
exit 1;; | ||
h) | ||
usage | ||
exit 0;; | ||
V) | ||
echo "paargs $version written by Aleksey Cheusov" | ||
exit 0;; | ||
P) | ||
command="$command -n`shquote $OPTARG`";; | ||
t) | ||
command="$command -t`shquote $OPTARG`";; | ||
X) | ||
command="$command -X";; | ||
f) | ||
command="$command -E";; | ||
m) | ||
command="$command -m`shquote $OPTARG`";; | ||
I) | ||
command="$command -J`shquote $OPTARG`";; | ||
0) | ||
command="$command -0";; | ||
Z) | ||
command="$command -w -Z`shquote $OPTARG`";; | ||
z) | ||
command="$command -w -z";; | ||
esac | ||
done | ||
shift `expr $OPTIND - 1` | ||
|
||
if test $# -eq 0; then | ||
echo 'paargs: missing arguments. Run paargs -h for details' 1>&2 | ||
exit 1 | ||
fi | ||
|
||
eval $command "$@" |
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,26 @@ | ||
=head1 NAME | ||
|
||
paargs - lalala | ||
|
||
=head1 SYNOPSIS | ||
|
||
B<paexec> I<[options]> | ||
|
||
B<paexec> -C I<[options]> I<command> I<[args...]> | ||
|
||
=head1 DESCRIPTION | ||
|
||
lalala | ||
|
||
=head1 BUGS/FEEDBACK | ||
|
||
Please send any comments, questions, bug reports etc. to me by e-mail | ||
or (even better) register them at sourceforge project home. Feature | ||
requests are also welcomed. | ||
|
||
=head1 HOME | ||
|
||
L<http://sourceforge.net/projects/paexec> | ||
|
||
=head1 SEE ALSO | ||
L<paexec(1)> |
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
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