Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
99cdaff7
Commit
99cdaff7
authored
Sep 06, 2001
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a makepath() function to cope with machines that do not have
'mkdir -p'. (Stone knives and bearskins...)
parent
c36b5017
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
rsync.fns
testsuite/rsync.fns
+24
-0
No files found.
testsuite/rsync.fns
View file @
99cdaff7
...
@@ -77,6 +77,30 @@ hands_setup() {
...
@@ -77,6 +77,30 @@ hands_setup() {
####################
# Many machines do not have "mkdir -p", so we have to build up long paths.
# How boring.
makepath
()
{
p
=
"
$1
"
(
# Absolut Unix.
if
echo
$p
|
grep
'^/'
>
/dev/null
then
cd
/
fi
# This will break if $1 contains a space.
for
c
in
`
echo
$p
|
tr
'/'
' '
`
do
[
-d
"
$c
"
]
||
mkdir
"
$c
"
||
return
$?
cd
"
$c
"
||
return
$?
done
)
}
###########################
###########################
# Run a test (in '$1') then compare directories $2 and $3 to see if
# Run a test (in '$1') then compare directories $2 and $3 to see if
# there are any difference. If there are, explain them.
# there are any difference. If there are, explain them.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment