Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > bd444d3ccea30d37175f8cbb320ca9f5 > files > 4

xwxapt-2.0-1.beta.fc13.src.rpm

#!/bin/sh
#Wrapper script for xwxapt to ensure that user configuration is present
xwxaptbin="/usr/libexec/xwxapt-bin"
#check if user configuration is present
if [ ! -e ~/xwxapt/xwxaptrc ]
then
echo "Creating user configuration file"
mkdir ~/xwxapt
mkdir ~/xwxapt/images
mkdir ~/xwxapt/record
cp /usr/share/xwxapt/xwxaptrc ~/xwxapt/xwxaptrc
fi
#launch xwxapt
echo "Configuration can be found in the xwxapt/xwxaptrc file in your users home directory"
$xwxaptbin