[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: copywip.sh



  User: ahvezda 
  Date: 07/02/12 21:26:14

  Modified:    .        copywip.sh
  Log:
  Added new wiki content (Makefiles not updated yet)
  
  
  
  
  Revision  Changes    Path
  1.2       +22 -2     eda/geda/gaf/docs/scripts/copywip.sh
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: copywip.sh
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/docs/scripts/copywip.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- copywip.sh	21 Oct 2006 03:57:46 -0000	1.1
  +++ copywip.sh	13 Feb 2007 02:26:14 -0000	1.2
  @@ -1,8 +1,28 @@
   #!/bin/sh
   
  +# Handle changed files
   diff -r -q wip wiki | grep Files | sed "s/Files/cp -f/" | sed "s/ and / /" | sed "s/ differ//" > tmp$$.sh
  -
   sh ./tmp$$.sh
  -
   rm -f tmp$$.sh
   
  +
  +# Handle new files (still buggy but works for at least two levels)
  +diff -r -q wip wiki | grep "Only in wip" | sed "s/Only in//" | sed "s/: /:/" > filelist.$$
  +
  +for i in `cat filelist.$$`
  +do
  +	directory=`echo $i | awk -F: '{print $1}'`
  +	file=`echo $i | awk -F: '{print $2}'`
  +	basedir=`basename $directory`
  +
  +	echo Processing: $directory $file
  +	if [ "$basedir" = "wip" ] 
  +	then
  +		cp -f $basedir/$file wiki/
  +	else
  +		mkdir -p wiki/$basedir > /dev/null 2>&1
  +		cp -f wip/$basedir/$file wiki/$basedir
  +	fi
  +done
  +
  +rm -f filelist.$$
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs