#!/bin/sh

# define variables
jarwork=/home/robert/mozilla-chrome/skins/

echo checking $jarwork for unneeded files...

cd $jarwork
xvfiles=`find -name ".xvpics"`
bakfiles=`find -name "*~"`

if test "$xvfiles"; then echo removing $xvfiles; rm -R $xvfiles; else echo No .xvpics directories found.; fi
if test "$bakfiles"; then echo removing $bakfiles; rm $bakfiles; else echo No trash files found.; fi
