683 |
local dest="$1" |
local dest="$1" |
684 |
local opts |
local opts |
685 |
|
|
686 |
|
# enforce |
687 |
|
if [[ $1 = -f ]] |
688 |
|
then |
689 |
|
opts="-f" |
690 |
|
dest="$2" |
691 |
|
fi |
692 |
|
|
693 |
# recursive |
# recursive |
694 |
if [[ $1 = -r ]] || [[ $1 = -R ]] |
if [[ $1 = -r ]] || [[ $1 = -R ]] |
695 |
then |
then |
906 |
-b|--no-bindir) prefix=""; argv="$2" ;; |
-b|--no-bindir) prefix=""; argv="$2" ;; |
907 |
esac |
esac |
908 |
|
|
909 |
[[ -z ${argv} ]] && die "No argument given!" |
#[[ -z ${argv} ]] && die "No argument given!" |
910 |
|
|
911 |
confdir="$(dirname ${MCONFIG})" |
confdir="$(dirname ${MCONFIG})" |
912 |
if [[ ! -d ${prefix}/${confdir} ]] |
if [[ ! -d ${prefix}/${confdir} ]] |