#!/bin/bash

cd ..
rm -rf livemix-$1
cp -a livemix livemix-$1
cd livemix-$1

make clean
make distclean

rm -rf .settings
#rm config.h build-stamp config.guess config.sub .cdtproject .project
rm .cdtproject .project
rm -rf `svn status|grep ^?|awk '{print $2}'` # remove files not in svn
#rm config.h build-stamp config.guess config.sub .cdtproject .project i18n/livemix_fr.qm
find . -name .svn -print | while read f;
do
   rm -rf $f
done

#find . -name objs -print | while read f;
#do
#   rm -rf $f
#done
#find . -name libs -print | while read f;
#do
#   rm -rf $f
#done
find . -name "*~" -print | while read f;
do
   rm $f
done
#find . -name Makefile -print | while read f;
#do
#   rm $f
#done
#find . -name Makefile.am -print | while read f;
#do
#   rm $f
#done


echo "----"
