>> This may be partly my ignorance of svn commands showing, but is
>> there any
>> way to prevent the 'installer' folder from coming back every time
>> you run
>> "svn update"?
> I'd probably wrap the "problem" into a small bash script and rm -rf
> installer/ when you fetched it. No idea otherwise.
You can chain the commands using a semi-colon -
svn update ; rm -rf installer
But then you end up downloading the installer files each time you
update.
A better command would be
mv ./installer1 ./installer ; svn update ; mv ./installer ./installer1
which moves the installer files out of the way during use, but moves
them back so svn only downloads / applies changes.
You could put an alias in your ~/.bash_profile something like this :
alias svnup='cd /home/chasd/roundcube/trunk ; /bin/mv ./roundcubemail/
installer1 ./roundcubemail/installer ; /usr/bin/svn update ; mv ./
roundcubemail/installer ./roundcubemail/installer1'
Then you can type "svnup" and everything is automatic. Of course,
aliases are loaded when you log in, so if you change ~/.bash_profile
you have to log out and log back in to pick up that change. If you
wanted to live dangerously, you could put that in a cron script so
you wouldn't have to type the command.
Personally, I like to keep the SVN checkout separate from the live
stuff so I can hack on it without getting a bunch of irate phone
calls from users.
I use rsync to copy my changes over to the live directory, and my
script excludes netatalk files and other miscellaneous stuff -
#!/bin/sh
# Sync RoundCube SNV to webdev live
#
if [ $1 ]; then
if [ $1 == "v" ];then
SYNC_ARGS="-auv"
else
SYNC_ARGS="-aunv"
fi
/usr/bin/rsync $SYNC_ARGS \
--exclude unused/ --exclude *DS_Store \
--exclude .Apple* --exclude *.svn --exclude ._* \
--exclude SQL/ --exclude *.gz --exclude *.old --exclude *.tar \
--exclude logs/ --exclude installer/ \
/home/chasd/roundcube/trunk/roundcubemail/* /var/www/roundcube
else
echo "No Input"
echo "Must have single parameter either 'n' or 'v' -"
echo "Example usage: ./sync_rc n"
fi
HTH.
Charles Dostale
System Admin - Silver Oaks Communications
http://www.silveroaks.com/
824 17th Street, Moline IL 61265
_______________________________________________
List info: http://lists.roundcube.net/dev/