Cross Reference: update
xref
: /
bind-9.11.3
/
doc
/
draft
/
update
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
update revision 393fd55d91306e6def3a3d06748eee031f57bd17
2
N/A
#!/
bin
/
sh
2
N/A
commit
=
2
N/A
if
type
fetch
>/
dev
/
null
2
>&
1
2
N/A
then
2
N/A
fetch
=
fetch
2
N/A
elif
type
curl
>/
dev
/
null
2
>&
1
2
N/A
then
2
N/A
fetch
=
"curl -O"
2
N/A
else
2
N/A
exit
1
2
N/A
fi
2
N/A
2
N/A
for
i
2
N/A
do
2
N/A
z=
`
expr
"$i"
:
'
http://www.ietf.org/internet-drafts/
\(.*\)'
`
2
N/A
if
test
-n
"$z"
2
N/A
then
2
N/A
i=
"$z"
2
N/A
fi
2
N/A
if
test
-f
"$i"
2
N/A
then
2
N/A
continue
2
N/A
fi
2
N/A
pat
=
`
echo
"$i"
|
sed
's/
...txt
/??.txt/'
`
2
N/A
old
=
`
echo
$pat
2
> /
dev
/
null
`
2
N/A
if
test
"X
$old
"
!=
"X
$pat
"
2
N/A
then
2
N/A
newer
=
0
2
N/A
for
j
in
$old
2
N/A
do
2
N/A
if
test
$j
">"
$i
2
N/A
then
2
N/A
newer
=
1
2
N/A
fi
2
N/A
done
2
N/A
if
test
$newer
=
1
2
N/A
then
2
N/A
continue
;
2
N/A
fi
2
N/A
fi
2
N/A
if
$fetch
"
http://www.ietf.org/internet-drafts/$i
"
2
N/A
then
git
add
"$i"
if
test
"X
$old
"
!=
"X
$pat
"
then
rm
$old
git
rm
$old
commit
=
"
$commit
$old
"
fi
commit
=
"
$commit
$i"
fi
done
if
test
-n
"
$commit
"
then
git
commit
-m
"new draft"
git
push
fi