#
# Could use ./install.sh, but then we wouldn't get
# the protection of install_config_file
#
mkdir  -p  $INSTALL_ROOT/usr/share/hibernate                            &&
# cd there not always necessary?
cd $SOURCE_DIRECTORY                                                    &&
install  -o root  -g root  -m 0755  hibernate.sh                        \
         $INSTALL_ROOT/usr/sbin/hibernate                               &&

local CONFIG_FILE

for CONFIG_FILE in *.conf; do
  install_config_file  $CONFIG_FILE                                     \
  $INSTALL_ROOT/etc/hibernate/$CONFIG_FILE
done &&
cp  -r  hibernate.vim  scriptlets.d  $INSTALL_ROOT/usr/share/hibernate  &&
cp  hibernate.8  $INSTALL_ROOT/usr/share/man/man8                       &&
cp  hibernate.conf.5  $INSTALL_ROOT/usr/share/man/man5
