LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2010, 10:13 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
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
 
Old 02-01-2010, 11:45 AM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 05:58 PM
SVN: Could not open requested SVN filesystem rfkrocktk Linux - Server 1 11-24-2009 04:28 PM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
svn checkout -bash svn command not found Anauj0101 Linux - Newbie 6 04-20-2008 05:50 PM
SVN Help Crobat Linux - Software 1 07-18-2006 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration