Use same form in new and delete (item 5 of effective C++)
[u/mrichter/AliRoot.git] / share / makepatch
CommitLineData
9e1a0ddb 1#!/bin/sh
2outdir=${2:-"./"}
3tm=`date "+%Y-%m-%d-%H-%M-%S"`
4list=/tmp/$tm
5tar=$outdir/$tm.tar.gz
6cvs -z3 -qn update -Ad | grep -v conf/MachineDef | grep -v quickExecution > $list
7if [ `cat $list | grep -c -e "^C " -e "U "` -gt 0 ]
8then
9 cat $list | grep -e "^C " -e "^U "
10else
11 files=$outdir/$tm
12 cat $list | grep -e "^M " -e "^?" | awk '{print $2}' > $outdir/$tm
13 cvs -z3 diff `cat $files` > $outdir/$tm.diffs
14 if [ "$1" = "touch" ] ; then
15 touch `cat $files`
16 fi
17 tar zcvf $tar `cat $files` man share/alirun share/mangen share/makepatch
18 rm $list
19fi
20