LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-20-2009, 10:20 PM   #1
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Rep: Reputation: 31
Need advice on how to link a subversion repo to my build environment


I work on several RPMs that are all for an overall larger project.
My subversion repo looks (or will once I set it up) like this:

/
/package-1
spec
source
tags
/package-2
spec
source
tags
/package-3
spec
source
tags

And so on. I have a spec file and sources for each package, and I would like to easily link them all into my build environment (/usr/src/redhat/SPECS and /usr/src/redhat/SOURCES). I'd like some advice on this before I jump. I'd ideally like to see my all my .spec files in the /usr/src/redhat/SPECS dir, all the sources for all the projects in the SOURCES dir. Has anyone else out there set up anything like this already that can offer some advice/howto on how to set this up so it's easy and efficient for me (I know the 2 may not be necessarily related).
Thanks for any advice!
 
Old 03-22-2009, 11:38 PM   #2
ilikemonkeys111
LQ Newbie
 
Registered: Mar 2009
Distribution: archlinux
Posts: 6

Rep: Reputation: 1
I don't know if this is what you had in mind, but what you might want to do is check out whichever package you're working on to /usr/src/redhat.

Code:
svn checkout <repository url>/package-1/ /usr/src/redhat/
Then you'll end up with /usr/src/redhat/spec, /usr/src/redhat/source, and /usr/src/redhat/tags. If you're using eclipse as your IDE, this is pretty easy with the subclipse plugin, as it integrates svn very nicely with your development environment and allows you to easily check out code into your working directory.
 
Old 03-22-2009, 11:53 PM   #3
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
I was going to recommend something similar, but couldn't express it gracefully at the time. I'd suggest the svn export command, however, because you shouldn't be pushing changes back the other way. Also, you could write a script that will pull all of the sources to the right place and all of the specs to the right place without much work (if you know bash, that is.) If not, we can help you out. It all depends on the level of automation you want.
Kevin Barry
 
  


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
recovering of build environment janos72 Linux - Software 2 03-17-2009 02:16 AM
Need advice finding a desktop environment that looks like Terminal. jumpmansbro Linux - Desktop 1 03-13-2009 12:35 AM
Subversion Help- applying changes in one repo to another mschrank99 Programming 3 01-02-2007 12:26 AM
Looking for build environment setup recommendations hq4ever Programming 1 11-09-2006 10:19 AM
build environment arkss Linux - Software 0 06-25-2005 04:54 PM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration