Codebase list im / f65d9d6
Imported Upstream version 152 Tatsuya Kinoshita 8 years ago
54 changed file(s) with 474 addition(s) and 390 deletion(s). Raw diff Collapse all Expand all
0 152 (2015/12/20)
1
2 * Fix unescaped left brace in regex is deprecated for Perl 5.22
3 * Update config.guess and config.sub with autotools-dev 20150820.1
4 * Add gitlog2imchanges to easily generate 00changes
5
06 151 (2011/05/25)
17
28 * IM/Config.pm.in, IM/Scan.pm: Don't use defined(%hash) for Perl 5.12.
0 Differences between IM 152 and IM 151
1
2 * Prevent warnings for Perl 5.22
3 * Update config.guess and config.sub
4
05 Differences between IM 151 and IM 150
16
27 * Tiny changes for Perl 5.12.
22 Kazu Yamamoto
33 Tatsuya Kinoshita
44
5 May 25, 2011
5 Dec 20, 2015
66
77
88 <<<Copyright>>>
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Address.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Address.pm version 20151220(IM152)";
1111
1212 package IM::Address;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Alias.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Alias.pm version 20151220(IM152)";
1111
1212 package IM::Alias;
1313 require 5.003;
77 ### Revised: May 25, 2011
88 ###
99
10 my $PM_VERSION = "IM::Config.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Config.pm version 20151220(IM152)";
1111
1212 package IM::Config;
1313 require 5.003;
575575 my($name, $val, $case) = @_;
576576 my($mnam, $desc, $vnam);
577577
578 $val =~ s/\${(\w+)}/$ENV{$1}/ge;
578 $val =~ s/\$\{(\w+)\}/$ENV{$1}/ge;
579579 if ($val =~ /^\$(.*)/) {
580580 # $InboxFolder -> +inbox
581581 $val = ${$C_VNAM{lc($1)}};
77 ### Revised: Feb 15, 2010
88 ###
99
10 my $PM_VERSION = "IM::EncDec.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::EncDec.pm version 20151220(IM152)";
1111
1212 package IM::EncDec;
1313 require 5.003;
216216 sub hz_to_ctext($) {
217217 my $str = shift;
218218 $str =~ s/(~~)/~/g;
219 $str =~ s/(~{)/\e\$(A/g;
220 $str =~ s/(~})/\e(B/g;
219 $str =~ s/(~\{)/\e\$(A/g;
220 $str =~ s/(~\})/\e(B/g;
221221 return $str;
222222 }
223223
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::File.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::File.pm version 20151220(IM152)";
1111
1212 package IM::File;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Folder.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Folder.pm version 20151220(IM152)";
1111
1212 package IM::Folder;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::GetPass.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::GetPass.pm version 20151220(IM152)";
1111
1212 package IM::GetPass;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Grep.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Grep.pm version 20151220(IM152)";
1111
1212 package IM::Grep;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::History.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::History.pm version 20151220(IM152)";
1111
1212 package IM::History;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Http.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Http.pm version 20151220(IM152)";
1111
1212 package IM::Http;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Imap.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Imap.pm version 20151220(IM152)";
1111
1212 package IM::Imap;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Iso2022jp.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Iso2022jp.pm version 20151220(IM152)";
1111
1212 package IM::Iso2022jp;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Japanese.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Japanese.pm version 20151220(IM152)";
1111
1212 package IM::Japanese;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::LocalMbox.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::LocalMbox.pm version 20151220(IM152)";
1111
1212 package IM::LocalMbox;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Log.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Log.pm version 20151220(IM152)";
1111
1212 package IM::Log;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::MD5.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::MD5.pm version 20151220(IM152)";
1111
1212 package IM::MD5;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Message.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Message.pm version 20151220(IM152)";
1111
1212 package IM::Message;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::MsgStore.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::MsgStore.pm version 20151220(IM152)";
1111
1212 package IM::MsgStore;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Nntp.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Nntp.pm version 20151220(IM152)";
1111
1212 package IM::Nntp;
1313 require 5.003;
77 ### Revised: Feb 15, 2010
88 ###
99
10 my $PM_VERSION = "IM::Pop.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Pop.pm version 20151220(IM152)";
1111
1212 package IM::Pop;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Recipient.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Recipient.pm version 20151220(IM152)";
1111
1212 package IM::Recipient;
1313 require 5.003;
77 ### Revised: May 25, 2011
88 ###
99
10 my $PM_VERSION = "IM::Scan.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Scan.pm version 20151220(IM152)";
1111
1212 package IM::Scan;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Smtp.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Smtp.pm version 20151220(IM152)";
1111
1212 package IM::Smtp;
1313 require 5.003;
88 ### Revised: Apr 23, 2007
99 ###
1010
11 my $PM_VERSION = "IM::Ssh.pm version 20110525(IM151)";
11 my $PM_VERSION = "IM::Ssh.pm version 20151220(IM152)";
1212
1313 package IM::Ssh;
1414 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Stdio.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Stdio.pm version 20151220(IM152)";
1111
1212 package IM::Stdio;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::TcpTransaction.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::TcpTransaction.pm version 20151220(IM152)";
1111
1212 package IM::TcpTransaction;
1313 require 5.003;
77 ### Revised: Apr 23, 2007
88 ###
99
10 my $PM_VERSION = "IM::Util.pm version 20110525(IM151)";
10 my $PM_VERSION = "IM::Util.pm version 20151220(IM152)";
1111
1212 package IM::Util;
1313 require 5.003;
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
5
6 timestamp='2011-05-11'
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
75
86 # This file is free software; you can redistribute it and/or modify it
97 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
8 # the Free Software Foundation; either version 3 of the License, or
119 # (at your option) any later version.
1210 #
1311 # This program is distributed in the hope that it will be useful, but
1614 # General Public License for more details.
1715 #
1816 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2218 #
2319 # As a special exception to the GNU General Public License, if you
2420 # distribute this file as part of a program that contains a
2521 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
3225 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
3627 #
3728 # You can get the latest version of this script from:
3829 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
30 #
31 # Please send patches to <config-patches@gnu.org>.
32
3933
4034 me=`echo "$0" | sed -e 's,.*/,,'`
4135
5549 GNU config.guess ($timestamp)
5650
5751 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
60 Software Foundation, Inc.
52 Copyright 1992-2015 Free Software Foundation, Inc.
6153
6254 This is free software; see the source for copying conditions. There is NO
6355 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
139131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141133
134 case "${UNAME_SYSTEM}" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
152 ;;
153 esac
154
142155 # Note: order is significant - the case branches are not exclusive.
143156
144157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145158 *:NetBSD:*:*)
146159 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
160 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
148161 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149162 # switched to ELF, *-*-netbsd* would select the old
150163 # object file format. This provides both forward
154167 # Note: NetBSD doesn't particularly care about the vendor
155168 # portion of the name. We always set it to "unknown".
156169 sysctl="sysctl -n hw.machine_arch"
157 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
158 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
170 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
171 /sbin/$sysctl 2>/dev/null || \
172 /usr/sbin/$sysctl 2>/dev/null || \
173 echo unknown)`
159174 case "${UNAME_MACHINE_ARCH}" in
160175 armeb) machine=armeb-unknown ;;
161176 arm*) machine=arm-unknown ;;
162177 sh3el) machine=shl-unknown ;;
163178 sh3eb) machine=sh-unknown ;;
164179 sh5el) machine=sh5le-unknown ;;
180 earmv*)
181 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
182 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
183 machine=${arch}${endian}-unknown
184 ;;
165185 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
166186 esac
167187 # The Operating System including object format, if it has switched
168188 # to ELF recently, or will in the future.
169189 case "${UNAME_MACHINE_ARCH}" in
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
190 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
171191 eval $set_cc_for_build
172192 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173193 | grep -q __ELF__
183203 os=netbsd
184204 ;;
185205 esac
206 # Determine ABI tags.
207 case "${UNAME_MACHINE_ARCH}" in
208 earm*)
209 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
210 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
211 ;;
212 esac
186213 # The OS release
187214 # Debian GNU/NetBSD machines have a different userland, and
188215 # thus, need a distinct triplet. However, they do not need
193220 release='-gnu'
194221 ;;
195222 *)
196 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
223 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
197224 ;;
198225 esac
199226 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
200227 # contains redundant information, the shorter form:
201228 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 echo "${machine}-${os}${release}"
229 echo "${machine}-${os}${release}${abi}"
230 exit ;;
231 *:Bitrig:*:*)
232 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
233 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
203234 exit ;;
204235 *:OpenBSD:*:*)
205236 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
216247 exit ;;
217248 *:MirBSD:*:*)
218249 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
250 exit ;;
251 *:Sortix:*:*)
252 echo ${UNAME_MACHINE}-unknown-sortix
219253 exit ;;
220254 alpha:OSF1:*:*)
221255 case $UNAME_RELEASE in
303337 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
304338 echo arm-acorn-riscix${UNAME_RELEASE}
305339 exit ;;
306 arm:riscos:*:*|arm:RISCOS:*:*)
340 arm*:riscos:*:*|arm*:RISCOS:*:*)
307341 echo arm-unknown-riscos
308342 exit ;;
309343 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
561595 else
562596 IBM_ARCH=powerpc
563597 fi
564 if [ -x /usr/bin/oslevel ] ; then
565 IBM_REV=`/usr/bin/oslevel`
598 if [ -x /usr/bin/lslpp ] ; then
599 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
600 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
566601 else
567602 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
568603 fi
791826 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
792827 exit ;;
793828 *:FreeBSD:*:*)
794 case ${UNAME_MACHINE} in
795 pc98)
796 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
829 UNAME_PROCESSOR=`/usr/bin/uname -p`
830 case ${UNAME_PROCESSOR} in
797831 amd64)
798832 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799833 *)
800 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
834 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
801835 esac
802836 exit ;;
803837 i*:CYGWIN*:*)
804838 echo ${UNAME_MACHINE}-pc-cygwin
805839 exit ;;
840 *:MINGW64*:*)
841 echo ${UNAME_MACHINE}-pc-mingw64
842 exit ;;
806843 *:MINGW*:*)
807844 echo ${UNAME_MACHINE}-pc-mingw32
845 exit ;;
846 *:MSYS*:*)
847 echo ${UNAME_MACHINE}-pc-msys
808848 exit ;;
809849 i*:windows32*:*)
810850 # uname -m includes "-pc" on this system.
851891 exit ;;
852892 *:GNU:*:*)
853893 # the GNU system
854 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
894 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
855895 exit ;;
856896 *:GNU/*:*:*)
857897 # other systems with GNU libc and userland
858 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
898 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
859899 exit ;;
860900 i*86:Minix:*:*)
861901 echo ${UNAME_MACHINE}-pc-minix
902 exit ;;
903 aarch64:Linux:*:*)
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
905 exit ;;
906 aarch64_be:Linux:*:*)
907 UNAME_MACHINE=aarch64_be
908 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
862909 exit ;;
863910 alpha:Linux:*:*)
864911 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
871918 EV68*) UNAME_MACHINE=alphaev68 ;;
872919 esac
873920 objdump --private-headers /bin/sh | grep -q ld.so.1
874 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
875 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
921 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
922 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
923 exit ;;
924 arc:Linux:*:* | arceb:Linux:*:*)
925 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
876926 exit ;;
877927 arm*:Linux:*:*)
878928 eval $set_cc_for_build
879929 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
880930 | grep -q __ARM_EABI__
881931 then
882 echo ${UNAME_MACHINE}-unknown-linux-gnu
932 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
883933 else
884934 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
885935 | grep -q __ARM_PCS_VFP
886936 then
887 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
937 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
888938 else
889 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
939 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
890940 fi
891941 fi
892942 exit ;;
893943 avr32*:Linux:*:*)
894 echo ${UNAME_MACHINE}-unknown-linux-gnu
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
895945 exit ;;
896946 cris:Linux:*:*)
897 echo cris-axis-linux-gnu
947 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
898948 exit ;;
899949 crisv32:Linux:*:*)
900 echo crisv32-axis-linux-gnu
950 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
951 exit ;;
952 e2k:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
901954 exit ;;
902955 frv:Linux:*:*)
903 echo frv-unknown-linux-gnu
956 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
957 exit ;;
958 hexagon:Linux:*:*)
959 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
904960 exit ;;
905961 i*86:Linux:*:*)
906 LIBC=gnu
907 eval $set_cc_for_build
908 sed 's/^ //' << EOF >$dummy.c
909 #ifdef __dietlibc__
910 LIBC=dietlibc
911 #endif
912 EOF
913 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
914 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
962 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
915963 exit ;;
916964 ia64:Linux:*:*)
917 echo ${UNAME_MACHINE}-unknown-linux-gnu
965 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
918966 exit ;;
919967 m32r*:Linux:*:*)
920 echo ${UNAME_MACHINE}-unknown-linux-gnu
968 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
921969 exit ;;
922970 m68*:Linux:*:*)
923 echo ${UNAME_MACHINE}-unknown-linux-gnu
971 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
924972 exit ;;
925973 mips:Linux:*:* | mips64:Linux:*:*)
926974 eval $set_cc_for_build
939987 #endif
940988 EOF
941989 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
942 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
990 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
943991 ;;
944 or32:Linux:*:*)
945 echo or32-unknown-linux-gnu
992 openrisc*:Linux:*:*)
993 echo or1k-unknown-linux-${LIBC}
994 exit ;;
995 or32:Linux:*:* | or1k*:Linux:*:*)
996 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
946997 exit ;;
947998 padre:Linux:*:*)
948 echo sparc-unknown-linux-gnu
999 echo sparc-unknown-linux-${LIBC}
9491000 exit ;;
9501001 parisc64:Linux:*:* | hppa64:Linux:*:*)
951 echo hppa64-unknown-linux-gnu
1002 echo hppa64-unknown-linux-${LIBC}
9521003 exit ;;
9531004 parisc:Linux:*:* | hppa:Linux:*:*)
9541005 # Look for CPU level
9551006 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
956 PA7*) echo hppa1.1-unknown-linux-gnu ;;
957 PA8*) echo hppa2.0-unknown-linux-gnu ;;
958 *) echo hppa-unknown-linux-gnu ;;
1007 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
1008 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
1009 *) echo hppa-unknown-linux-${LIBC} ;;
9591010 esac
9601011 exit ;;
9611012 ppc64:Linux:*:*)
962 echo powerpc64-unknown-linux-gnu
1013 echo powerpc64-unknown-linux-${LIBC}
9631014 exit ;;
9641015 ppc:Linux:*:*)
965 echo powerpc-unknown-linux-gnu
1016 echo powerpc-unknown-linux-${LIBC}
1017 exit ;;
1018 ppc64le:Linux:*:*)
1019 echo powerpc64le-unknown-linux-${LIBC}
1020 exit ;;
1021 ppcle:Linux:*:*)
1022 echo powerpcle-unknown-linux-${LIBC}
9661023 exit ;;
9671024 s390:Linux:*:* | s390x:Linux:*:*)
968 echo ${UNAME_MACHINE}-ibm-linux
1025 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
9691026 exit ;;
9701027 sh64*:Linux:*:*)
971 echo ${UNAME_MACHINE}-unknown-linux-gnu
1028 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9721029 exit ;;
9731030 sh*:Linux:*:*)
974 echo ${UNAME_MACHINE}-unknown-linux-gnu
1031 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9751032 exit ;;
9761033 sparc:Linux:*:* | sparc64:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-gnu
1034 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9781035 exit ;;
9791036 tile*:Linux:*:*)
980 echo ${UNAME_MACHINE}-tilera-linux-gnu
1037 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9811038 exit ;;
9821039 vax:Linux:*:*)
983 echo ${UNAME_MACHINE}-dec-linux-gnu
1040 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
9841041 exit ;;
9851042 x86_64:Linux:*:*)
986 echo x86_64-unknown-linux-gnu
1043 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
9871044 exit ;;
9881045 xtensa*:Linux:*:*)
989 echo ${UNAME_MACHINE}-unknown-linux-gnu
1046 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9901047 exit ;;
9911048 i*86:DYNIX/ptx:4*:*)
9921049 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
11901247 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
11911248 echo i586-pc-haiku
11921249 exit ;;
1250 x86_64:Haiku:*:*)
1251 echo x86_64-unknown-haiku
1252 exit ;;
11931253 SX-4:SUPER-UX:*:*)
11941254 echo sx4-nec-superux${UNAME_RELEASE}
11951255 exit ;;
12161276 exit ;;
12171277 *:Darwin:*:*)
12181278 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1219 case $UNAME_PROCESSOR in
1220 i386)
1221 eval $set_cc_for_build
1222 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1223 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1224 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1225 grep IS_64BIT_ARCH >/dev/null
1226 then
1227 UNAME_PROCESSOR="x86_64"
1228 fi
1229 fi ;;
1230 unknown) UNAME_PROCESSOR=powerpc ;;
1231 esac
1279 eval $set_cc_for_build
1280 if test "$UNAME_PROCESSOR" = unknown ; then
1281 UNAME_PROCESSOR=powerpc
1282 fi
1283 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1284 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1285 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1286 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1287 grep IS_64BIT_ARCH >/dev/null
1288 then
1289 case $UNAME_PROCESSOR in
1290 i386) UNAME_PROCESSOR=x86_64 ;;
1291 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1292 esac
1293 fi
1294 fi
1295 elif test "$UNAME_PROCESSOR" = i386 ; then
1296 # Avoid executing cc on OS X 10.9, as it ships with a stub
1297 # that puts up a graphical alert prompting to install
1298 # developer tools. Any system running Mac OS X 10.7 or
1299 # later (Darwin 11 and later) is required to have a 64-bit
1300 # processor. This is not true of the ARM version of Darwin
1301 # that Apple uses in portable devices.
1302 UNAME_PROCESSOR=x86_64
1303 fi
12321304 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12331305 exit ;;
12341306 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12451317 NEO-?:NONSTOP_KERNEL:*:*)
12461318 echo neo-tandem-nsk${UNAME_RELEASE}
12471319 exit ;;
1248 NSE-?:NONSTOP_KERNEL:*:*)
1320 NSE-*:NONSTOP_KERNEL:*:*)
12491321 echo nse-tandem-nsk${UNAME_RELEASE}
12501322 exit ;;
12511323 NSR-?:NONSTOP_KERNEL:*:*)
13141386 i*86:AROS:*:*)
13151387 echo ${UNAME_MACHINE}-pc-aros
13161388 exit ;;
1389 x86_64:VMkernel:*:*)
1390 echo ${UNAME_MACHINE}-unknown-esx
1391 exit ;;
13171392 esac
1318
1319 #echo '(No uname command or uname output not recognized.)' 1>&2
1320 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1321
1322 eval $set_cc_for_build
1323 cat >$dummy.c <<EOF
1324 #ifdef _SEQUENT_
1325 # include <sys/types.h>
1326 # include <sys/utsname.h>
1327 #endif
1328 main ()
1329 {
1330 #if defined (sony)
1331 #if defined (MIPSEB)
1332 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1333 I don't know.... */
1334 printf ("mips-sony-bsd\n"); exit (0);
1335 #else
1336 #include <sys/param.h>
1337 printf ("m68k-sony-newsos%s\n",
1338 #ifdef NEWSOS4
1339 "4"
1340 #else
1341 ""
1342 #endif
1343 ); exit (0);
1344 #endif
1345 #endif
1346
1347 #if defined (__arm) && defined (__acorn) && defined (__unix)
1348 printf ("arm-acorn-riscix\n"); exit (0);
1349 #endif
1350
1351 #if defined (hp300) && !defined (hpux)
1352 printf ("m68k-hp-bsd\n"); exit (0);
1353 #endif
1354
1355 #if defined (NeXT)
1356 #if !defined (__ARCHITECTURE__)
1357 #define __ARCHITECTURE__ "m68k"
1358 #endif
1359 int version;
1360 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1361 if (version < 4)
1362 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1363 else
1364 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1365 exit (0);
1366 #endif
1367
1368 #if defined (MULTIMAX) || defined (n16)
1369 #if defined (UMAXV)
1370 printf ("ns32k-encore-sysv\n"); exit (0);
1371 #else
1372 #if defined (CMU)
1373 printf ("ns32k-encore-mach\n"); exit (0);
1374 #else
1375 printf ("ns32k-encore-bsd\n"); exit (0);
1376 #endif
1377 #endif
1378 #endif
1379
1380 #if defined (__386BSD__)
1381 printf ("i386-pc-bsd\n"); exit (0);
1382 #endif
1383
1384 #if defined (sequent)
1385 #if defined (i386)
1386 printf ("i386-sequent-dynix\n"); exit (0);
1387 #endif
1388 #if defined (ns32000)
1389 printf ("ns32k-sequent-dynix\n"); exit (0);
1390 #endif
1391 #endif
1392
1393 #if defined (_SEQUENT_)
1394 struct utsname un;
1395
1396 uname(&un);
1397
1398 if (strncmp(un.version, "V2", 2) == 0) {
1399 printf ("i386-sequent-ptx2\n"); exit (0);
1400 }
1401 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1402 printf ("i386-sequent-ptx1\n"); exit (0);
1403 }
1404 printf ("i386-sequent-ptx\n"); exit (0);
1405
1406 #endif
1407
1408 #if defined (vax)
1409 # if !defined (ultrix)
1410 # include <sys/param.h>
1411 # if defined (BSD)
1412 # if BSD == 43
1413 printf ("vax-dec-bsd4.3\n"); exit (0);
1414 # else
1415 # if BSD == 199006
1416 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1417 # else
1418 printf ("vax-dec-bsd\n"); exit (0);
1419 # endif
1420 # endif
1421 # else
1422 printf ("vax-dec-bsd\n"); exit (0);
1423 # endif
1424 # else
1425 printf ("vax-dec-ultrix\n"); exit (0);
1426 # endif
1427 #endif
1428
1429 #if defined (alliant) && defined (i860)
1430 printf ("i860-alliant-bsd\n"); exit (0);
1431 #endif
1432
1433 exit (1);
1434 }
1435 EOF
1436
1437 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1438 { echo "$SYSTEM_NAME"; exit; }
1439
1440 # Apollos put the system type in the environment.
1441
1442 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1443
1444 # Convex versions that predate uname can use getsysinfo(1)
1445
1446 if [ -x /usr/convex/getsysinfo ]
1447 then
1448 case `getsysinfo -f cpu_type` in
1449 c1*)
1450 echo c1-convex-bsd
1451 exit ;;
1452 c2*)
1453 if getsysinfo -f scalar_acc
1454 then echo c32-convex-bsd
1455 else echo c2-convex-bsd
1456 fi
1457 exit ;;
1458 c34*)
1459 echo c34-convex-bsd
1460 exit ;;
1461 c38*)
1462 echo c38-convex-bsd
1463 exit ;;
1464 c4*)
1465 echo c4-convex-bsd
1466 exit ;;
1467 esac
1468 fi
14691393
14701394 cat >&2 <<EOF
14711395 $0: unable to guess system type
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
5
6 timestamp='2011-03-23'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
159 # (at your option) any later version.
1610 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
2115 #
2216 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2618 #
2719 # As a special exception to the GNU General Public License, if you
2820 # distribute this file as part of a program that contains a
2921 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches to <config-patches@gnu.org>.
3528 #
3629 # Configuration subroutine to validate and canonicalize a configuration type.
3730 # Supply the specified configuration type as an argument.
7467 version="\
7568 GNU config.sub ($timestamp)
7669
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
79 Software Foundation, Inc.
70 Copyright 1992-2015 Free Software Foundation, Inc.
8071
8172 This is free software; see the source for copying conditions. There is NO
8273 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
124115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125116 case $maybe_os in
126117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
127 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
128 knetbsd*-gnu* | netbsd*-gnu* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
129120 kopensolaris*-gnu* | \
130121 storm-chaos* | os2-emx* | rtmk-nova*)
131122 os=-$maybe_os
132123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 android-linux)
126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
133128 ;;
134129 *)
135130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
153148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
154149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
155150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
156 -apple | -axis | -knuth | -cray | -microblaze)
151 -apple | -axis | -knuth | -cray | -microblaze*)
157152 os=
158153 basic_machine=$1
159154 ;;
221216 ;;
222217 -isc*)
223218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -lynx*178)
221 os=-lynxos178
222 ;;
223 -lynx*5)
224 os=-lynxos5
224225 ;;
225226 -lynx*)
226227 os=-lynxos
246247 # Some are omitted here because they have special meanings below.
247248 1750a | 580 \
248249 | a29k \
250 | aarch64 | aarch64_be \
249251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
250252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
251253 | am33_2.0 \
252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | ba \
258 | be32 | be64 \
253259 | bfin \
254 | c4x | clipper \
260 | c4x | c8051 | clipper \
255261 | d10v | d30v | dlx | dsp16xx \
256 | fido | fr30 | frv \
262 | e2k | epiphany \
263 | fido | fr30 | frv | ft32 \
257264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265 | hexagon \
258266 | i370 | i860 | i960 | ia64 \
259267 | ip2k | iq2000 \
268 | k1om \
269 | le32 | le64 \
260270 | lm32 \
261271 | m32c | m32r | m32rle | m68000 | m68k | m88k \
262 | maxq | mb | microblaze | mcore | mep | metag \
272 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
263273 | mips | mipsbe | mipseb | mipsel | mipsle \
264274 | mips16 \
265275 | mips64 | mips64el \
273283 | mips64vr5900 | mips64vr5900el \
274284 | mipsisa32 | mipsisa32el \
275285 | mipsisa32r2 | mipsisa32r2el \
286 | mipsisa32r6 | mipsisa32r6el \
276287 | mipsisa64 | mipsisa64el \
277288 | mipsisa64r2 | mipsisa64r2el \
289 | mipsisa64r6 | mipsisa64r6el \
278290 | mipsisa64sb1 | mipsisa64sb1el \
279291 | mipsisa64sr71k | mipsisa64sr71kel \
292 | mipsr5900 | mipsr5900el \
280293 | mipstx39 | mipstx39el \
281294 | mn10200 | mn10300 \
282295 | moxie \
283296 | mt \
284297 | msp430 \
285298 | nds32 | nds32le | nds32be \
286 | nios | nios2 \
299 | nios | nios2 | nios2eb | nios2el \
287300 | ns16k | ns32k \
288 | open8 \
289 | or32 \
301 | open8 | or1k | or1knd | or32 \
290302 | pdp10 | pdp11 | pj | pjl \
291303 | powerpc | powerpc64 | powerpc64le | powerpcle \
292304 | pyramid \
293 | rx \
305 | riscv32 | riscv64 \
306 | rl78 | rx \
294307 | score \
295 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
308 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
296309 | sh64 | sh64le \
297310 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
298311 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
299312 | spu \
300313 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
301314 | ubicom32 \
302 | v850 | v850e \
315 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316 | visium \
303317 | we32k \
304318 | x86 | xc16x | xstormy16 | xtensa \
305319 | z8k | z80)
314328 c6x)
315329 basic_machine=tic6x-unknown
316330 ;;
317 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
318 # Motorola 68HC11/12.
331 leon|leon[3-9])
332 basic_machine=sparc-$basic_machine
333 ;;
334 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
319335 basic_machine=$basic_machine-unknown
320336 os=-none
321337 ;;
328344 strongarm | thumb | xscale)
329345 basic_machine=arm-unknown
330346 ;;
331
347 xgate)
348 basic_machine=$basic_machine-unknown
349 os=-none
350 ;;
332351 xscaleeb)
333352 basic_machine=armeb-unknown
334353 ;;
351370 # Recognize the basic CPU types with company name.
352371 580-* \
353372 | a29k-* \
373 | aarch64-* | aarch64_be-* \
354374 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
355375 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
356 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
376 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
357377 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
358378 | avr-* | avr32-* \
379 | ba-* \
380 | be32-* | be64-* \
359381 | bfin-* | bs2000-* \
360382 | c[123]* | c30-* | [cjt]90-* | c4x-* \
361 | clipper-* | craynv-* | cydra-* \
383 | c8051-* | clipper-* | craynv-* | cydra-* \
362384 | d10v-* | d30v-* | dlx-* \
363 | elxsi-* \
385 | e2k-* | elxsi-* \
364386 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
365387 | h8300-* | h8500-* \
366388 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
389 | hexagon-* \
367390 | i*86-* | i860-* | i960-* | ia64-* \
368391 | ip2k-* | iq2000-* \
392 | k1om-* \
393 | le32-* | le64-* \
369394 | lm32-* \
370395 | m32c-* | m32r-* | m32rle-* \
371396 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
372 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
397 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
398 | microblaze-* | microblazeel-* \
373399 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
374400 | mips16-* \
375401 | mips64-* | mips64el-* \
383409 | mips64vr5900-* | mips64vr5900el-* \
384410 | mipsisa32-* | mipsisa32el-* \
385411 | mipsisa32r2-* | mipsisa32r2el-* \
412 | mipsisa32r6-* | mipsisa32r6el-* \
386413 | mipsisa64-* | mipsisa64el-* \
387414 | mipsisa64r2-* | mipsisa64r2el-* \
415 | mipsisa64r6-* | mipsisa64r6el-* \
388416 | mipsisa64sb1-* | mipsisa64sb1el-* \
389417 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
418 | mipsr5900-* | mipsr5900el-* \
390419 | mipstx39-* | mipstx39el-* \
391420 | mmix-* \
392421 | mt-* \
393422 | msp430-* \
394423 | nds32-* | nds32le-* | nds32be-* \
395 | nios-* | nios2-* \
424 | nios-* | nios2-* | nios2eb-* | nios2el-* \
396425 | none-* | np1-* | ns16k-* | ns32k-* \
397426 | open8-* \
427 | or1k*-* \
398428 | orion-* \
399429 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
400430 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
401431 | pyramid-* \
402 | romp-* | rs6000-* | rx-* \
432 | riscv32-* | riscv64-* \
433 | rl78-* | romp-* | rs6000-* | rx-* \
403434 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
404435 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
405436 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
406437 | sparclite-* \
407 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
438 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
408439 | tahoe-* \
409440 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
410 | tile-* | tilegx-* \
441 | tile*-* \
411442 | tron-* \
412443 | ubicom32-* \
413 | v850-* | v850e-* | vax-* \
444 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
445 | vax-* \
446 | visium-* \
414447 | we32k-* \
415448 | x86-* | x86_64-* | xc16x-* | xps100-* \
416449 | xstormy16-* | xtensa*-* \
487520 basic_machine=i386-pc
488521 os=-aros
489522 ;;
523 asmjs)
524 basic_machine=asmjs-unknown
525 ;;
490526 aux)
491527 basic_machine=m68k-apple
492528 os=-aux
710746 i370-ibm* | ibm*)
711747 basic_machine=i370-ibm
712748 ;;
713 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
714749 i*86v32)
715750 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
716751 os=-sysv32
749784 basic_machine=m68k-isi
750785 os=-sysv
751786 ;;
787 leon-*|leon[3-9]-*)
788 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
789 ;;
752790 m68knommu)
753791 basic_machine=m68k-unknown
754792 os=-linux
768806 basic_machine=ns32k-utek
769807 os=-sysv
770808 ;;
771 microblaze)
809 microblaze*)
772810 basic_machine=microblaze-xilinx
773811 ;;
812 mingw64)
813 basic_machine=x86_64-pc
814 os=-mingw64
815 ;;
774816 mingw32)
775 basic_machine=i386-pc
817 basic_machine=i686-pc
776818 os=-mingw32
777819 ;;
778820 mingw32ce)
800842 basic_machine=powerpc-unknown
801843 os=-morphos
802844 ;;
845 moxiebox)
846 basic_machine=moxie-unknown
847 os=-moxiebox
848 ;;
803849 msdos)
804850 basic_machine=i386-pc
805851 os=-msdos
807853 ms1-*)
808854 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
809855 ;;
856 msys)
857 basic_machine=i686-pc
858 os=-msys
859 ;;
810860 mvs)
811861 basic_machine=i370-ibm
812862 os=-mvs
863 ;;
864 nacl)
865 basic_machine=le32-unknown
866 os=-nacl
813867 ;;
814868 ncr3000)
815869 basic_machine=i486-ncr
9911045 basic_machine=i586-unknown
9921046 os=-pw32
9931047 ;;
994 rdos)
1048 rdos | rdos64)
1049 basic_machine=x86_64-pc
1050 os=-rdos
1051 ;;
1052 rdos32)
9951053 basic_machine=i386-pc
9961054 os=-rdos
9971055 ;;
11191177 basic_machine=t90-cray
11201178 os=-unicos
11211179 ;;
1122 # This must be matched before tile*.
1123 tilegx*)
1124 basic_machine=tilegx-unknown
1125 os=-linux-gnu
1126 ;;
11271180 tile*)
1128 basic_machine=tile-unknown
1181 basic_machine=$basic_machine-unknown
11291182 os=-linux-gnu
11301183 ;;
11311184 tx39)
13231376 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13241377 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13251378 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1326 | -sym* | -kopensolaris* \
1379 | -sym* | -kopensolaris* | -plan9* \
13271380 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1328 | -aos* | -aros* \
1381 | -aos* | -aros* | -cloudabi* | -sortix* \
13291382 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13301383 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13311384 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1332 | -openbsd* | -solidbsd* \
1385 | -bitrig* | -openbsd* | -solidbsd* \
13331386 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13341387 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13351388 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13361389 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13371390 | -chorusos* | -chorusrdb* | -cegcc* \
1338 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1339 | -mingw32* | -linux-gnu* | -linux-android* \
1340 | -linux-newlib* | -linux-uclibc* \
1341 | -uxpv* | -beos* | -mpeix* | -udk* \
1391 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1392 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1393 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1394 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
13421395 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13431396 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13441397 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13451398 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13461399 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13471400 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1348 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1401 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
13491402 # Remember, each alternative MUST END IN *, to match a version number.
13501403 ;;
13511404 -qnx*)
14691522 -aros*)
14701523 os=-aros
14711524 ;;
1472 -kaos*)
1473 os=-kaos
1474 ;;
14751525 -zvmoe)
14761526 os=-zvmoe
14771527 ;;
15201570 c4x-* | tic4x-*)
15211571 os=-coff
15221572 ;;
1573 c8051-*)
1574 os=-elf
1575 ;;
1576 hexagon-*)
1577 os=-elf
1578 ;;
15231579 tic54x-*)
15241580 os=-coff
15251581 ;;
15471603 ;;
15481604 m68000-sun)
15491605 os=-sunos3
1550 # This also exists in the configure program, but was not the
1551 # default.
1552 # os=-sunos4
15531606 ;;
15541607 m68*-cisco)
15551608 os=-aout
0 #!/usr/bin/perl
1
2 =head1 NAME
3
4 gitlog2imchanges - tiny tool to convert Git commit logs to IM's 00changes
5
6 =head1 SYNOPSIS
7
8 git log | gitlog2imchanges > 00changes
9
10 git log --no-merges --decorate | gitlog2imchanges > 00changes
11
12 (Use --no-merges to ignore merge commits.
13 Use --decorate to show version tags.)
14
15 =head1 SEE ALSO
16
17 IM:
18 <http://tats.hauN.org/im/>
19 <http://packages.qa.debian.org/i/im.html>
20
21 =head1 COPYRIGHT
22
23 Copyright (c) 2013 Tatsuya Kinoshita
24
25 Redistribution and use in source and binary forms, with or without
26 modification, are permitted without restriction, with NO WARRANTY.
27 You may regard this as a work that is placed in the public domain.
28
29 =cut
30
31 use strict;
32 use warnings;
33
34 my $PRODUCT = "IM";
35 my $OWNER = "Tatsuya Kinoshita <tats>";
36
37 my $author = ""; my $date = ""; my $comment = "";
38 my $version = "xxx"; my $pre_version = "";
39
40 sub print_entry {
41 print "* ";
42
43 $comment =~ s/\n([ \t]*\n)+/\n/g;
44 $comment =~ s/\n+$//;
45 $comment =~ s/\n/\n /g;
46 $comment =~ s/^\* //;
47 print "$comment\n";
48
49 my $name = $author;
50 $name =~ s/<([^@]+)@[^>]+>/<$1>/;
51 if ($name ne $OWNER) {
52 print "\t$name\n";
53 }
54
55 $author = ""; $date = ""; $comment = "";
56 }
57
58 while (<>) {
59 if (/^Author:[ \t]+([^\n]+)/) {
60 $author = $1;
61 } elsif (/^Date:[ \t]+(Sun|Mon|Tue|Wed|Thu|Fri|Sat) +(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) +(\d+) +\d+:\d+:\d+ +(\d+)/) { # Assume git log --date=default or --date=local
62 my $mm = $2;
63 my $dd = $3;
64 my $yyyy = $4;
65 $mm =~ s/Jan/01/; $mm =~ s/Feb/02/; $mm =~ s/Mar/03/; $mm =~ s/Apr/04/;
66 $mm =~ s/May/05/; $mm =~ s/Jun/06/; $mm =~ s/Jul/07/; $mm =~ s/Aug/08/;
67 $mm =~ s/Sep/09/; $mm =~ s/Oct/10/; $mm =~ s/Nov/11/; $mm =~ s/Dec/12/;
68 $dd =~ s/^(\d)$/0$1/;
69 $date = "$yyyy/$mm/$dd";
70 } elsif (/^Date:[ \t]+(\d+-\d+-\d+)/) { # Assume git log --date=short or --date=iso
71 $date = $1;
72 $date =~ s!-!/!g;
73 } elsif (/^Date:[ \t]+(.+)$/) {
74 $date = $1;
75 } elsif (/^ (.*)$/) {
76 $comment .= "$1\n";
77 } elsif (/^commit /) {
78 if ($author && $date) {
79 &print_entry;
80 }
81 if (/\((tag: v\d[^\)]+)\)$/) {
82 $version = $1;
83 $version =~ s/tag: v//g;
84 }
85 }
86 if ($version ne $pre_version && $date ne "") {
87 print "\n" if $pre_version ne "";
88 print "$PRODUCT " if $PRODUCT ne "";
89 print "$version ($date)\n\n";
90 $pre_version = $version;
91 }
92 }
93 if ($author && $date) {
94 &print_entry;
95 }
1313 };
1414
1515 $Prog = 'imali';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imcat';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imcd';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imclean';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imget';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imgrep';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imhist';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imhsync';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imjoin';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imls';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1414 };
1515
1616 $Prog = 'immknmz';
17 my $VERSION_DATE = "20110525";
18 my $VERSION_NUMBER = "151";
17 my $VERSION_DATE = "20151220";
18 my $VERSION_NUMBER = "152";
1919 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
2020 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2121 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'immv';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'impack';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'impath';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imput';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'impwagent';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imrm';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imsetup';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imsort';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imstore';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team
1313 };
1414
1515 $Prog = 'imtar';
16 my $VERSION_DATE = "20110525";
17 my $VERSION_NUMBER = "151";
16 my $VERSION_DATE = "20151220";
17 my $VERSION_NUMBER = "152";
1818 my $VERSION = "${Prog} version ${VERSION_DATE}(IM${VERSION_NUMBER})";
1919 my $VERSION_INFORMATION = "${Prog} (IM ${VERSION_NUMBER}) ${VERSION_DATE}
2020 Copyright (C) 1999 IM developing team