Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
52a3fa44
...
52a3fa44e9c6e5832a0a27328dc6a8858db06217
authored
2002-08-06 15:05:23 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
New file. Prepares data for testsuite.
1 parent
5641e5df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
mail/testsuite/makespool
mail/testsuite/makespool
0 → 100755
View file @
52a3fa4
#! /bin/sh
if
[
"
$1
"
=
"-r"
]
;
then
shift
rm -rf
$*
exit
0
fi
mkdirhier
()
{
dir
=
""
for
d
in
`
echo
$1
|sed
's,/, ,g'
`
do
dir
=
"
$dir
/
$d
"
test
-d
$dir
||
mkdir
$dir
done
}
while
[
$#
-gt 0
]
do
SRCDIR
=
${
1
:?
}
DSTDIR
=
${
2
:?
}
shift
2
if
[
! -d
$SRCDIR
]
;
then
echo
"
$SRCDIR
not a directory"
>&2
exit
1
fi
if
[
! -r
$SRCDIR
/DISTFILES
]
;
then
echo
"
$SRCDIR
/DISTFILES does not exist"
>&2
exit
1
fi
mkdirhier
$DSTDIR
chmod -R u+w
$DSTDIR
cat
$SRCDIR
/DISTFILES |
while
read
NAME
do
test
-f
$DSTDIR
/
$NAME
&&
rm
$DSTDIR
/
$NAME
cp
$SRCDIR
/
$NAME
$DSTDIR
/
$NAME
chmod u+w
$DSTDIR
/
$NAME
done
done
\ No newline at end of file
Please
register
or
sign in
to post a comment