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

gEDA-cvs: CVS update: copywip.sh



  User: pcjc2   
  Date: 07/02/23 18:32:02

  Modified:    .        Tag: noscreen copywip.sh populatemkfiles.sh
  Log:
  sync with trunk
  
  
  
  
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.6.1   +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.1.6.1
  diff -u -b -r1.1 -r1.1.6.1
  --- copywip.sh	21 Oct 2006 03:57:46 -0000	1.1
  +++ copywip.sh	23 Feb 2007 23:32:02 -0000	1.1.6.1
  @@ -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.$$
  
  
  
  1.2.6.1   +2 -2      eda/geda/gaf/docs/scripts/populatemkfiles.sh
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: populatemkfiles.sh
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/docs/scripts/populatemkfiles.sh,v
  retrieving revision 1.2
  retrieving revision 1.2.6.1
  diff -u -b -r1.2 -r1.2.6.1
  --- populatemkfiles.sh	21 Oct 2006 04:14:27 -0000	1.2
  +++ populatemkfiles.sh	23 Feb 2007 23:32:02 -0000	1.2.6.1
  @@ -62,8 +62,8 @@
   }
   
   pwd=`pwd`
  -thisprogram=/home/ahvezda/2gaf/docs/scripts/populatemkfiles.sh
  -basedir=/home/ahvezda/2gaf/docs/wiki
  +thisprogram=/home/ahvezda/1gaf/docs/scripts/populatemkfiles.sh
  +basedir=/home/ahvezda/1gaf/docs/wiki
   
   subdir=`echo $pwd | awk -F$basedir '{print $2}'`
   
  
  
  


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