You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-nds/jxplorer/files/jxplorer-pre-r1

29 lines
709 B

jxplorer_home=@GENTOO_PORTAGE_EPREFIX@/usr/share/jxplorer/
home="${HOME}/.jxplorer"
if [ ! -d "${home}" ]; then
mkdir -v "${home}"
cp -v ${jxplorer_home}/connections.txt "${home}"
fi
try_create() {
[[ ! -f "${1}" ]] && touch "${1}"
}
if [ -d ${HOME}/.jxplorer ]; then
try_create "${home}/dxconfig.txt"
try_create "${home}/jxplorer.log"
if [ ! -f ${HOME}/.jxplorer/connections.txt ]; then
cp -v ${jxplorer_home}/connections.txt ${HOME}/.jxplorer
fi
for subdir in htmldocs icons images templates; do
[[ ! -e "${home}/${subdir}" ]] && \
ln -vs "${jxplorer_home}/${subdir}" "${home}/${subdir}"
done
if [ ! -e "${home}/security" ] ; then
cp -Rv "${jxplorer_home}/security" "${home}"
fi
fi