Difference between revisions of "User talk:Snoble"

From SME Server
Jump to navigationJump to search
m
m
Line 1: Line 1:
 
 
#set up developer environment
 
#set up developer environment
 
  $ cat /etc/profile.d/smebuild.sh
 
  $ cat /etc/profile.d/smebuild.sh
Line 9: Line 8:
 
   
 
   
 
  # DO NOT set CVSROOT
 
  # DO NOT set CVSROOT
sf_cvsroot_anon=:pserver:anonymous@smeserver.cvs.sourceforge.net:/cvsroot/smeserver
 
alias mzgetsf_anon="mzget --dir $sf_cvsroot_anon"
 
 
sf_cvsroot=smeserver.cvs.sourceforge.net:/cvsroot/smeserver
 
alias mzgetsf="mzget --dir $sf_cvsroot"
 
alias mzimportsf="mzimport --dir $sf_cvsroot" 
 
 
sfcon_cvsroot=smecontribs.cvs.sourceforge.net:/cvsroot/smecontribs
 
alias mzgetsfcon="mzget --dir $sfcon_cvsroot"
 
alias mzimportsfcon="mzimport --dir $sfcon_cvsroot"
 
 
export PATH=$PATH:/builds/bin
 
 
   
 
   
 
  alias rm='rm -i'
 
  alias rm='rm -i'
Line 38: Line 25:
  
 
#import cvs code (not source code)
 
#import cvs code (not source code)
  mkdir smeserver
+
  mkdir ~/smeserver
  mkdir smeserver/work
+
  cd ~/smeserver
mkdir smecontribs
 
mkdir smecontribs/work
 
 
cd smeserver
 
 
  cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P rpms  
 
  cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P rpms  
 
  cd rpms
 
  cd rpms
 
  cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P common  
 
  cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P common  
 
   
 
   
  cd smecontribs
+
mkdir ~/smecontribs
 +
  cd ~/smecontribs  
 
  cvs -z3 -d:ext:smecontribs.cvs.sourceforge.net:/cvsroot/smecontribs co -P rpms  
 
  cvs -z3 -d:ext:smecontribs.cvs.sourceforge.net:/cvsroot/smecontribs co -P rpms  
 
  cd rpms
 
  cd rpms

Revision as of 01:27, 25 December 2007

  1. set up developer environment
$ cat /etc/profile.d/smebuild.sh

# Developer environment
# This gets symlinked into /etc/profile.d 

export CVS_RSH=ssh # tell CVS to use ssh

# DO NOT set CVSROOT

alias rm='rm -i'
alias cp='cp -i --preserve=timestamps'
alias mv='mv -i'


  1. if local username is different to sf.net username
$ cat ~/.ssh/config
Host  smeserver.cvs.sourceforge.net
User  sfusername
Host  smecontribs.cvs.sourceforge.net
User  sfusername

$ chmod 600 ~/.ssh/config


  1. import cvs code (not source code)
mkdir ~/smeserver
cd ~/smeserver
cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P rpms 
cd rpms
cvs -z3 -d:ext:smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P common 

mkdir ~/smecontribs
cd ~/smecontribs 
cvs -z3 -d:ext:smecontribs.cvs.sourceforge.net:/cvsroot/smecontribs co -P rpms 
cd rpms
cvs -z3 -d:ext:smecontribs.cvs.sourceforge.net:/cvsroot/smecontribs co -P common 


  1. go to work
cd smeserver/work or smecontribs/work
mzgetsf smeserver-release
cd smeserver-release
mzprep
(make changes)
mzpatch -n ..........
edit F/*.spec
mzbuild
(check rpm)
mzput -m 'See changelog'