Subversion Repositories DevTools

Rev

Rev 3848 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3848 Rev 4057
Line 9... Line 9...
9
 
9
 
10
#------------------------------------------------------------------------------
10
#------------------------------------------------------------------------------
11
# Takes $1 and removes all relative paths (. and ..) from it.  The cleaned up
11
# Takes $1 and removes all relative paths (. and ..) from it.  The cleaned up
12
# directory is written to stdout.
12
# directory is written to stdout.
13
#------------------------------------------------------------------------------
13
#------------------------------------------------------------------------------
14
function cleanup_dir
14
cleanup_dir ()
15
{
15
{
16
    DIR_PARTS=`echo $1 | sed "s|/| |g"`
16
    DIR_PARTS=`echo $1 | sed "s|/| |g"`
17
    
17
    
18
    CLEANUP_DIR=""
18
    CLEANUP_DIR=""
19
    for PART in ${DIR_PARTS}; do
19
    for PART in ${DIR_PARTS}; do