mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
328c5f650f
* timezone/antarctica: Update from tzdata2001a. * timezone/asia: Likewise. * timezone/australasia: Likewise. * timezone/backward: Likewise. * timezone/etcetera: Likewise. * timezone/europe: Likewise. * timezone/leapseconds: Likewise. * timezone/northamerica: Likewise. * timezone/southamerica: Likewise. * timezone/systemv: Likewise. * timezone/yearistype: Likewise. * timezone/zone.tab: Likewise. * timezone/tzdump.c: Update from tzcode2001a. 2001-03-15 H.J. Lu <hjl@gnu.org> * intl/Makefile: Fix a typo. 2001-03-14 David Mosberger <davidm@hpl.hp.com> * gmon/gmon.c (write_call_graph): Avoid unaligned accesses when writing arc structures. 2001-03-15 H.J. Lu <hjl@gnu.org> * elf/Makefile ($(objpfx)tst-pathopt.out): Protected against cross-compiling. 2001-03-13 Andreas Schwab <schwab@suse.de> * posix/PTESTS2C.sed: Replace literal CRs by `\r'. 2001-03-15 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Fix test for control message fitting into message data. Patch by James Antill <james@and.org>.
38 lines
613 B
Bash
Executable File
38 lines
613 B
Bash
Executable File
#! /bin/sh
|
|
|
|
: '@(#)yearistype.sh 7.7'
|
|
|
|
case $#-$1 in
|
|
2-|2-0*|2-*[!0-9]*)
|
|
echo "$0: wild year - $1" >&2
|
|
exit 1 ;;
|
|
esac
|
|
|
|
case $#-$2 in
|
|
2-even)
|
|
case $1 in
|
|
*[24680]) exit 0 ;;
|
|
*) exit 1 ;;
|
|
esac ;;
|
|
2-nonpres|2-nonuspres)
|
|
case $1 in
|
|
*[02468][048]|*[13579][26]) exit 1 ;;
|
|
*) exit 0 ;;
|
|
esac ;;
|
|
2-odd)
|
|
case $1 in
|
|
*[13579]) exit 0 ;;
|
|
*) exit 1 ;;
|
|
esac ;;
|
|
2-uspres)
|
|
case $1 in
|
|
*[02468][048]|*[13579][26]) exit 0 ;;
|
|
*) exit 1 ;;
|
|
esac ;;
|
|
2-*)
|
|
echo "$0: wild type - $2" >&2 ;;
|
|
esac
|
|
|
|
echo "$0: usage is $0 year even|odd|uspres|nonpres|nonuspres" >&2
|
|
exit 1
|