- patch originally from Peter Bieringer
This commit is contained in:
parent
afe45959fb
commit
ab53232420
@ -38,8 +38,8 @@ if [ ! -z "$JARS" ]; then
|
|||||||
rm -f $j
|
rm -f $j
|
||||||
|
|
||||||
# Create the directories first.
|
# Create the directories first.
|
||||||
for d in `find -type d | LC_ALL=C sort`; do
|
find -type d | LC_ALL=C sort | while read d; do
|
||||||
mkdir -p $JARDIR/$d
|
mkdir -p "$JARDIR/$d"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Get the modtime from the newest ChangeLog. If the project
|
# Get the modtime from the newest ChangeLog. If the project
|
||||||
@ -64,14 +64,16 @@ if [ ! -z "$JARS" ]; then
|
|||||||
|
|
||||||
# move the contents over to the a new directory in order and set
|
# move the contents over to the a new directory in order and set
|
||||||
# the times.
|
# the times.
|
||||||
for f in `find -type f | LC_ALL=C sort`; do
|
find -type f | LC_ALL=C sort | while read f; do
|
||||||
cp $f $JARDIR/$f
|
cp "$f" "$JARDIR/$f"
|
||||||
touch --date="$DATE" $JARDIR/$f
|
touch --date="$DATE" "$JARDIR/$f"
|
||||||
done
|
done
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
# Set the times of the directories.
|
# Set the times of the directories.
|
||||||
touch --date="$DATE" `find $JARDIR -type d`
|
find "$JARDIR" -type d | while read d; do
|
||||||
|
touch --date="$DATE" "$d"
|
||||||
|
done
|
||||||
|
|
||||||
# make the jar
|
# make the jar
|
||||||
pushd $JARDIR > /dev/null
|
pushd $JARDIR > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user