Code Search for Developers
 
 
  

copyDir.sh.in from GreenSocs at Krugle


Show copyDir.sh.in syntax highlighted


# copyDir.sh <srcdir> <dstdir>

# Can be configured not to overwrite existing subdirectories

srcdir=$1
dstdir=$2

srcdir=`cd $srcdir;pwd`
mkdir -p $dstdir
dstdir=`cd $dstdir;pwd`

if test "$srcdir" != "$dstdir"; then 

  cd $dstdir

  if test "$overwrite" = "yes"; then

    rm -rf *
    cp -r ${srcdir}/* .

  else

    for file in ${srcdir}/*; do
      if test ! -r $file; then
        cp -r $srcdir/$file .
      fi
    done

  fi

fi




See more files for this project here

GreenSocs

To develop SystemC infrustructure, basic IP, patches and add on library code for eventual standerdization.\r\nThe GreenSocs project is made up of a number of contributions (sub projects). Please visit www.greensocs.com for more information.

Project homepage: http://sourceforge.net/projects/greensocs
Programming language(s): C,C++,Java,Perl,XML
License: other

  Makefile.am
  copyDir.sh.in
  copyExamples.sh
  copyFiles.sh.in