All pastes #1840966 Raw Edit

CVS Script

public text v1 · immutable
#1840966 ·published 2010-03-15 07:18 UTC
rendered paste body
#!/bin/sh
  2 
  3 #reset group dir 
  4 cd /public/groups/SEPT/sept01/
  5 rm -rf *
  6 
  7 
  8 #set up directories
  9 mkdir cvs
 10 mkdir main
 11 
 12 #make test file in directory to import
 13 echo "testing" > main/text.txt
 14 
 15 #set CVSROOT env variable
 16 cd cvs
 17 
 18 CVSROOT='/public/groups/SEPT/sept01/cvs'
 19 
 20 #go back to group dir
 21 cd ..
 22 
 23 
 24 #initialise reppo
 25 cvs -d /public/groups/SEPT/sept01/cvs init
 26 
 27 #import directory into reppo
 28 cd main
 29 cvs -d /public/groups/SEPT/sept01/cvs import -m "Imported directory"  mainmodule drscript R_01
 30 
 31 #give all group members permissions
 32 cd ..
 33 chmod -R g+wrx *
 34 
 35 exit 0