mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
32 lines
740 B
Bash
32 lines
740 B
Bash
#!/bin/sh
|
|
|
|
# Parse input parameters
|
|
CKNAME=$(basename "$0")
|
|
args=$(getopt -n $CKNAME -o P:,I: -l portable-prefix:,install-prefix:,default -- "$@")
|
|
eval set -- $args
|
|
for A
|
|
do
|
|
case "$A" in
|
|
--)
|
|
DC_HELP_INSTALL_DIR=/opt/doublecmd/doc
|
|
;;
|
|
-P|--portable-prefix)
|
|
shift
|
|
DC_HELP_INSTALL_DIR=$(eval echo $1/doublecmd/doc)
|
|
break
|
|
;;
|
|
-I|--install-prefix)
|
|
shift
|
|
DC_INSTALL_PREFIX=$(eval echo $1)
|
|
DC_HELP_INSTALL_DIR=$DC_INSTALL_PREFIX/opt/doublecmd/doc
|
|
break
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
# Clean help directory
|
|
rm -rf $DC_HELP_INSTALL_DIR/*
|
|
|
|
# Copy Russian help files
|
|
cp -r doc/ru $DC_HELP_INSTALL_DIR/
|