[svn] / ecrypt / trunk / scripts / tools.sh  

svn: ecrypt/trunk/scripts/tools.sh

Diff for /ecrypt/trunk/scripts/tools.sh between version 61 and 113

version 61, Mon Aug 15 21:50:35 2005 UTC version 113, Tue Nov 1 19:17:15 2005 UTC
Line 106 
Line 106 
 }  }
   
 # -----------------------------------------------------------------------------  # -----------------------------------------------------------------------------
   
   relative ()
   {
       dst=$(cd "$1" && pwd)/.;
       src=$(cd "$2" && pwd)/.;
   
       while [ "$src" != "." ]; do
           if [ "${dst%%/*}" = "${src%%/*}" ]; then
               dst=${dst#*/};
           else
               dst=../$dst;
           fi
   
           src=${src#*/};
       done
   
       echo "${dst%/.}";
   }
   
   # -----------------------------------------------------------------------------


Generate output suitable for use with a patch program
Legend:
Removed from v.61  
changed lines
  Added in v.113

eSTREAM Project

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help