2 # Copyright (c) 2007, Bart Trojanowski <bart@jukie.net>
4 # This script installs wmiirc-lua files into $HOME/.wmii-lua
11 DST_DIR
=$
(eval echo "%HOME_WMII%")
13 SRC_WMIIRC
="${SRC_DIR}/wmiirc.lua"
14 DST_WMIIRC
="${DST_DIR}/wmiirc"
20 echo >&2 "Installing in $DST_DIR"
22 ${INSTALL} -m 755 -d "${DST_DIR}"
23 ${INSTALL} -m 744 -T "${SRC_WMIIRC}" "${DST_WMIIRC}"
29 while test -n "$1" ; do
40 echo >&2 "Invalid option
$cmd"
46 if test -z "$FORCE" ; then
48 if ! test -f "${SRC_WMIIRC}" ; then
49 echo >&2 "System wide files
for wmiirc-lua not installed.
"
53 if test -f "${DST_WMIIRC}" ; then
54 echo >&2 "You already have files installed
in ${DST_WMIIRC}.
"
56 echo >&2 "Please
select one of the following options and rerun this
script:"
58 echo >&2 " $prog --force - overwrite existing files
"
59 echo >&2 " $prog --backup - backup existing files
"
66 # vim: set et sw=8 ts=8 :