On Apr 7, 2014, at 5:06 PM, "Jeff Squyres (jsquyres)" <jsquy...@cisco.com> 
wrote:

> Ok, lemme look at tar -- there's a canonical way to copy dir trees with tar; 
> let me look it up...

Does this work for you?  It seems to do the Right Thing for me on OS X and 
Linux.


diff --git a/config/distscript.sh b/config/distscript.sh
index d7bdfa4..68f1f8a 100755
--- a/config/distscript.sh
+++ b/config/distscript.sh
@@ -69,7 +69,7 @@ fi
 # Trivial helper function
 doit() {
     echo $*
-    $*
+    eval $*
 }
 
 echo "*** Copying doxygen-doc tree to dist..."
@@ -77,7 +77,7 @@ echo "*** Directory: srcdir: $srcdir, distdir: $distdir, pwd: 
 doit mkdir -p $distdir/doc/doxygen-doc
 doit chmod -R a=rwx $distdir/doc/doxygen-doc
 doit rm -rf $distdir/doc/doxygen-doc
-doit cp -rpf $srcdir/doc/doxygen-doc $distdir/doc
+doit "tar -c -C $srcdir -h -f - doc/doxygen-doc | tar -x -C $distdir -f -"
 
 echo "*** Copying new README"
 ls -lf $distdir/README


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/

Reply via email to