Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 35 lines (25 sloc) 537 Bytes
#!/bin/sh
BEG="1917"
if test "${have_gdate_2039}" = "yes"; then
END="4095"
else
END="2038"
fi
if test "${have_gdate}" != "yes"; then
## SKIP in new automake
exit 77
fi
TOOLDIR="$(pwd)/../src"
DCONV="${TOOLDIR}/dconv"
foo=`mktemp "/tmp/tmp.XXXXXXXXXX"`
bar=`mktemp "/tmp/tmp.XXXXXXXXXX"`
for y in `seq ${BEG} ${END}`; do
"${DCONV}" "${y}-01-01" -f '%F %a'
done > "${foo}"
for y in `seq ${BEG} ${END}`; do
"${GDATE}" -d "${y}-01-01" '+%F %a'
done > "${bar}"
diff "${foo}" "${bar}"
rc=${?}
rm -f "${foo}" "${bar}"
exit ${rc}
Something went wrong with that request. Please try again.