Update of /cvsroot/fink/experimental/fangism/scripts
In directory vz-cvs-3.sog:/tmp/cvs-serv19618

Modified Files:
        link-identical-files.sh 
Log Message:
skip dirs


Index: link-identical-files.sh
===================================================================
RCS file: /cvsroot/fink/experimental/fangism/scripts/link-identical-files.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- link-identical-files.sh     27 Oct 2011 00:37:24 -0000      1.1
+++ link-identical-files.sh     28 Oct 2011 18:15:47 -0000      1.2
@@ -9,29 +9,34 @@
 do
 # if file exists in . (destdir)
 dest=`basename $f`
-if test -f $dest
-then
-# destdir is not already linked
-if test ! -L $dest
-then
-if diff -q $f $dest
+if test -d $f
 then
-# and both files are identical
-# create link
-       echo "SAME: $dest -- linking"
-       ln -s -f $f .
-else
-# report differences
-       echo "DIFF: $dest"
-fi
-else
-       # already linked
-#      echo "link: $dest"
-       :
-fi
+       echo "dir:  $f"
 else
-       # only exists in srcdir
-       echo "NEW:  $dest"
+       if test -f $dest
+       then
+               # destdir is not already linked
+               if test ! -L $dest
+               then
+                       if diff -q $f $dest
+                       then
+                       # and both files are identical
+                       # create link
+                               echo "SAME: $dest -- linking"
+                               ln -s -f $f .
+                       else
+                       # report differences
+                               echo "DIFF: $dest"
+                       fi
+               else
+                       # already linked
+               #       echo "link: $dest"
+                       :
+               fi
+       else
+               # only exists in srcdir
+               echo "NEW:  $dest"
+       fi
 fi
 done
 


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to