mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 12:18:47 +00:00
configure: add --help text
This commit is contained in:
parent
2c9c4d9da7
commit
eb0db7221a
13
configure
vendored
13
configure
vendored
@ -2,6 +2,18 @@
|
|||||||
|
|
||||||
prefix=/usr/local
|
prefix=/usr/local
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "supported arguments"
|
||||||
|
echo "--prefix=/path default: $prefix"
|
||||||
|
echo "--exec_prefix=/path default: $prefix/bin"
|
||||||
|
echo "--bindir=/path default: $prefix/bin"
|
||||||
|
echo "--libdir=/path default: $prefix/lib"
|
||||||
|
echo "--includedir=/path default: $prefix/include"
|
||||||
|
echo "--sysconfdir=/path default: $prefix/etc"
|
||||||
|
echo "--help : show this text"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
spliteq() {
|
spliteq() {
|
||||||
arg=$1
|
arg=$1
|
||||||
echo "${arg#*=}"
|
echo "${arg#*=}"
|
||||||
@ -17,6 +29,7 @@ parsearg() {
|
|||||||
--libdir=*) libdir=`spliteq $1`;;
|
--libdir=*) libdir=`spliteq $1`;;
|
||||||
--includedir=*) includedir=`spliteq $1`;;
|
--includedir=*) includedir=`spliteq $1`;;
|
||||||
--sysconfdir=*) sysconfdir=`spliteq $1`;;
|
--sysconfdir=*) sysconfdir=`spliteq $1`;;
|
||||||
|
--help) usage;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user