#!/bin/sh # ***************************************************************************** # twlog.sh.in - Install wrapper script for twlog # ------------------- # begin : July 12 2010 # copyright : (C) 2010 by Randall J. Berry N3LRX # email : dp67@fedoraproject.org # ***************************************************************************** # ***************************************************************************** # * * # * This program is free software; you can redistribute it and/or modify * # * it under the terms of the GNU General Public License as published by * # * the Free Software Foundation; either GPL version 2 of the License, or * # * (at your option) any later version. * # * * # * This program is distributed in the hope that it will be useful, * # * but WITHOUT ANY WARRANTY; without even the implied warranty of * # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * # * GNU General Public License for more details. * # * * # * You should have received a copy of the GNU General Public License * # * along with this program; if not, write to the Free Software * # * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * # * * # ***************************************************************************** # Wrapper script for twlog to ensure that configuration is present twlogbin="/usr/libexec/twlog-bin" # Check if user configuration is present # Removed log directory, twlog already checks and if not installed it installs. # if [ ! -e ~/.twlogDir ] # then # mkdir ~/.twlogDir # fi # Check if config file is present, if not copy user config file to ~/. If present ignore. if [ ! -e ~/Twlog ] then cp /usr/share/X11/app-defaults/Twlog ~/Twlog fi # Launch twlog $twlogbin