LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help on SVN? (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-on-svn-786225/)

your_shadow03 02-01-2010 10:13 AM

Need help on SVN?
 
I need help to write a script to commit files to SVN from a defined location to a SVN folder (ideally with new folder). Please help

Web31337 02-01-2010 11:45 AM

A fast solution:
Code:

SOURCEDIR=/home/user/htdocs/project-x
SVNDIR=/home/svn/repo/px/trunk

cp \
$SOURCEDIR/index.php \
$SOURCEDIR/init.php \
$SOURCEDIR/conf.php \
$SVNDIR

cp \
$SOURCEDIR/includes/someclass.php \
$SOURCEDIR/includes/something.php \
$SVNDIR/includes
echo -n "Release note for SVN commit: "
read note
svn ci -m "$note"

is that what you saying?
make sure those files are under SVN already.


All times are GMT -5. The time now is 05:48 PM.