Changeset 920
- Timestamp:
- Dec 1, 2009, 2:01:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/svndigest-copy-cache.as
r914 r920 54 54 AS_IF([test $# = 1], 55 55 [AS_ERROR([option `--root' needs an argument], [1])]) 56 # restore font-lock ` 56 57 srcdir=$2 57 58 shift … … 64 65 AS_IF([test $# = 1], 65 66 [AS_ERROR([option `--target' needs an argument], [1])]) 67 # restore font-lock ` 66 68 targetdir=$2 67 69 shift … … 81 83 AS_IF([test -d "$srcdir"],[], 82 84 [AS_ERROR([\`$srcdir' is not a directory], [1])]) 85 # restore font-lock ' 83 86 84 87 AS_IF([test -d "$targetdir"],[], 85 88 [AS_ERROR([\`$targetdir' is not a directory], [1])]) 89 # restore font-lock ' 90 86 91 87 92 AS_IF([test "$rootdir" = "$targetdir"], 88 93 [AS_ERROR([\`$rootdir' and \`$targetdir' are the same directory], [1])]) 94 89 95 90 96 # Do the actual copying … … 94 100 mother=`AS_DIRNAME([$file])` 95 101 mother_base=`AS_BASENAME([$mother])` 96 # ignore files whose mother is not named '.svndigest', which implies97 # we also ignore `$srcdir/foo.svndigest-cache' when $srcdir is98 # `.svndigest' because mother will be euqal to `.' in this99 # case. This is the desired behavior because file `foo' (which100 # `foo.svndigest-cache' reflects) resides in `$srcdir/..' which102 # ignore files whose mother is not named .svndigest', which implies 103 # we also ignore '$srcdir/foo.svndigest-cache' when $srcdir is 104 # '.svndigest' because mother will be euqal to '.' in this 105 # case. This is the desired behavior because file 'foo' (which 106 # 'foo.svndigest-cache' reflects) resides in '$srcdir/..' which 101 107 # is outside the tree we are expected to copy. 102 108 AS_VAR_IF([mother_base], [.svndigest], [
Note: See TracChangeset
for help on using the changeset viewer.