mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.11.5t4.5
This commit is contained in:
34
CHANGES
34
CHANGES
@@ -2,13 +2,16 @@ The following are the changes from calc version 2.11.5t4.1 to date:
|
||||
|
||||
Updated dependency rules in Makefiles.
|
||||
|
||||
NOTE: -DSRC, as used in 2.11.5t4.1 was renamed -DCALC_SRC
|
||||
in a later version.
|
||||
|
||||
Calc include files use #include "foo.h" to include other calc
|
||||
header files if -DSRC. Otherwise they use <calc/foo.h>.
|
||||
The -DSRC symbol is defined by default in calc's Makefile
|
||||
header files if -DCALC_SRC. Otherwise they use <calc/foo.h>.
|
||||
The -DCALC_SRC symbol is defined by default in calc's Makefile
|
||||
and so it uses the header files from within the calc src tree.
|
||||
If an external non-calc program includes an installed calc
|
||||
header file (from under /usr/include), and it does NOT define
|
||||
SRC, then it will obtain the calc header files from the
|
||||
CALC_SRC, then it will obtain the calc header files from the
|
||||
correct system location (such as /usr/include/calc/foo.h).
|
||||
|
||||
Added calc builtin function: version() which returns the calc
|
||||
@@ -50,6 +53,27 @@ The following are the changes from calc version 2.11.5t4.1 to date:
|
||||
The top level Makefile now sets LANG=C and passes it down to
|
||||
lower level Makefiles.
|
||||
|
||||
Updated URLs in cal/lucas.cal comments.
|
||||
|
||||
Now shipping calc.spec, inst_files, spec-template and Makefile.linux
|
||||
with the standard calc source distribution. Note that the standard
|
||||
Makefile has not changed. The Makefile.linux only in minor ways
|
||||
needed to build calc rpms.
|
||||
|
||||
Added $T Makefile variable, top level directory under which calc
|
||||
will be installed. The calc install is performed under $T, the
|
||||
calc build is performed under /. The purpose for $T is to allow
|
||||
someone to install calc somewhere other than into the system area.
|
||||
For examplewhen forming the calc rpm, the Makefile is called with
|
||||
T=$RPM_BUILD_ROOT. If $T is empty, calc is installed under /.
|
||||
|
||||
Removed all echo_XXX rules except for echo_inst_files from lower
|
||||
level makefile. The calc.spec will use a make install rule
|
||||
with T=$RPM_BUILD_ROOT.
|
||||
|
||||
Updated LIBRARY file with instructions related to -DCALC_SRC,
|
||||
the new default include file locatin and -lcustcalc.
|
||||
|
||||
|
||||
The following are the changes from calc version 2.11.5t3 to 2.11.5t4:
|
||||
|
||||
@@ -5334,8 +5358,8 @@ Following is a list of visible changes to calc from version 1.24.7 to 1.26.1:
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
##
|
||||
## @(#) $Revision: 29.38 $
|
||||
## @(#) $Id: CHANGES,v 29.38 2001/06/06 10:06:48 chongo Exp $
|
||||
## @(#) $Revision: 29.39 $
|
||||
## @(#) $Id: CHANGES,v 29.39 2001/06/08 22:32:42 chongo Exp $
|
||||
## @(#) $Source: /usr/local/src/cmd/calc/RCS/CHANGES,v $
|
||||
##
|
||||
## Under source code control: 1993/06/02 18:12:57
|
||||
|
28
LIBRARY
28
LIBRARY
@@ -48,12 +48,30 @@ convenient for outside use. So you should read the source for a routine
|
||||
to see if it really does what you think it does. I won't guarantee that
|
||||
obscure internal routines won't change or disappear in future releases!
|
||||
|
||||
When calc is installed, all of the include files needed to build
|
||||
libcalc.a along with the link library itself are installed into ${LIBDIR}.
|
||||
When calc is installed, all of libraries are installed into ${LIBDIR}.
|
||||
All of the calc header files are installed under ${INCDIRCALC}.
|
||||
|
||||
If CALC_SRC is defined, then the calc header files will assume that
|
||||
they are in or under the current directory. However, most external
|
||||
programs most likely will not be located under calc'c source tree.
|
||||
External programs most likely want to use the installed calc header
|
||||
files under ${INCDIRCALC}. External programs most likely NOT want
|
||||
to define CALC_SRC.
|
||||
|
||||
External programs may want to compile with:
|
||||
|
||||
-I${LIBDIR} -L${LIBDIR} -lcalc
|
||||
-L${LIBDIR} -lcalc
|
||||
|
||||
If custom functions are also used, they may want to compile with:
|
||||
|
||||
-L${LIBDIR} -lcalc -lcustcalc
|
||||
|
||||
The CALC_SRC symbol should NOT be defined by default. However if you are
|
||||
feeling pedantic you may want to force CALC_SRC to be undefined:
|
||||
|
||||
-UCALC_SRC
|
||||
|
||||
as well.
|
||||
|
||||
--------------
|
||||
ERROR HANDLING
|
||||
@@ -471,8 +489,8 @@ need call libcalc_call_me_last() only once.
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
##
|
||||
## @(#) $Revision: 29.2 $
|
||||
## @(#) $Id: LIBRARY,v 29.2 2000/06/07 14:02:13 chongo Exp $
|
||||
## @(#) $Revision: 29.5 $
|
||||
## @(#) $Id: LIBRARY,v 29.5 2001/06/08 22:57:35 chongo Exp $
|
||||
## @(#) $Source: /usr/local/src/cmd/calc/RCS/LIBRARY,v $
|
||||
##
|
||||
## Under source code control: 1993/07/30 19:44:49
|
||||
|
466
Makefile
466
Makefile
@@ -20,8 +20,8 @@
|
||||
# received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
MAKEFILE_REV= $$Revision: 29.33 $$
|
||||
# @(#) $Id: Makefile.ship,v 29.33 2001/06/06 10:06:48 chongo Exp $
|
||||
MAKEFILE_REV= $$Revision: 29.36 $$
|
||||
# @(#) $Id: Makefile.ship,v 29.36 2001/06/08 23:00:19 chongo Exp $
|
||||
# @(#) $Source: /usr/local/src/cmd/calc/RCS/Makefile.ship,v $
|
||||
#
|
||||
# Under source code control: 1990/02/15 01:48:41
|
||||
@@ -33,7 +33,6 @@ MAKEFILE_REV= $$Revision: 29.33 $$
|
||||
# calculator by David I. Bell with help/mods from others
|
||||
# Makefile by Landon Curt Noll
|
||||
|
||||
|
||||
##############################################################################
|
||||
#-=-=-=-=-=-=-=-=- You may want to change some values below -=-=-=-=-=-=-=-=-#
|
||||
##############################################################################
|
||||
@@ -503,6 +502,13 @@ HAVE_UNISTD_H=
|
||||
# ${INCDIR} where most .h files are kept
|
||||
# ${LIBDIR} where *.a files are installed
|
||||
#
|
||||
# If in doubt, set:
|
||||
#
|
||||
# BINDIR= /usr/bin
|
||||
# SHAREDIR= /usr/share
|
||||
# INCDIR= /usr/include
|
||||
# LIBDIR= /usr/lib
|
||||
#
|
||||
#BINDIR= /usr/local/bin
|
||||
BINDIR= /usr/bin
|
||||
|
||||
@@ -525,6 +531,16 @@ LIBDIR= /usr/lib
|
||||
# ${CUSTOMINCPDIR} where custom .h files are installed
|
||||
# ${SCRIPTDIR} where calc shell scripts are installed
|
||||
#
|
||||
# If in doubt, set:
|
||||
#
|
||||
# CSHAREDIR= ${SHAREDIR}/calc
|
||||
# HELPDIR= ${CSHAREDIR}/help
|
||||
# INCDIRCALC= ${INCDIR}/calc
|
||||
# CUSTOMLIBDIR= ${CSHAREDIR}/custom
|
||||
# CUSTOMHELPDIR= ${CSHAREDIR}/custhelp
|
||||
# CUSTOMINCDIR= ${INCDIRCALC}/custom
|
||||
# SCRIPTDIR= ${BINDIR}/cscript
|
||||
#
|
||||
CSHAREDIR= ${SHAREDIR}/calc
|
||||
HELPDIR= ${CSHAREDIR}/help
|
||||
INCDIRCALC= ${INCDIR}/calc
|
||||
@@ -533,6 +549,26 @@ CUSTOMHELPDIR= ${CSHAREDIR}/custhelp
|
||||
CUSTOMINCDIR= ${INCDIRCALC}/custom
|
||||
SCRIPTDIR= ${BINDIR}/cscript
|
||||
|
||||
# T - top level directory under which calc will be installed
|
||||
#
|
||||
# The calc install is performed under $T, the calc build is
|
||||
# performed under /. For example, calc is built with its help
|
||||
# directory being ${HELPDIR}. Howeever calc help files are
|
||||
# installed under $T${HELPDIR}.
|
||||
#
|
||||
# If $T is empty, calc is installed under /, which is the same
|
||||
# top of tree for which it was built. If $T is non-empty, then
|
||||
# calc is installed under $T, as if one had to chroot under
|
||||
# $T for calc to operate.
|
||||
#
|
||||
# The purpose for $T is to allow someone to install calc
|
||||
# somewhere other than into the system area. For example when
|
||||
# forming the calc rpm, the Makefile is called with T=$RPM_BUILD_ROOT.
|
||||
#
|
||||
# If in doubt, use T=
|
||||
#
|
||||
T=
|
||||
|
||||
# where man pages are installed
|
||||
#
|
||||
# Use MANDIR= to disable installation of the calc man (source) page.
|
||||
@@ -813,8 +849,8 @@ CCWARN= -Wall -Wno-implicit -Wno-comment
|
||||
CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
CCMISC=
|
||||
#
|
||||
CFLAGS= -DSRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
ICFLAGS= -DSRC ${CCWARN} ${CCMISC}
|
||||
CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
|
||||
#
|
||||
LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
ILDFLAGS=
|
||||
@@ -833,8 +869,8 @@ CC= ${PURIFY} ${LCC}
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC=
|
||||
#
|
||||
#CFLAGS= -DSRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DSRC ${CCWARN} ${CCMISC}
|
||||
#CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
@@ -854,8 +890,8 @@ CC= ${PURIFY} ${LCC}
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC=
|
||||
#
|
||||
#CFLAGS= -DSRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DSRC ${CCWARN} ${CCMISC}
|
||||
#CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
@@ -881,8 +917,8 @@ CC= ${PURIFY} ${LCC}
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= -rdata_shared
|
||||
#
|
||||
#CFLAGS= -DSRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DSRC ${CCWARN} ${CCMISC}
|
||||
#CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
@@ -903,8 +939,8 @@ CC= ${PURIFY} ${LCC}
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= +e
|
||||
#
|
||||
#CFLAGS= -DSRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DSRC ${CCWARN} ${CCMISC}
|
||||
#CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
@@ -920,8 +956,8 @@ CC= ${PURIFY} ${LCC}
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= -qlanglvl=ansi
|
||||
#
|
||||
#CFLAGS= -DSRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DSRC ${CCWARN} ${CCMISC}
|
||||
#CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
@@ -942,8 +978,8 @@ CC= ${PURIFY} ${LCC}
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= -DFORCE_STDC
|
||||
#
|
||||
#CFLAGS= -DSRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DSRC ${CCWARN} ${CCMISC}
|
||||
#CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
@@ -962,8 +998,8 @@ CC= ${PURIFY} ${LCC}
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC=
|
||||
#
|
||||
#CFLAGS= -DSRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DSRC ${CCWARN} ${CCMISC} -Wno-unused
|
||||
#CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC} -Wno-unused
|
||||
#
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
@@ -981,8 +1017,8 @@ CC= ${PURIFY} ${LCC}
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC=
|
||||
#
|
||||
#CFLAGS= -DSRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DSRC ${CCWARN} ${CCMISC} -Wno-unused
|
||||
#CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC} -Wno-unused
|
||||
#
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
@@ -1001,6 +1037,7 @@ LANG= C
|
||||
MAKE= make
|
||||
AWK= awk
|
||||
SED= sed
|
||||
DIFF= diff
|
||||
GREP= egrep
|
||||
SORT= sort
|
||||
TEE= tee
|
||||
@@ -1159,7 +1196,8 @@ CUSTOM_PASSDOWN= Q="${Q}" \
|
||||
CMP=${CMP} \
|
||||
MAKEDEPEND=${MAKEDEPEND} \
|
||||
SORT=${SORT} \
|
||||
LANG=${LANG}
|
||||
LANG=${LANG} \
|
||||
T=$T
|
||||
|
||||
# The complete list of Makefile vars passed down to sample/Makefile.
|
||||
#
|
||||
@@ -1191,14 +1229,18 @@ SAMPLE_PASSDOWN= Q="${Q}" \
|
||||
CMP=${CMP} \
|
||||
MAKEDEPEND=${MAKEDEPEND} \
|
||||
SORT=${SORT} \
|
||||
LANG=${LANG}
|
||||
LANG=${LANG} \
|
||||
T=$T
|
||||
|
||||
# The compelte list of Makefile vars passed down to help/Makefile.
|
||||
#
|
||||
HELP_PASSDOWN= Q="${Q}" \
|
||||
SHAREDIR="${SHAREDIR}" \
|
||||
INCDIR="${INCDIR}" \
|
||||
LIBDIR="${LIBDIR}" \
|
||||
CSHAREDIR="${CSHAREDIR}" \
|
||||
HELPDIR="${HELPDIR}" \
|
||||
INCDIRCALC="${INCDIRCALC}" \
|
||||
ICFLAGS="${ICFLAGS}" \
|
||||
ILDFLAGS="${ILDFLAGS}" \
|
||||
LCC="${LCC}" \
|
||||
@@ -1207,7 +1249,8 @@ HELP_PASSDOWN= Q="${Q}" \
|
||||
CHMOD=${CHMOD} \
|
||||
CMP=${CMP} \
|
||||
FMT=${FMT} \
|
||||
LANG=${LANG}
|
||||
LANG=${LANG} \
|
||||
T=$T
|
||||
|
||||
# The compelte list of Makefile vars passed down to cal/Makefile.
|
||||
#
|
||||
@@ -1217,7 +1260,8 @@ CAL_PASSDOWN= Q="${Q}" \
|
||||
MAKE_FILE=${MAKE_FILE} \
|
||||
CHMOD=${CHMOD} \
|
||||
CMP=${CMP} \
|
||||
LANG=${LANG}
|
||||
LANG=${LANG} \
|
||||
T=$T
|
||||
|
||||
# The compelte list of Makefile vars passed down to cscript/Makefile.
|
||||
#
|
||||
@@ -1230,7 +1274,8 @@ CSCRIPT_PASSDOWN= Q="${Q}" \
|
||||
FMT=${FMT} \
|
||||
SORT=${SORT} \
|
||||
CMP=${CMP} \
|
||||
LANG=${LANG}
|
||||
LANG=${LANG} \
|
||||
T=$T
|
||||
|
||||
# complete list of .h files found (but not built) in the distribution
|
||||
#
|
||||
@@ -1277,6 +1322,10 @@ SAMPLE_TARGETS= sample/test_random sample/many_random
|
||||
CSCRIPT_TARGETS= cscript/mersenne cscript/piforever cscript/plus \
|
||||
cscript/square cscript/fproduct cscript/powerterm
|
||||
|
||||
# List of miscellaneous files shipped with calc
|
||||
#
|
||||
MISC= Makefile.linux calc.spec inst_files spec-template rpm.mk.patch
|
||||
|
||||
# complete list of progs built
|
||||
#
|
||||
PROGS= calc ${UTIL_PROGS}
|
||||
@@ -1284,7 +1333,7 @@ PROGS= calc ${UTIL_PROGS}
|
||||
# complete list of targets
|
||||
#
|
||||
TARGETS= ${LICENSE} ${CALC_LIBS} custom/.all calc sample/.all \
|
||||
cal/.all help/.all help/builtin cscript/.all calc.1
|
||||
cal/.all help/.all help/builtin cscript/.all calc.1 ${MISC}
|
||||
|
||||
|
||||
###
|
||||
@@ -2870,7 +2919,9 @@ distlist: ${DISTLIST}
|
||||
for i in ${BUILD_H_SRC} ${BUILD_C_SRC}; do \
|
||||
echo win32/$$i; \
|
||||
done; \
|
||||
echo spec-template; \
|
||||
for i in ${MISC}; do \
|
||||
echo $$i; \
|
||||
done; \
|
||||
(cd help; ${MAKE} ${HELP_PASSDOWN} $@); \
|
||||
(cd cal; ${MAKE} ${CAL_PASSDOWN} $@); \
|
||||
(cd custom; ${MAKE} ${CUSTOM_PASSDOWN} $@); \
|
||||
@@ -3002,6 +3053,7 @@ env:
|
||||
@echo 'SED=${SED}'; echo ''
|
||||
@echo 'GREP=${GREP}'; echo ''
|
||||
@echo 'LANG=${LANG}'; echo ''
|
||||
@echo 'T=$T'; echo ''
|
||||
@echo 'SORT=${SORT}'; echo ''
|
||||
@echo 'TEE=${TEE}'; echo ''
|
||||
@echo 'CTAGS=${CTAGS}'; echo ''
|
||||
@@ -3132,50 +3184,6 @@ calc.spec: spec-template ${MAKE_FILE} help/Makefile cal/Makefile \
|
||||
${Q}echo 's,$${MANMODE},${MANMODE},g' >> calc.spec.sed
|
||||
${Q}echo 's,$${MANEXT},${MANEXT},g' >> calc.spec.sed
|
||||
${Q}echo 's,$${CHMOD},${CHMOD},g' >> calc.spec.sed
|
||||
${Q}cd help; LANG=C \
|
||||
${MAKE} -f Makefile ${HELP_PASSDOWN} echo_STD_HELP_FILES | \
|
||||
${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' | \
|
||||
${SED} -e 's/^/s,$${STD_HELP_FILES},/' \
|
||||
-e 's/$$/,g/' >> ../calc.spec.sed
|
||||
${Q}cd help; LANG=C \
|
||||
${MAKE} -f Makefile ${HELP_PASSDOWN} echo_BLT_HELP_FILES | \
|
||||
${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' | \
|
||||
${SED} -e 's/^/s,$${BLT_HELP_FILES},/' \
|
||||
-e 's/$$/,g/' >> ../calc.spec.sed
|
||||
${Q}cd help; LANG=C \
|
||||
${MAKE} -f Makefile ${HELP_PASSDOWN} echo_DETAIL_HELP | \
|
||||
${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' | \
|
||||
${SED} -e 's/^/s,$${DETAIL_HELP},/' \
|
||||
-e 's/$$/,g/' >> ../calc.spec.sed
|
||||
${Q}cd help; LANG=C \
|
||||
${MAKE} -f Makefile ${HELP_PASSDOWN} echo_SINGULAR_FILES | \
|
||||
${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' | \
|
||||
${SED} -e 's/^/s,$${SINGULAR_FILES},/' \
|
||||
-e 's/$$/,g/' >> ../calc.spec.sed
|
||||
${Q}cd cal; LANG=C \
|
||||
${MAKE} -f Makefile ${CAL_PASSDOWN} echo_CALC_FILES | \
|
||||
${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' | \
|
||||
${SED} -e 's/^/s,$${CALC_FILES},/' \
|
||||
-e 's/$$/,g/' >> ../calc.spec.sed
|
||||
${Q}cd custom; LANG=C \
|
||||
${MAKE} -f Makefile ${CUSTOM_PASSDOWN} echo_INSTALL_H_SRC | \
|
||||
${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' | \
|
||||
${SED} -e 's/^/s,$${INSTALL_H_SRC},/' \
|
||||
-e 's/$$/,g/' >> ../calc.spec.sed
|
||||
${Q}cd custom; LANG=C \
|
||||
${MAKE} -f Makefile ${CUSTOM_PASSDOWN} echo_CUSTOM_CALC_FILES | \
|
||||
${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' | \
|
||||
${SED} -e 's/^/s,$${CUSTOM_CALC_FILES},/' \
|
||||
-e 's/$$/,g/' >> ../calc.spec.sed
|
||||
${Q}cd custom; LANG=C \
|
||||
${MAKE} -f Makefile ${CUSTOM_PASSDOWN} echo_CUSTOM_HELP | \
|
||||
${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' | \
|
||||
${SED} -e 's/^/s,$${CUSTOM_HELP},/' \
|
||||
-e 's/$$/,g/' >> ../calc.spec.sed
|
||||
${Q}cd cscript; LANG=C \
|
||||
${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} echo_SCRIPT | \
|
||||
${GREP} '__file__..' | ${SED} -e s'/.*__file__ //' | \
|
||||
${SED} -e 's/^/s,$${SCRIPT},/' -e 's/$$/,g/' >> ../calc.spec.sed
|
||||
${Q}echo 's,$${DATE},'`LANG=C date +"%a %b %d %Y"`',g' >> calc.spec.sed
|
||||
${Q}echo 's,$${VER_CALC},'`./ver_calc`',g' >> calc.spec.sed
|
||||
${Q}echo 's,$${VERSION},'`./ver_calc -v`',g' >> calc.spec.sed
|
||||
@@ -3213,6 +3221,27 @@ inst_files: ${MAKE_FILE} help/Makefile cal/Makefile custom/Makefile \
|
||||
${Q}LANG=C ${SORT} -u inst_files -o inst_files
|
||||
${V} echo '=-=-=-=-= end of $@ rule =-=-=-=-='
|
||||
|
||||
# We make a small patch to effectively move Makefile.linux into Makefile.
|
||||
#
|
||||
rpm.mk.patch: Makefile.linux ${MAKE_FILE}
|
||||
${V} echo '=-=-=-=-= start of $@ rule =-=-=-=-='
|
||||
${Q}rm -f $@
|
||||
${Q}rm -rf tmp.patch
|
||||
${Q}mkdir -p tmp.patch
|
||||
${Q}if [ -e Makefile.ship ]; then \
|
||||
cp Makefile.ship tmp.patch/Makefile; \
|
||||
else \
|
||||
cp Makefile tmp.patch/Makefile; \
|
||||
fi
|
||||
${Q}cp Makefile.linux tmp.patch
|
||||
${Q}-cd tmp.patch; \
|
||||
${DIFF} -c Makefile Makefile.linux > $@; \
|
||||
true
|
||||
${Q}cp tmp.patch/$@ $@
|
||||
${Q}${CHMOD} 0444 $@
|
||||
${Q}rm -rf tmp.patch
|
||||
${V} echo '=-=-=-=-= end of $@ rule =-=-=-=-='
|
||||
|
||||
##
|
||||
#
|
||||
# Utility rules
|
||||
@@ -3299,8 +3328,8 @@ clobber:
|
||||
-rm -f calc.1 *.pure_linkinfo
|
||||
-rm -f have_args *.u
|
||||
-rm -f calc.pixie calc.rf calc.Counts calc.cord
|
||||
-rm -rf gen_h skel Makefile.bak
|
||||
-rm -f calc.spec inst_files tmp
|
||||
-rm -rf gen_h skel Makefile.bak tmp.patch
|
||||
-rm -f calc.spec inst_files rpm.mk.patch tmp
|
||||
${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
||||
-cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} clobber
|
||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||
@@ -3325,100 +3354,161 @@ clobber:
|
||||
|
||||
install: calc libcalc.a ${LIB_H_SRC} ${BUILD_H_SRC} calc.1
|
||||
${V} echo '=-=-=-=-= start of $@ rule =-=-=-=-='
|
||||
-${Q}if [ ! -d ${BINDIR} ]; then \
|
||||
echo mkdir ${BINDIR}; \
|
||||
mkdir ${BINDIR}; \
|
||||
echo ${CHMOD} 0755 ${BINDIR}; \
|
||||
${CHMOD} 0755 ${BINDIR}; \
|
||||
else \
|
||||
true; \
|
||||
-${Q}if [ ! -z "$T" ]; then \
|
||||
if [ ! -d $T ]; then \
|
||||
echo mkdir $T; \
|
||||
mkdir $T; \
|
||||
if [ ! -d "$T" ]; then \
|
||||
echo mkdir -p "$T"; \
|
||||
mkdir -p "$T"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T; \
|
||||
${CHMOD} 0755 $T; \
|
||||
fi; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${SHAREDIR} ]; then \
|
||||
echo mkdir ${SHAREDIR}; \
|
||||
mkdir ${SHAREDIR}; \
|
||||
echo ${CHMOD} 0755 ${SHAREDIR}; \
|
||||
${CHMOD} 0755 ${SHAREDIR}; \
|
||||
-${Q}if [ ! -d $T${BINDIR} ]; then \
|
||||
echo mkdir $T${BINDIR}; \
|
||||
mkdir $T${BINDIR}; \
|
||||
if [ ! -d "$T${BINDIR}" ]; then \
|
||||
echo mkdir -p "$T${BINDIR}"; \
|
||||
mkdir -p "$T${BINDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${BINDIR}; \
|
||||
${CHMOD} 0755 $T${BINDIR}; \
|
||||
else \
|
||||
true; \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${INCDIR} ]; then \
|
||||
echo mkdir ${INCDIR}; \
|
||||
mkdir ${INCDIR}; \
|
||||
echo ${CHMOD} 0755 ${INCDIR}; \
|
||||
${CHMOD} 0755 ${INCDIR}; \
|
||||
-${Q}if [ ! -d $T${SHAREDIR} ]; then \
|
||||
echo mkdir $T${SHAREDIR}; \
|
||||
mkdir $T${SHAREDIR}; \
|
||||
if [ ! -d "$T${SHAREDIR}" ]; then \
|
||||
echo mkdir -p "$T${SHAREDIR}"; \
|
||||
mkdir -p "$T${SHAREDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${SHAREDIR}; \
|
||||
${CHMOD} 0755 $T${SHAREDIR}; \
|
||||
else \
|
||||
true; \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${LIBDIR} ]; then \
|
||||
echo mkdir ${LIBDIR}; \
|
||||
mkdir ${LIBDIR}; \
|
||||
echo ${CHMOD} 0755 ${LIBDIR}; \
|
||||
${CHMOD} 0755 ${LIBDIR}; \
|
||||
-${Q}if [ ! -d $T${INCDIR} ]; then \
|
||||
echo mkdir $T${INCDIR}; \
|
||||
mkdir $T${INCDIR}; \
|
||||
if [ ! -d "$T${INCDIR}" ]; then \
|
||||
echo mkdir -p "$T${INCDIR}"; \
|
||||
mkdir -p "$T${INCDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${INCDIR}; \
|
||||
${CHMOD} 0755 $T${INCDIR}; \
|
||||
else \
|
||||
true; \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CSHAREDIR} ]; then \
|
||||
echo mkdir ${CSHAREDIR}; \
|
||||
mkdir ${CSHAREDIR}; \
|
||||
echo ${CHMOD} 0755 ${CSHAREDIR}; \
|
||||
${CHMOD} 0755 ${CSHAREDIR}; \
|
||||
-${Q}if [ ! -d $T${LIBDIR} ]; then \
|
||||
echo mkdir $T${LIBDIR}; \
|
||||
mkdir $T${LIBDIR}; \
|
||||
if [ ! -d "$T${LIBDIR}" ]; then \
|
||||
echo mkdir -p "$T${LIBDIR}"; \
|
||||
mkdir -p "$T${LIBDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${LIBDIR}; \
|
||||
${CHMOD} 0755 $T${LIBDIR}; \
|
||||
else \
|
||||
true; \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${HELPDIR} ]; then \
|
||||
echo mkdir ${HELPDIR}; \
|
||||
mkdir ${HELPDIR}; \
|
||||
echo ${CHMOD} 0755 ${HELPDIR}; \
|
||||
${CHMOD} 0755 ${HELPDIR}; \
|
||||
-${Q}if [ ! -d $T${CSHAREDIR} ]; then \
|
||||
mkdir $T${CSHAREDIR}; \
|
||||
echo mkdir $T${CSHAREDIR}; \
|
||||
if [ ! -d "$T${CSHAREDIR}" ]; then \
|
||||
echo mkdir -p "$T${CSHAREDIR}"; \
|
||||
mkdir -p "$T${CSHAREDIR}"; \
|
||||
fi; \
|
||||
mkdir $T${CSHAREDIR}; \
|
||||
echo ${CHMOD} 0755 $T${CSHAREDIR}; \
|
||||
${CHMOD} 0755 $T${CSHAREDIR}; \
|
||||
else \
|
||||
true; \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${INCDIRCALC} ]; then \
|
||||
echo mkdir ${INCDIRCALC}; \
|
||||
mkdir ${INCDIRCALC}; \
|
||||
echo ${CHMOD} 0755 ${INCDIRCALC}; \
|
||||
${CHMOD} 0755 ${INCDIRCALC}; \
|
||||
-${Q}if [ ! -d $T${HELPDIR} ]; then \
|
||||
echo mkdir $T${HELPDIR}; \
|
||||
mkdir $T${HELPDIR}; \
|
||||
if [ ! -d "$T${HELPDIR}" ]; then \
|
||||
echo mkdir -p "$T${HELPDIR}"; \
|
||||
mkdir -p "$T${HELPDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${HELPDIR}; \
|
||||
${CHMOD} 0755 $T${HELPDIR}; \
|
||||
else \
|
||||
true; \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CUSTOMLIBDIR} ]; then \
|
||||
echo mkdir ${CUSTOMLIBDIR}; \
|
||||
mkdir ${CUSTOMLIBDIR}; \
|
||||
echo ${CHMOD} 0755 ${CUSTOMLIBDIR}; \
|
||||
${CHMOD} 0755 ${CUSTOMLIBDIR}; \
|
||||
-${Q}if [ ! -d $T${INCDIRCALC} ]; then \
|
||||
echo mkdir $T${INCDIRCALC}; \
|
||||
mkdir $T${INCDIRCALC}; \
|
||||
if [ ! -d "$T${INCDIRCALC}" ]; then \
|
||||
echo mkdir -p "$T${INCDIRCALC}"; \
|
||||
mkdir -p "$T${INCDIRCALC}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${INCDIRCALC}; \
|
||||
${CHMOD} 0755 $T${INCDIRCALC}; \
|
||||
else \
|
||||
true; \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CUSTOMHELPDIR} ]; then \
|
||||
echo mkdir ${CUSTOMHELPDIR}; \
|
||||
mkdir ${CUSTOMHELPDIR}; \
|
||||
echo ${CHMOD} 0755 ${CUSTOMHELPDIR}; \
|
||||
${CHMOD} 0755 ${CUSTOMHELPDIR}; \
|
||||
-${Q}if [ ! -d $T${CUSTOMLIBDIR} ]; then \
|
||||
echo mkdir $T${CUSTOMLIBDIR}; \
|
||||
mkdir $T${CUSTOMLIBDIR}; \
|
||||
if [ ! -d "$T${CUSTOMLIBDIR}" ]; then \
|
||||
echo mkdir -p "$T${CUSTOMLIBDIR}"; \
|
||||
mkdir -p "$T${CUSTOMLIBDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CUSTOMLIBDIR}; \
|
||||
${CHMOD} 0755 $T${CUSTOMLIBDIR}; \
|
||||
else \
|
||||
true; \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CUSTOMINCDIR} ]; then \
|
||||
echo mkdir ${CUSTOMINCDIR}; \
|
||||
mkdir ${CUSTOMINCDIR}; \
|
||||
echo ${CHMOD} 0755 ${CUSTOMINCDIR}; \
|
||||
${CHMOD} 0755 ${CUSTOMINCDIR}; \
|
||||
-${Q}if [ ! -d $T${CUSTOMHELPDIR} ]; then \
|
||||
echo mkdir $T${CUSTOMHELPDIR}; \
|
||||
mkdir $T${CUSTOMHELPDIR}; \
|
||||
if [ ! -d "$T${CUSTOMHELPDIR}" ]; then \
|
||||
echo mkdir -p "$T${CUSTOMHELPDIR}"; \
|
||||
mkdir -p "$T${CUSTOMHELPDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CUSTOMHELPDIR}; \
|
||||
${CHMOD} 0755 $T${CUSTOMHELPDIR}; \
|
||||
else \
|
||||
true; \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${SCRIPTDIR} ]; then \
|
||||
echo mkdir ${SCRIPTDIR}; \
|
||||
mkdir ${SCRIPTDIR}; \
|
||||
echo ${CHMOD} 0755 ${SCRIPTDIR}; \
|
||||
${CHMOD} 0755 ${SCRIPTDIR}; \
|
||||
-${Q}if [ ! -d $T${CUSTOMINCDIR} ]; then \
|
||||
echo mkdir $T${CUSTOMINCDIR}; \
|
||||
mkdir $T${CUSTOMINCDIR}; \
|
||||
if [ ! -d "$T${CUSTOMINCDIR}" ]; then \
|
||||
echo mkdir -p "$T${CUSTOMINCDIR}"; \
|
||||
mkdir -p "$T${CUSTOMINCDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CUSTOMINCDIR}; \
|
||||
${CHMOD} 0755 $T${CUSTOMINCDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d $T${SCRIPTDIR} ]; then \
|
||||
echo mkdir $T${SCRIPTDIR}; \
|
||||
mkdir $T${SCRIPTDIR}; \
|
||||
if [ ! -d "$T${SCRIPTDIR}" ]; then \
|
||||
echo mkdir -p "$T${SCRIPTDIR}"; \
|
||||
mkdir -p "$T${SCRIPTDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${SCRIPTDIR}; \
|
||||
${CHMOD} 0755 $T${SCRIPTDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -z "${MANDIR}" ]; then \
|
||||
if [ ! -d ${MANDIR} ]; then \
|
||||
echo mkdir ${MANDIR}; \
|
||||
mkdir ${MANDIR}; \
|
||||
echo ${CHMOD} 0755 ${MANDIR}; \
|
||||
${CHMOD} 0755 ${MANDIR}; \
|
||||
if [ ! -d $T${MANDIR} ]; then \
|
||||
echo mkdir $T${MANDIR}; \
|
||||
mkdir $T${MANDIR}; \
|
||||
if [ ! -d "$T${MANDIR}" ]; then \
|
||||
echo mkdir -p "$T${MANDIR}"; \
|
||||
mkdir -p "$T${MANDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${MANDIR}; \
|
||||
${CHMOD} 0755 $T${MANDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi; \
|
||||
@@ -3426,25 +3516,29 @@ install: calc libcalc.a ${LIB_H_SRC} ${BUILD_H_SRC} calc.1
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -z "${CATDIR}" ]; then \
|
||||
if [ ! -d ${CATDIR} ]; then \
|
||||
echo mkdir ${CATDIR}; \
|
||||
mkdir ${CATDIR}; \
|
||||
echo ${CHMOD} 0755 ${CATDIR}; \
|
||||
${CHMOD} 0755 ${CATDIR}; \
|
||||
if [ ! -d $T${CATDIR} ]; then \
|
||||
echo mkdir $T${CATDIR}; \
|
||||
mkdir $T${CATDIR}; \
|
||||
if [ ! -d "$T${CATDIR}" ]; then \
|
||||
echo mkdir -p "$T${CATDIR}"; \
|
||||
mkdir -p "$T${CATDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CATDIR}; \
|
||||
${CHMOD} 0755 $T${CATDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if ${CMP} -s calc ${BINDIR}/calc; then \
|
||||
true; \
|
||||
-${Q}if ${CMP} -s calc $T${BINDIR}/calc; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${BINDIR}/calc.new; \
|
||||
cp -f calc ${BINDIR}/calc.new; \
|
||||
${CHMOD} 0555 ${BINDIR}/calc.new; \
|
||||
mv -f ${BINDIR}/calc.new ${BINDIR}/calc; \
|
||||
echo "installed ${BINDIR}/calc"; \
|
||||
rm -f $T${BINDIR}/calc.new; \
|
||||
cp -f calc $T${BINDIR}/calc.new; \
|
||||
${CHMOD} 0555 $T${BINDIR}/calc.new; \
|
||||
mv -f $T${BINDIR}/calc.new $T${BINDIR}/calc; \
|
||||
echo "installed $T${BINDIR}/calc"; \
|
||||
fi
|
||||
${V} echo '=-=-=-=-= Invoking $@ rule for help =-=-=-=-='
|
||||
${Q}cd help; ${MAKE} -f Makefile ${HELP_PASSDOWN} install
|
||||
@@ -3461,61 +3555,61 @@ install: calc libcalc.a ${LIB_H_SRC} ${BUILD_H_SRC} calc.1
|
||||
${V} echo '=-=-=-=-= Invoking $@ rule for cscript =-=-=-=-='
|
||||
${Q}cd cscript; ${MAKE} -f Makefile ${CSCRIPT_PASSDOWN} install
|
||||
${V} echo '=-=-=-=-= Back to the main Makefile for $@ rule =-=-=-=-='
|
||||
-${Q}if ${CMP} -s libcalc.a ${LIBDIR}/libcalc.a; then \
|
||||
-${Q}if ${CMP} -s libcalc.a $T${LIBDIR}/libcalc.a; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${LIBDIR}/libcalc.a.new; \
|
||||
cp -f libcalc.a ${LIBDIR}/libcalc.a.new; \
|
||||
mv -f ${LIBDIR}/libcalc.a.new ${LIBDIR}/libcalc.a; \
|
||||
${RANLIB} ${LIBDIR}/libcalc.a; \
|
||||
${CHMOD} 0444 ${LIBDIR}/libcalc.a; \
|
||||
echo "installed ${LIBDIR}/libcalc.a"; \
|
||||
rm -f $T${LIBDIR}/libcalc.a.new; \
|
||||
cp -f libcalc.a $T${LIBDIR}/libcalc.a.new; \
|
||||
mv -f $T${LIBDIR}/libcalc.a.new $T${LIBDIR}/libcalc.a; \
|
||||
${RANLIB} $T${LIBDIR}/libcalc.a; \
|
||||
${CHMOD} 0444 $T${LIBDIR}/libcalc.a; \
|
||||
echo "installed $T${LIBDIR}/libcalc.a"; \
|
||||
fi
|
||||
-${Q}for i in ${LIB_H_SRC} ${BUILD_H_SRC}; do \
|
||||
rm -f tmp; \
|
||||
${SED} -e 's/^\(#[ ]*include[ ][ ]*\)"/\1"calc\//' $$i > tmp; \
|
||||
if ${CMP} -s tmp ${INCDIRCALC}/$$i; then \
|
||||
if ${CMP} -s tmp $T${INCDIRCALC}/$$i; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${INCDIRCALC}/$$i.new; \
|
||||
cp -f tmp ${INCDIRCALC}/$$i.new; \
|
||||
${CHMOD} 0444 ${INCDIRCALC}/$$i.new; \
|
||||
mv -f ${INCDIRCALC}/$$i.new ${INCDIRCALC}/$$i; \
|
||||
echo "installed ${INCDIRCALC}/$$i"; \
|
||||
rm -f $T${INCDIRCALC}/$$i.new; \
|
||||
cp -f tmp $T${INCDIRCALC}/$$i.new; \
|
||||
${CHMOD} 0444 $T${INCDIRCALC}/$$i.new; \
|
||||
mv -f $T${INCDIRCALC}/$$i.new $T${INCDIRCALC}/$$i; \
|
||||
echo "installed $T${INCDIRCALC}/$$i"; \
|
||||
fi; \
|
||||
done
|
||||
${Q}rm -f tmp
|
||||
-${Q}if [ -z "${MANDIR}" ]; then \
|
||||
true; \
|
||||
else \
|
||||
if ${CMP} -s calc.1 ${MANDIR}/calc.${MANEXT}; then \
|
||||
if ${CMP} -s calc.1 $T${MANDIR}/calc.${MANEXT}; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${MANDIR}/calc.${MANEXT}.new; \
|
||||
cp -f calc.1 ${MANDIR}/calc.${MANEXT}.new; \
|
||||
${CHMOD} 0444 ${MANDIR}/calc.${MANEXT}.new; \
|
||||
mv -f ${MANDIR}/calc.${MANEXT}.new \
|
||||
${MANDIR}/calc.${MANEXT}; \
|
||||
echo "installed ${MANDIR}/calc.${MANEXT}"; \
|
||||
rm -f $T${MANDIR}/calc.${MANEXT}.new; \
|
||||
cp -f calc.1 $T${MANDIR}/calc.${MANEXT}.new; \
|
||||
${CHMOD} 0444 $T${MANDIR}/calc.${MANEXT}.new; \
|
||||
mv -f $T${MANDIR}/calc.${MANEXT}.new \
|
||||
$T${MANDIR}/calc.${MANEXT}; \
|
||||
echo "installed $T${MANDIR}/calc.${MANEXT}"; \
|
||||
fi; \
|
||||
fi
|
||||
-${Q}if [ -z "${CATDIR}" ]; then \
|
||||
true; \
|
||||
else \
|
||||
if ${CMP} -s calc.1 ${MANDIR}/calc.${MANEXT}; then \
|
||||
if ${CMP} -s calc.1 $T${MANDIR}/calc.${MANEXT}; then \
|
||||
true; \
|
||||
else \
|
||||
if [ -z "${NROFF}" ]; then \
|
||||
echo "${MANMAKE} calc.1 ${CATDIR}"; \
|
||||
${MANMAKE} calc.1 ${CATDIR}; \
|
||||
echo "${MANMAKE} calc.1 $T${CATDIR}"; \
|
||||
${MANMAKE} calc.1 $T${CATDIR}; \
|
||||
else \
|
||||
rm -f ${CATDIR}/calc.${CATEXT}.new; \
|
||||
rm -f $T${CATDIR}/calc.${CATEXT}.new; \
|
||||
${NROFF} ${NROFF_ARG} calc.1 > \
|
||||
${CATDIR}/calc.${CATEXT}.new; \
|
||||
${CHMOD} ${MANMODE} ${MANDIR}/calc.${CATEXT}.new; \
|
||||
mv -f ${CATDIR}/calc.${CATEXT}.new \
|
||||
${CATDIR}/calc.${CATEXT}; \
|
||||
echo "installed ${CATDIR}/calc.${CATEXT}"; \
|
||||
$T${CATDIR}/calc.${CATEXT}.new; \
|
||||
${CHMOD} ${MANMODE} $T${MANDIR}/calc.${CATEXT}.new; \
|
||||
mv -f $T${CATDIR}/calc.${CATEXT}.new \
|
||||
$T${CATDIR}/calc.${CATEXT}; \
|
||||
echo "installed $T${CATDIR}/calc.${CATEXT}"; \
|
||||
fi; \
|
||||
fi; \
|
||||
fi
|
||||
|
4974
Makefile.linux
Normal file
4974
Makefile.linux
Normal file
File diff suppressed because it is too large
Load Diff
6
alloc.h
6
alloc.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: alloc.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: alloc.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/alloc.h,v $
|
||||
*
|
||||
* Under source code control: 1990/02/15 01:48:29
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __ALLOC_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "have_malloc.h"
|
||||
# include "have_newstr.h"
|
||||
# include "have_string.h"
|
||||
|
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: byteswap.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: byteswap.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/byteswap.h,v $
|
||||
*
|
||||
* Under source code control: 1995/10/11 04:44:01
|
||||
@@ -33,7 +33,7 @@
|
||||
#define __BYTESWAP_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "longbits.h"
|
||||
#else
|
||||
# include <calc/longbits.h>
|
||||
|
63
cal/Makefile
63
cal/Makefile
@@ -18,8 +18,8 @@
|
||||
# received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# @(#) $Revision: 29.10 $
|
||||
# @(#) $Id: Makefile,v 29.10 2001/06/06 10:06:48 chongo Exp $
|
||||
# @(#) $Revision: 29.12 $
|
||||
# @(#) $Id: Makefile,v 29.12 2001/06/08 22:38:53 chongo Exp $
|
||||
# @(#) $Source: /usr/local/src/cmd/calc/cal/RCS/Makefile,v $
|
||||
#
|
||||
# Under source code control: 1991/07/21 05:00:54
|
||||
@@ -47,6 +47,22 @@ SHAREDIR= /usr/share
|
||||
|
||||
CSHAREDIR= ${SHAREDIR}/calc
|
||||
|
||||
# T - top level directory under which calc will be installed
|
||||
#
|
||||
# The calc install is performed under $T, the calc build is
|
||||
# performed under /. The purpose for $T is to allow someone to
|
||||
# install calc somewhere other than into the system area. For example
|
||||
# when forming the calc rpm, the Makefile is called with T=$RPM_BUILD_ROOT.
|
||||
#
|
||||
# If $T is empty, calc is installed under /, which is the same
|
||||
# top of tree for which it was built. If $T is non-empty, then
|
||||
# calc is installed under $T, as if one had to chroot under
|
||||
# $T for calc to operate.
|
||||
#
|
||||
# If in doubt, use T=
|
||||
#
|
||||
T=
|
||||
|
||||
# Makefile debug
|
||||
#
|
||||
# Q=@ do not echo internal makefile actions (quiet mode)
|
||||
@@ -124,9 +140,6 @@ calcliblist:
|
||||
#
|
||||
##
|
||||
|
||||
echo_CALC_FILES:
|
||||
${Q}echo __file__ ${CALC_FILES}
|
||||
|
||||
echo_inst_files:
|
||||
${Q}for i in ${CALC_FILES}; do \
|
||||
echo __file__ ${CSHAREDIR}/$$i; \
|
||||
@@ -144,30 +157,38 @@ clobber:
|
||||
rm -f .all
|
||||
|
||||
install: all
|
||||
-${Q}if [ ! -d ${SHAREDIR} ]; then \
|
||||
echo mkdir ${SHAREDIR}; \
|
||||
mkdir ${SHAREDIR}; \
|
||||
echo ${CHMOD} 0755 ${SHAREDIR}; \
|
||||
${CHMOD} 0755 ${SHAREDIR}; \
|
||||
-${Q}if [ ! -d $T${SHAREDIR} ]; then \
|
||||
echo mkdir $T${SHAREDIR}; \
|
||||
mkdir $T${SHAREDIR}; \
|
||||
if [ ! -d "$T${SHAREDIR}" ]; then \
|
||||
echo mkdir -p "$T${SHAREDIR}"; \
|
||||
mkdir -p "$T${SHAREDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${SHAREDIR}; \
|
||||
${CHMOD} 0755 $T${SHAREDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CSHAREDIR} ]; then \
|
||||
echo mkdir ${CSHAREDIR}; \
|
||||
mkdir ${CSHAREDIR}; \
|
||||
echo ${CHMOD} 0755 ${CSHAREDIR}; \
|
||||
${CHMOD} 0755 ${CSHAREDIR}; \
|
||||
-${Q}if [ ! -d $T${CSHAREDIR} ]; then \
|
||||
echo mkdir $T${CSHAREDIR}; \
|
||||
mkdir $T${CSHAREDIR}; \
|
||||
if [ ! -d "$T${CSHAREDIR}" ]; then \
|
||||
echo mkdir -p "$T${CSHAREDIR}"; \
|
||||
mkdir -p "$T${CSHAREDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CSHAREDIR}; \
|
||||
${CHMOD} 0755 $T${CSHAREDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
${Q}for i in ${CALC_FILES}; do \
|
||||
if ${CMP} -s $$i ${CSHAREDIR}/$$i; then \
|
||||
if ${CMP} -s $$i $T${CSHAREDIR}/$$i; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${CSHAREDIR}/$$i.new; \
|
||||
cp -f $$i ${CSHAREDIR}/$$i.new; \
|
||||
${CHMOD} 0444 ${CSHAREDIR}/$$i.new; \
|
||||
mv -f ${CSHAREDIR}/$$i.new ${CSHAREDIR}/$$i; \
|
||||
echo "installed ${CSHAREDIR}/$$i"; \
|
||||
rm -f $T${CSHAREDIR}/$$i.new; \
|
||||
cp -f $$i $T${CSHAREDIR}/$$i.new; \
|
||||
${CHMOD} 0444 $T${CSHAREDIR}/$$i.new; \
|
||||
mv -f $T${CSHAREDIR}/$$i.new $T${CSHAREDIR}/$$i; \
|
||||
echo "installed $T${CSHAREDIR}/$$i"; \
|
||||
fi; \
|
||||
done
|
||||
|
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: lucas.cal,v 29.3 2001/03/31 13:31:34 chongo Exp $
|
||||
* @(#) $Revision: 29.5 $
|
||||
* @(#) $Id: lucas.cal,v 29.5 2001/06/08 20:07:29 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/cal/RCS/lucas.cal,v $
|
||||
*
|
||||
* Under source code control: 1990/05/03 16:49:51
|
||||
@@ -28,6 +28,16 @@
|
||||
* Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
*/
|
||||
|
||||
/*
|
||||
* NOTE: This is a standard calc resource file. For information on calc see:
|
||||
*
|
||||
* http://www.isthe.com/chongo/tech/comp/calc/index.html
|
||||
*
|
||||
* To obtain your own copy of calc, see:
|
||||
*
|
||||
* http://www.isthe.com/chongo/tech/comp/calc/calc-download.html
|
||||
*/
|
||||
|
||||
/*
|
||||
* HISTORICAL NOTE:
|
||||
*
|
||||
@@ -52,12 +62,19 @@
|
||||
*
|
||||
* At the time of discovery, this was the largest known twin prime pair.
|
||||
*
|
||||
* See:
|
||||
*
|
||||
* http://www.isthe.com/chongo/tech/math/prime/amdahl6.html
|
||||
*
|
||||
* for more information on the Amdahl 6 group.
|
||||
*
|
||||
* NOTE: Both largest known and largest known twin prime records have been
|
||||
* broken. Rather than update this file each time, I'll just
|
||||
* congratulate the finders and encourage others to try for
|
||||
* larger finds. Records were made to be broken afterall!
|
||||
*
|
||||
* ON GAINING A WORLD RECORD:
|
||||
*/
|
||||
|
||||
/* ON GAINING A WORLD RECORD:
|
||||
*
|
||||
* The routines in calc were designed to be portable, and to work on
|
||||
* numbers of 'sane' size. The Amdahl 6 team used a 'ultra-high speed
|
||||
|
6
calc.h
6
calc.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.7 $
|
||||
* @(#) $Id: calc.h,v 29.7 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.8 $
|
||||
* @(#) $Id: calc.h,v 29.8 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/calc.h,v $
|
||||
*
|
||||
* Under source code control: 1990/02/15 01:48:31
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __CALC_H__
|
||||
|
||||
#include <setjmp.h>
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "win32dll.h"
|
||||
# include "value.h"
|
||||
# include "have_const.h"
|
||||
|
60
calc.spec
Normal file
60
calc.spec
Normal file
@@ -0,0 +1,60 @@
|
||||
Summary: C-style arbitrary precision calculator
|
||||
Name: calc
|
||||
Version: 2.11.5
|
||||
Release: 4.5
|
||||
Copyright: LGPL
|
||||
Group: Applications/Engineering
|
||||
Source: http://www.isthe.com/chongo/src/calc/calc-2.11.5t4.5.tar.gz
|
||||
Patch0: rpm.mk.patch
|
||||
BuildRoot: /var/tmp/%{name}-buildroot
|
||||
|
||||
%description
|
||||
Calc is an interactive calculator which provides for easy large numeric
|
||||
calculations, but which also can be easily programmed for difficult or
|
||||
long calculations.
|
||||
|
||||
All numbers are represented as fractions with arbitrarily large numerators
|
||||
and denominators which are always reduced to lowest terms. Real or
|
||||
exponential format numbers are converted to the equivalent fraction.
|
||||
One use enter decinal, hex, octal, binary and complex values.
|
||||
|
||||
Commands are statements in a C-like language, where each input line is
|
||||
treated as the body of a procedure. You can define your own functions
|
||||
by using the 'define' keyword, followed by a function declaration very
|
||||
similar to C. Calc also comes with a rich set of builtin functions
|
||||
and calc shell commands.
|
||||
|
||||
In addition to numeric global, local and static variables, Calc as
|
||||
lists, associated arrays, matrices, byte blocks, dymanic strings and
|
||||
user defined objects.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
make -f Makefile.linux all RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make -f Makefile.linux install RPM_OPT_FLAGS="$RPM_OPT_FLAGS" T="$RPM_BUILD_ROOT"
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f install.list
|
||||
%dir /usr/share/calc
|
||||
%dir /usr/share/calc/help
|
||||
%dir /usr/include/calc
|
||||
%dir /usr/share/calc/custom
|
||||
%dir /usr/share/calc/custhelp
|
||||
%dir /usr/include/calc/custom
|
||||
%dir /usr/bin/cscript
|
||||
%defattr(-,root,root)
|
||||
%doc BUGS README COPYING COPYING-LGPL HOWTO.INSTALL
|
||||
%doc README LIBRARY README.WINDOWS calc.1
|
||||
%doc help/resource help/errorcodes help/custom_cal help/new_custom
|
||||
%doc help/cscript help/full
|
||||
|
||||
%changelog
|
||||
* Fri Jun 08 2001 Landon Curt Noll <http://www.isthe.com/chongo/index.html>
|
||||
- calc version 2.11.5t4.5
|
6
cmath.h
6
cmath.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: cmath.h,v 29.4 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.5 $
|
||||
* @(#) $Id: cmath.h,v 29.5 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/cmath.h,v $
|
||||
*
|
||||
* Under source code control: 1993/07/30 19:42:45
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __CMATH_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "qmath.h"
|
||||
#else
|
||||
# include <calc/qmath.h>
|
||||
|
6
config.h
6
config.h
@@ -19,8 +19,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.10 $
|
||||
* @(#) $Id: config.h,v 29.10 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.11 $
|
||||
* @(#) $Id: config.h,v 29.11 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/config.h,v $
|
||||
*
|
||||
* Under source code control: 1995/11/01 22:20:17
|
||||
@@ -35,7 +35,7 @@
|
||||
#define __CONFIG_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "win32dll.h"
|
||||
# include "nametype.h"
|
||||
# include "qmath.h"
|
||||
|
@@ -17,8 +17,8 @@
|
||||
# received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# @(#) $Revision: 29.16 $
|
||||
# @(#) $Id: Makefile,v 29.16 2001/06/06 10:06:48 chongo Exp $
|
||||
# @(#) $Revision: 29.18 $
|
||||
# @(#) $Id: Makefile,v 29.18 2001/06/08 22:38:53 chongo Exp $
|
||||
# @(#) $Source: /usr/local/src/cmd/calc/cscript/RCS/Makefile,v $
|
||||
#
|
||||
# Under source code control: 1999/11/29 11:10:26
|
||||
@@ -45,6 +45,22 @@ BINDIR= /usr/bin
|
||||
#
|
||||
SCRIPTDIR= ${BINDIR}/cscript
|
||||
|
||||
# T - top level directory under which calc will be installed
|
||||
#
|
||||
# The calc install is performed under $T, the calc build is
|
||||
# performed under /. The purpose for $T is to allow someone to
|
||||
# install calc somewhere other than into the system area. For example
|
||||
# when forming the calc rpm, the Makefile is called with T=$RPM_BUILD_ROOT.
|
||||
#
|
||||
# If $T is empty, calc is installed under /, which is the same
|
||||
# top of tree for which it was built. If $T is non-empty, then
|
||||
# calc is installed under $T, as if one had to chroot under
|
||||
# $T for calc to operate.
|
||||
#
|
||||
# If in doubt, use T=
|
||||
#
|
||||
T=
|
||||
|
||||
# Makefile debug
|
||||
#
|
||||
# Q=@ do not echo internal makefile actions (quiet mode)
|
||||
@@ -216,9 +232,6 @@ depend:
|
||||
#
|
||||
##
|
||||
|
||||
echo_SCRIPT:
|
||||
${Q}echo __file__ ${SCRIPT}
|
||||
|
||||
echo_inst_files:
|
||||
${Q}for i in ${SCRIPT}; do \
|
||||
echo __file__ ${SCRIPTDIR}/$$i; \
|
||||
@@ -237,31 +250,39 @@ clobber:
|
||||
-rm -f ${TARGETS}
|
||||
|
||||
install: all
|
||||
-${Q}if [ ! -d ${BINDIR} ]; then \
|
||||
echo mkdir ${BINDIR}; \
|
||||
mkdir ${BINDIR}; \
|
||||
echo ${CHMOD} 0755 ${BINDIR}; \
|
||||
${CHMOD} 0755 ${BINDIR}; \
|
||||
-${Q}if [ ! -d $T${BINDIR} ]; then \
|
||||
echo mkdir $T${BINDIR}; \
|
||||
mkdir $T${BINDIR}; \
|
||||
if [ ! -d "$T${BINDIR}" ]; then \
|
||||
echo mkdir -p "$T${BINDIR}"; \
|
||||
mkdir -p "$T${BINDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${BINDIR}; \
|
||||
${CHMOD} 0755 $T${BINDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${SCRIPTDIR} ]; then \
|
||||
echo mkdir ${SCRIPTDIR}; \
|
||||
mkdir ${SCRIPTDIR}; \
|
||||
echo ${CHMOD} 0755 ${SCRIPTDIR}; \
|
||||
${CHMOD} 0755 ${SCRIPTDIR}; \
|
||||
-${Q}if [ ! -d $T${SCRIPTDIR} ]; then \
|
||||
echo mkdir $T${SCRIPTDIR}; \
|
||||
mkdir $T${SCRIPTDIR}; \
|
||||
if [ ! -d "$T${SCRIPTDIR}" ]; then \
|
||||
echo mkdir -p "$T${SCRIPTDIR}"; \
|
||||
mkdir -p "$T${SCRIPTDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${SCRIPTDIR}; \
|
||||
${CHMOD} 0755 $T${SCRIPTDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
${Q}for i in ${SCRIPT}; do \
|
||||
if ${CMP} -s $$i ${SCRIPTDIR}/$$i; then \
|
||||
if ${CMP} -s $$i $T${SCRIPTDIR}/$$i; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${SCRIPTDIR}/$$i.new; \
|
||||
cp -f $$i ${SCRIPTDIR}/$$i.new; \
|
||||
${CHMOD} 0555 ${SCRIPTDIR}/$$i.new; \
|
||||
mv -f ${SCRIPTDIR}/$$i.new ${SCRIPTDIR}/$$i; \
|
||||
echo "installed ${SCRIPTDIR}/$$i"; \
|
||||
rm -f $T${SCRIPTDIR}/$$i.new; \
|
||||
cp -f $$i $T${SCRIPTDIR}/$$i.new; \
|
||||
${CHMOD} 0555 $T${SCRIPTDIR}/$$i.new; \
|
||||
mv -f $T${SCRIPTDIR}/$$i.new $T${SCRIPTDIR}/$$i; \
|
||||
echo "installed $T${SCRIPTDIR}/$$i"; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
|
196
custom/Makefile
196
custom/Makefile
@@ -18,8 +18,8 @@
|
||||
# received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# @(#) $Revision: 29.15 $
|
||||
# @(#) $Id: Makefile,v 29.15 2001/06/06 10:06:48 chongo Exp $
|
||||
# @(#) $Revision: 29.17 $
|
||||
# @(#) $Id: Makefile,v 29.17 2001/06/08 22:38:53 chongo Exp $
|
||||
# @(#) $Source: /usr/local/src/cmd/calc/custom/RCS/Makefile,v $
|
||||
#
|
||||
# Under source code control: 1997/03/09 02:28:54
|
||||
@@ -116,6 +116,22 @@ CUSTOMLIBDIR= ${CSHAREDIR}/custom
|
||||
CUSTOMHELPDIR= ${CSHAREDIR}/custhelp
|
||||
CUSTOMINCDIR= ${INCDIRCALC}/custom
|
||||
|
||||
# T - top level directory under which calc will be installed
|
||||
#
|
||||
# The calc install is performed under $T, the calc build is
|
||||
# performed under /. The purpose for $T is to allow someone to
|
||||
# install calc somewhere other than into the system area. For example
|
||||
# when forming the calc rpm, the Makefile is called with T=$RPM_BUILD_ROOT.
|
||||
#
|
||||
# If $T is empty, calc is installed under /, which is the same
|
||||
# top of tree for which it was built. If $T is non-empty, then
|
||||
# calc is installed under $T, as if one had to chroot under
|
||||
# $T for calc to operate.
|
||||
#
|
||||
# If in doubt, use T=
|
||||
#
|
||||
T=
|
||||
|
||||
# Normally, the upper level makefile will set these values. We provide
|
||||
# a default here just in case you want to build from this directory.
|
||||
#
|
||||
@@ -468,15 +484,6 @@ depend:
|
||||
#
|
||||
##
|
||||
|
||||
echo_INSTALL_H_SRC:
|
||||
${Q}echo __file__ ${INSTALL_H_SRC}
|
||||
|
||||
echo_CUSTOM_CALC_FILES:
|
||||
${Q}echo __file__ ${CUSTOM_CALC_FILES}
|
||||
|
||||
echo_CUSTOM_HELP:
|
||||
${Q}echo __file__ ${CUSTOM_HELP}
|
||||
|
||||
echo_inst_files:
|
||||
${Q}for i in ${INSTALL_H_SRC}; do \
|
||||
echo __file__ ${CUSTOMINCDIR}/$$i; \
|
||||
@@ -505,118 +512,147 @@ clobber:
|
||||
rm -f .all Makefile.tmp Makefile.bak
|
||||
|
||||
install: all
|
||||
-${Q}if [ ! -d ${SHAREDIR} ]; then \
|
||||
echo mkdir ${SHAREDIR}; \
|
||||
mkdir ${SHAREDIR}; \
|
||||
echo ${CHMOD} 0755 ${SHAREDIR}; \
|
||||
${CHMOD} 0755 ${SHAREDIR}; \
|
||||
-${Q}if [ ! -d $T${SHAREDIR} ]; then \
|
||||
echo mkdir $T${SHAREDIR}; \
|
||||
mkdir $T${SHAREDIR}; \
|
||||
if [ ! -d "$T${SHAREDIR}" ]; then \
|
||||
echo mkdir -p "$T${SHAREDIR}"; \
|
||||
mkdir -p "$T${SHAREDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${SHAREDIR}; \
|
||||
${CHMOD} 0755 $T${SHAREDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${INCDIR} ]; then \
|
||||
echo mkdir ${INCDIR}; \
|
||||
mkdir ${INCDIR}; \
|
||||
echo ${CHMOD} 0755 ${INCDIR}; \
|
||||
${CHMOD} 0755 ${INCDIR}; \
|
||||
-${Q}if [ ! -d $T${INCDIR} ]; then \
|
||||
echo mkdir $T${INCDIR}; \
|
||||
mkdir $T${INCDIR}; \
|
||||
if [ ! -d "$T${INCDIR}" ]; then \
|
||||
echo mkdir -p "$T${INCDIR}"; \
|
||||
mkdir -p "$T${INCDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${INCDIR}; \
|
||||
${CHMOD} 0755 $T${INCDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CSHAREDIR} ]; then \
|
||||
echo mkdir ${CSHAREDIR}; \
|
||||
mkdir ${CSHAREDIR}; \
|
||||
echo ${CHMOD} 0755 ${CSHAREDIR}; \
|
||||
${CHMOD} 0755 ${CSHAREDIR}; \
|
||||
-${Q}if [ ! -d $T${CSHAREDIR} ]; then \
|
||||
echo mkdir $T${CSHAREDIR}; \
|
||||
mkdir $T${CSHAREDIR}; \
|
||||
if [ ! -d "$T${CSHAREDIR}" ]; then \
|
||||
echo mkdir -p "$T${CSHAREDIR}"; \
|
||||
mkdir -p "$T${CSHAREDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CSHAREDIR}; \
|
||||
${CHMOD} 0755 $T${CSHAREDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${INCDIRCALC} ]; then \
|
||||
echo mkdir ${INCDIRCALC}; \
|
||||
mkdir ${INCDIRCALC}; \
|
||||
echo ${CHMOD} 0755 ${INCDIRCALC}; \
|
||||
${CHMOD} 0755 ${INCDIRCALC}; \
|
||||
-${Q}if [ ! -d $T${INCDIRCALC} ]; then \
|
||||
echo mkdir $T${INCDIRCALC}; \
|
||||
mkdir $T${INCDIRCALC}; \
|
||||
if [ ! -d "$T${INCDIRCALC}" ]; then \
|
||||
echo mkdir -p "$T${INCDIRCALC}"; \
|
||||
mkdir -p "$T${INCDIRCALC}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${INCDIRCALC}; \
|
||||
${CHMOD} 0755 $T${INCDIRCALC}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${HELPDIR} ]; then \
|
||||
echo mkdir ${HELPDIR}; \
|
||||
mkdir ${HELPDIR}; \
|
||||
echo ${CHMOD} 0755 ${HELPDIR}; \
|
||||
${CHMOD} 0755 ${HELPDIR}; \
|
||||
-${Q}if [ ! -d $T${HELPDIR} ]; then \
|
||||
echo mkdir $T${HELPDIR}; \
|
||||
mkdir $T${HELPDIR}; \
|
||||
if [ ! -d "$T${HELPDIR}" ]; then \
|
||||
echo mkdir -p "$T${HELPDIR}"; \
|
||||
mkdir -p "$T${HELPDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${HELPDIR}; \
|
||||
${CHMOD} 0755 $T${HELPDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CUSTOMLIBDIR} ]; then \
|
||||
echo mkdir ${CUSTOMLIBDIR}; \
|
||||
mkdir ${CUSTOMLIBDIR}; \
|
||||
echo ${CHMOD} 0755 ${CUSTOMLIBDIR}; \
|
||||
${CHMOD} 0755 ${CUSTOMLIBDIR}; \
|
||||
-${Q}if [ ! -d $T${CUSTOMLIBDIR} ]; then \
|
||||
echo mkdir $T${CUSTOMLIBDIR}; \
|
||||
mkdir $T${CUSTOMLIBDIR}; \
|
||||
if [ ! -d "$T${CUSTOMLIBDIR}" ]; then \
|
||||
echo mkdir -p "$T${CUSTOMLIBDIR}"; \
|
||||
mkdir -p "$T${CUSTOMLIBDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CUSTOMLIBDIR}; \
|
||||
${CHMOD} 0755 $T${CUSTOMLIBDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CUSTOMHELPDIR} ]; then \
|
||||
echo mkdir ${CUSTOMHELPDIR}; \
|
||||
mkdir ${CUSTOMHELPDIR}; \
|
||||
echo ${CHMOD} 0755 ${CUSTOMHELPDIR}; \
|
||||
${CHMOD} 0755 ${CUSTOMHELPDIR}; \
|
||||
-${Q}if [ ! -d $T${CUSTOMHELPDIR} ]; then \
|
||||
echo mkdir $T${CUSTOMHELPDIR}; \
|
||||
mkdir $T${CUSTOMHELPDIR}; \
|
||||
if [ ! -d "$T${CUSTOMHELPDIR}" ]; then \
|
||||
echo mkdir -p "$T${CUSTOMHELPDIR}"; \
|
||||
mkdir -p "$T${CUSTOMHELPDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CUSTOMHELPDIR}; \
|
||||
${CHMOD} 0755 $T${CUSTOMHELPDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CUSTOMINCDIR} ]; then \
|
||||
echo mkdir ${CUSTOMINCDIR}; \
|
||||
mkdir ${CUSTOMINCDIR}; \
|
||||
echo ${CHMOD} 0755 ${CUSTOMINCDIR}; \
|
||||
${CHMOD} 0755 ${CUSTOMINCDIR}; \
|
||||
-${Q}if [ ! -d $T${CUSTOMINCDIR} ]; then \
|
||||
echo mkdir $T${CUSTOMINCDIR}; \
|
||||
mkdir $T${CUSTOMINCDIR}; \
|
||||
if [ ! -d "$T${CUSTOMINCDIR}" ]; then \
|
||||
echo mkdir -p "$T${CUSTOMINCDIR}"; \
|
||||
mkdir -p "$T${CUSTOMINCDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CUSTOMINCDIR}; \
|
||||
${CHMOD} 0755 $T${CUSTOMINCDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}for i in ${INSTALL_H_SRC}; do \
|
||||
rm -f tmp; \
|
||||
${SED} -e 's/^\(#[ ]*include[ ][ ]*\)"/\1"calc\//' $$i > tmp; \
|
||||
if ${CMP} -s tmp ${CUSTOMINCDIR}/$$i; then \
|
||||
if ${CMP} -s tmp $T${CUSTOMINCDIR}/$$i; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${CUSTOMINCDIR}/$$i.new; \
|
||||
cp -f tmp ${INCDIRCALC}/$$i.new; \
|
||||
cp -f $$i ${CUSTOMINCDIR}/$$i.new; \
|
||||
${CHMOD} 0444 ${CUSTOMINCDIR}/$$i.new; \
|
||||
mv -f ${CUSTOMINCDIR}/$$i.new ${CUSTOMINCDIR}/$$i; \
|
||||
echo "installed ${CUSTOMINCDIR}/$$i"; \
|
||||
rm -f $T${CUSTOMINCDIR}/$$i.new; \
|
||||
cp -f $$i $T${CUSTOMINCDIR}/$$i.new; \
|
||||
${CHMOD} 0444 $T${CUSTOMINCDIR}/$$i.new; \
|
||||
mv -f $T${CUSTOMINCDIR}/$$i.new $T${CUSTOMINCDIR}/$$i; \
|
||||
echo "installed $T${CUSTOMINCDIR}/$$i"; \
|
||||
fi; \
|
||||
done
|
||||
-${Q}rm -f tmp
|
||||
-${Q}for i in ${CUSTOM_CALC_FILES}; do \
|
||||
if ${CMP} -s $$i ${CUSTOMLIBDIR}/$$i; then \
|
||||
if ${CMP} -s $$i $T${CUSTOMLIBDIR}/$$i; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${CUSTOMLIBDIR}/$$i.new; \
|
||||
cp -f $$i ${CUSTOMLIBDIR}/$$i.new; \
|
||||
${CHMOD} 0444 ${CUSTOMLIBDIR}/$$i.new; \
|
||||
mv -f ${CUSTOMLIBDIR}/$$i.new ${CUSTOMLIBDIR}/$$i; \
|
||||
echo "installed ${CUSTOMLIBDIR}/$$i"; \
|
||||
rm -f $T${CUSTOMLIBDIR}/$$i.new; \
|
||||
cp -f $$i $T${CUSTOMLIBDIR}/$$i.new; \
|
||||
${CHMOD} 0444 $T${CUSTOMLIBDIR}/$$i.new; \
|
||||
mv -f $T${CUSTOMLIBDIR}/$$i.new $T${CUSTOMLIBDIR}/$$i; \
|
||||
echo "installed $T${CUSTOMLIBDIR}/$$i"; \
|
||||
fi; \
|
||||
done
|
||||
-${Q}for i in ${CUSTOM_HELP}; do \
|
||||
if ${CMP} -s $$i ${CUSTOMHELPDIR}/$$i; then \
|
||||
if ${CMP} -s $$i $T${CUSTOMHELPDIR}/$$i; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${CUSTOMHELPDIR}/$$i.new; \
|
||||
cp -f $$i ${CUSTOMHELPDIR}/$$i.new; \
|
||||
${CHMOD} 0444 ${CUSTOMHELPDIR}/$$i.new; \
|
||||
mv -f ${CUSTOMHELPDIR}/$$i.new ${CUSTOMHELPDIR}/$$i; \
|
||||
echo "installed ${CUSTOMHELPDIR}/$$i"; \
|
||||
rm -f $T${CUSTOMHELPDIR}/$$i.new; \
|
||||
cp -f $$i $T${CUSTOMHELPDIR}/$$i.new; \
|
||||
${CHMOD} 0444 $T${CUSTOMHELPDIR}/$$i.new; \
|
||||
mv -f $T${CUSTOMHELPDIR}/$$i.new $T${CUSTOMHELPDIR}/$$i; \
|
||||
echo "installed $T${CUSTOMHELPDIR}/$$i"; \
|
||||
fi; \
|
||||
done
|
||||
-${Q}if [ ! -z ${ALLOW_CUSTOM} ]; then \
|
||||
if ${CMP} -s libcustcalc.a ${CUSTOMLIBDIR}/libcustcalc.a; then \
|
||||
if ${CMP} -s libcustcalc.a $T${CUSTOMLIBDIR}/libcustcalc.a; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${CUSTOMLIBDIR}/libcustcalc.a.new; \
|
||||
cp -f libcustcalc.a ${CUSTOMLIBDIR}/libcustcalc.a.new; \
|
||||
${CHMOD} 0644 ${CUSTOMLIBDIR}/libcustcalc.a.new; \
|
||||
mv -f ${CUSTOMLIBDIR}/libcustcalc.a.new \
|
||||
${CUSTOMLIBDIR}/libcustcalc.a; \
|
||||
${RANLIB} ${CUSTOMLIBDIR}/libcustcalc.a; \
|
||||
echo "installed ${CUSTOMLIBDIR}/libcustcalc.a"; \
|
||||
rm -f $T${CUSTOMLIBDIR}/libcustcalc.a.new; \
|
||||
cp -f libcustcalc.a $T${CUSTOMLIBDIR}/libcustcalc.a.new; \
|
||||
${CHMOD} 0644 $T${CUSTOMLIBDIR}/libcustcalc.a.new; \
|
||||
mv -f $T${CUSTOMLIBDIR}/libcustcalc.a.new \
|
||||
$T${CUSTOMLIBDIR}/libcustcalc.a; \
|
||||
${RANLIB} $T${CUSTOMLIBDIR}/libcustcalc.a; \
|
||||
echo "installed $T${CUSTOMLIBDIR}/libcustcalc.a"; \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
|
6
file.h
6
file.h
@@ -19,8 +19,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: file.h,v 29.4 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.5 $
|
||||
* @(#) $Id: file.h,v 29.5 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/file.h,v $
|
||||
*
|
||||
* Under source code control: 1996/05/24 05:55:58
|
||||
@@ -35,7 +35,7 @@
|
||||
#define __FILE_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "have_fpos.h"
|
||||
#else
|
||||
# include <calc/have_fpos.h>
|
||||
|
6
func.h
6
func.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: func.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: func.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/func.h,v $
|
||||
*
|
||||
* Under source code control: 1990/02/15 01:48:33
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __FUNC_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "calc.h"
|
||||
# include "label.h"
|
||||
#else
|
||||
|
6
hash.h
6
hash.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: hash.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: hash.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/hash.h,v $
|
||||
*
|
||||
* Under source code control: 1995/11/14 23:57:45
|
||||
@@ -33,7 +33,7 @@
|
||||
#define __HASH_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "shs.h"
|
||||
# include "shs1.h"
|
||||
# include "md5.h"
|
||||
|
109
help/Makefile
109
help/Makefile
@@ -18,8 +18,8 @@
|
||||
# received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# @(#) $Revision: 29.14 $
|
||||
# @(#) $Id: Makefile,v 29.14 2001/06/06 10:06:48 chongo Exp $
|
||||
# @(#) $Revision: 29.18 $
|
||||
# @(#) $Id: Makefile,v 29.18 2001/06/08 22:57:54 chongo Exp $
|
||||
# @(#) $Source: /usr/local/src/cmd/calc/help/RCS/Makefile,v $
|
||||
#
|
||||
# Under source code control: 1991/07/23 06:47:57
|
||||
@@ -37,15 +37,41 @@ SHELL= /bin/sh
|
||||
MAKE_FILE = Makefile
|
||||
|
||||
# ${SHAREDIR} where most common shared files are kept
|
||||
# ${INCDIR} where most .h files are kept
|
||||
# ${LIBDIR} where *.a files are installed
|
||||
#
|
||||
# ${CSHAREDIR} where most common shared calc files are kept
|
||||
# ${HELPDIR} where the help directory is installed.
|
||||
# ${INCDIRCALC} where the calc include files are installed
|
||||
#
|
||||
#SHAREDIR= /usr/local/lib
|
||||
SHAREDIR= /usr/share
|
||||
|
||||
#INCDIR= /usr/local/include
|
||||
INCDIR= /usr/include
|
||||
|
||||
#LIBDIR= /usr/local/lib
|
||||
LIBDIR= /usr/lib
|
||||
|
||||
CSHAREDIR= ${SHAREDIR}/calc
|
||||
HELPDIR= ${CSHAREDIR}/help
|
||||
INCDIRCALC= ${INCDIR}/calc
|
||||
|
||||
# T - top level directory under which calc will be installed
|
||||
#
|
||||
# The calc install is performed under $T, the calc build is
|
||||
# performed under /. The purpose for $T is to allow someone to
|
||||
# install calc somewhere other than into the system area. For example
|
||||
# when forming the calc rpm, the Makefile is called with T=$RPM_BUILD_ROOT.
|
||||
#
|
||||
# If $T is empty, calc is installed under /, which is the same
|
||||
# top of tree for which it was built. If $T is non-empty, then
|
||||
# calc is installed under $T, as if one had to chroot under
|
||||
# $T for calc to operate.
|
||||
#
|
||||
# If in doubt, use T=
|
||||
#
|
||||
T=
|
||||
|
||||
# Makefile debug
|
||||
#
|
||||
@@ -240,7 +266,8 @@ changes: ../CHANGES
|
||||
|
||||
libcalc: ../LIBRARY
|
||||
rm -f $@
|
||||
${SED} -e 's:$${LIBDIR}:${LIBDIR}:g' < ../LIBRARY > $@
|
||||
${SED} -e 's:$${LIBDIR}:${LIBDIR}:g' \
|
||||
-e 's:$${INCDIRCALC}:${INCDIRCALC}:g' < ../LIBRARY > $@
|
||||
${CHMOD} 0444 $@
|
||||
-@if [ -z "${Q}" ]; then \
|
||||
echo ''; \
|
||||
@@ -497,18 +524,6 @@ detaillist:
|
||||
#
|
||||
##
|
||||
|
||||
echo_STD_HELP_FILES:
|
||||
${Q}echo __file__ ${STD_HELP_FILES}
|
||||
|
||||
echo_BLT_HELP_FILES:
|
||||
${Q}echo __file__ ${BLT_HELP_FILES}
|
||||
|
||||
echo_DETAIL_HELP:
|
||||
${Q}echo __file__ ${DETAIL_HELP}
|
||||
|
||||
echo_SINGULAR_FILES:
|
||||
${Q}echo __file__ ${SINGULAR_FILES}
|
||||
|
||||
echo_inst_files:
|
||||
${Q}for i in ${STD_HELP_FILES} full ${BLT_HELP_FILES} \
|
||||
builtin ${DETAIL_HELP} ${SINGULAR_FILES}; do \
|
||||
@@ -534,47 +549,59 @@ clobber:
|
||||
|
||||
install: all
|
||||
-${Q}if [ ! -d ${SHAREDIR} ]; then \
|
||||
echo mkdir ${SHAREDIR}; \
|
||||
mkdir ${SHAREDIR}; \
|
||||
echo ${CHMOD} 0755 ${SHAREDIR}; \
|
||||
${CHMOD} 0755 ${SHAREDIR}; \
|
||||
echo mkdir $T${SHAREDIR}; \
|
||||
mkdir $T${SHAREDIR}; \
|
||||
if [ ! -d "$T${SHAREDIR}" ]; then \
|
||||
echo mkdir -p "$T${SHAREDIR}"; \
|
||||
mkdir -p "$T${SHAREDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${SHAREDIR}; \
|
||||
${CHMOD} 0755 $T${SHAREDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${CSHAREDIR} ]; then \
|
||||
echo mkdir ${CSHAREDIR}; \
|
||||
mkdir ${CSHAREDIR}; \
|
||||
echo ${CHMOD} 0755 ${CSHAREDIR}; \
|
||||
${CHMOD} 0755 ${CSHAREDIR}; \
|
||||
-${Q}if [ ! -d $T${CSHAREDIR} ]; then \
|
||||
echo mkdir $T${CSHAREDIR}; \
|
||||
mkdir $T${CSHAREDIR}; \
|
||||
if [ ! -d "$T${CSHAREDIR}" ]; then \
|
||||
echo mkdir -p "$T${CSHAREDIR}"; \
|
||||
mkdir -p "$T${CSHAREDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${CSHAREDIR}; \
|
||||
${CHMOD} 0755 $T${CSHAREDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}if [ ! -d ${HELPDIR} ]; then \
|
||||
echo mkdir ${HELPDIR}; \
|
||||
mkdir ${HELPDIR}; \
|
||||
echo ${CHMOD} 0755 ${HELPDIR}; \
|
||||
${CHMOD} 0755 ${HELPDIR}; \
|
||||
-${Q}if [ ! -d $T${HELPDIR} ]; then \
|
||||
echo mkdir $T${HELPDIR}; \
|
||||
mkdir $T${HELPDIR}; \
|
||||
if [ ! -d "$T${HELPDIR}" ]; then \
|
||||
echo mkdir -p "$T${HELPDIR}"; \
|
||||
mkdir -p "$T${HELPDIR}"; \
|
||||
fi; \
|
||||
echo ${CHMOD} 0755 $T${HELPDIR}; \
|
||||
${CHMOD} 0755 $T${HELPDIR}; \
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
-${Q}for i in ${STD_HELP_FILES} ${BLT_HELP_FILES} builtin \
|
||||
full ${DETAIL_HELP} ${SINGULAR_FILES}; do \
|
||||
if ${CMP} -s $$i ${HELPDIR}/$$i; then \
|
||||
if ${CMP} -s $$i $T${HELPDIR}/$$i; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${HELPDIR}/$$i.new; \
|
||||
cp -f $$i ${HELPDIR}/$$i.new; \
|
||||
${CHMOD} 0444 ${HELPDIR}/$$i.new; \
|
||||
mv -f ${HELPDIR}/$$i.new ${HELPDIR}/$$i; \
|
||||
echo "installed ${HELPDIR}/$$i"; \
|
||||
rm -f $T${HELPDIR}/$$i.new; \
|
||||
cp -f $$i $T${HELPDIR}/$$i.new; \
|
||||
${CHMOD} 0444 $T${HELPDIR}/$$i.new; \
|
||||
mv -f $T${HELPDIR}/$$i.new $T${HELPDIR}/$$i; \
|
||||
echo "installed $T${HELPDIR}/$$i"; \
|
||||
fi; \
|
||||
done
|
||||
-${Q}if ${CMP} -s obj.file ${HELPDIR}/obj; then \
|
||||
-${Q}if ${CMP} -s obj.file $T${HELPDIR}/obj; then \
|
||||
true; \
|
||||
else \
|
||||
rm -f ${HELPDIR}/obj.new; \
|
||||
cp -f obj.file ${HELPDIR}/obj.new; \
|
||||
${CHMOD} 0444 ${HELPDIR}/obj.new; \
|
||||
mv -f ${HELPDIR}/obj.new ${HELPDIR}/obj; \
|
||||
echo "installed ${HELPDIR}/obj"; \
|
||||
rm -f $T${HELPDIR}/obj.new; \
|
||||
cp -f obj.file $T${HELPDIR}/obj.new; \
|
||||
${CHMOD} 0444 $T${HELPDIR}/obj.new; \
|
||||
mv -f $T${HELPDIR}/obj.new $T${HELPDIR}/obj; \
|
||||
echo "installed $T${HELPDIR}/obj"; \
|
||||
fi
|
||||
|
456
inst_files
Normal file
456
inst_files
Normal file
@@ -0,0 +1,456 @@
|
||||
/usr/bin/calc
|
||||
/usr/bin/cscript/4dsphere
|
||||
/usr/bin/cscript/fproduct
|
||||
/usr/bin/cscript/mersenne
|
||||
/usr/bin/cscript/piforever
|
||||
/usr/bin/cscript/plus
|
||||
/usr/bin/cscript/powerterm
|
||||
/usr/bin/cscript/simple
|
||||
/usr/bin/cscript/square
|
||||
/usr/include/calc/align32.h
|
||||
/usr/include/calc/alloc.h
|
||||
/usr/include/calc/args.h
|
||||
/usr/include/calc/blkcpy.h
|
||||
/usr/include/calc/block.h
|
||||
/usr/include/calc/byteswap.h
|
||||
/usr/include/calc/calc.h
|
||||
/usr/include/calc/calcerr.h
|
||||
/usr/include/calc/cmath.h
|
||||
/usr/include/calc/conf.h
|
||||
/usr/include/calc/config.h
|
||||
/usr/include/calc/custom.h
|
||||
/usr/include/calc/endian_calc.h
|
||||
/usr/include/calc/file.h
|
||||
/usr/include/calc/fposval.h
|
||||
/usr/include/calc/func.h
|
||||
/usr/include/calc/hash.h
|
||||
/usr/include/calc/have_const.h
|
||||
/usr/include/calc/have_fpos.h
|
||||
/usr/include/calc/have_fpos_pos.h
|
||||
/usr/include/calc/have_getpgid.h
|
||||
/usr/include/calc/have_getprid.h
|
||||
/usr/include/calc/have_getsid.h
|
||||
/usr/include/calc/have_gettime.h
|
||||
/usr/include/calc/have_malloc.h
|
||||
/usr/include/calc/have_memmv.h
|
||||
/usr/include/calc/have_newstr.h
|
||||
/usr/include/calc/have_offscl.h
|
||||
/usr/include/calc/have_posscl.h
|
||||
/usr/include/calc/have_rusage.h
|
||||
/usr/include/calc/have_stdlib.h
|
||||
/usr/include/calc/have_strdup.h
|
||||
/usr/include/calc/have_string.h
|
||||
/usr/include/calc/have_times.h
|
||||
/usr/include/calc/have_uid_t.h
|
||||
/usr/include/calc/have_unistd.h
|
||||
/usr/include/calc/have_urandom.h
|
||||
/usr/include/calc/have_ustat.h
|
||||
/usr/include/calc/hist.h
|
||||
/usr/include/calc/jump.h
|
||||
/usr/include/calc/label.h
|
||||
/usr/include/calc/lib_util.h
|
||||
/usr/include/calc/longbits.h
|
||||
/usr/include/calc/longlong.h
|
||||
/usr/include/calc/math_error.h
|
||||
/usr/include/calc/md5.h
|
||||
/usr/include/calc/nametype.h
|
||||
/usr/include/calc/opcodes.h
|
||||
/usr/include/calc/prime.h
|
||||
/usr/include/calc/qmath.h
|
||||
/usr/include/calc/shs.h
|
||||
/usr/include/calc/shs1.h
|
||||
/usr/include/calc/string.h
|
||||
/usr/include/calc/symbol.h
|
||||
/usr/include/calc/terminal.h
|
||||
/usr/include/calc/token.h
|
||||
/usr/include/calc/value.h
|
||||
/usr/include/calc/win32dll.h
|
||||
/usr/include/calc/zmath.h
|
||||
/usr/include/calc/zrand.h
|
||||
/usr/include/calc/zrandom.h
|
||||
/usr/lib/libcalc.a
|
||||
/usr/share/calc/README
|
||||
/usr/share/calc/beer.cal
|
||||
/usr/share/calc/bernoulli.cal
|
||||
/usr/share/calc/bigprime.cal
|
||||
/usr/share/calc/bindings
|
||||
/usr/share/calc/chi.cal
|
||||
/usr/share/calc/chrem.cal
|
||||
/usr/share/calc/custhelp/argv
|
||||
/usr/share/calc/custhelp/devnull
|
||||
/usr/share/calc/custhelp/help
|
||||
/usr/share/calc/custhelp/pzasusb8
|
||||
/usr/share/calc/custhelp/sysinfo
|
||||
/usr/share/calc/custom/argv.cal
|
||||
/usr/share/calc/custom/halflen.cal
|
||||
/usr/share/calc/custom/libcustcalc.a
|
||||
/usr/share/calc/custom/pzasusb8.cal
|
||||
/usr/share/calc/deg.cal
|
||||
/usr/share/calc/ellip.cal
|
||||
/usr/share/calc/hello.cal
|
||||
/usr/share/calc/help/COPYING
|
||||
/usr/share/calc/help/COPYING-LGPL
|
||||
/usr/share/calc/help/abs
|
||||
/usr/share/calc/help/access
|
||||
/usr/share/calc/help/acos
|
||||
/usr/share/calc/help/acosh
|
||||
/usr/share/calc/help/acot
|
||||
/usr/share/calc/help/acoth
|
||||
/usr/share/calc/help/acsc
|
||||
/usr/share/calc/help/acsch
|
||||
/usr/share/calc/help/address
|
||||
/usr/share/calc/help/agd
|
||||
/usr/share/calc/help/append
|
||||
/usr/share/calc/help/appr
|
||||
/usr/share/calc/help/archive
|
||||
/usr/share/calc/help/arg
|
||||
/usr/share/calc/help/argv
|
||||
/usr/share/calc/help/arrow
|
||||
/usr/share/calc/help/asec
|
||||
/usr/share/calc/help/asech
|
||||
/usr/share/calc/help/asin
|
||||
/usr/share/calc/help/asinh
|
||||
/usr/share/calc/help/assign
|
||||
/usr/share/calc/help/assoc
|
||||
/usr/share/calc/help/atan
|
||||
/usr/share/calc/help/atan2
|
||||
/usr/share/calc/help/atanh
|
||||
/usr/share/calc/help/avg
|
||||
/usr/share/calc/help/base
|
||||
/usr/share/calc/help/bernoulli
|
||||
/usr/share/calc/help/binding
|
||||
/usr/share/calc/help/bindings
|
||||
/usr/share/calc/help/bit
|
||||
/usr/share/calc/help/blk
|
||||
/usr/share/calc/help/blkcpy
|
||||
/usr/share/calc/help/blkfree
|
||||
/usr/share/calc/help/blocks
|
||||
/usr/share/calc/help/bround
|
||||
/usr/share/calc/help/btrunc
|
||||
/usr/share/calc/help/bug
|
||||
/usr/share/calc/help/bugs
|
||||
/usr/share/calc/help/builtin
|
||||
/usr/share/calc/help/calc_tty
|
||||
/usr/share/calc/help/calclevel
|
||||
/usr/share/calc/help/catalan
|
||||
/usr/share/calc/help/ceil
|
||||
/usr/share/calc/help/cfappr
|
||||
/usr/share/calc/help/cfsim
|
||||
/usr/share/calc/help/change
|
||||
/usr/share/calc/help/changes
|
||||
/usr/share/calc/help/char
|
||||
/usr/share/calc/help/cmdbuf
|
||||
/usr/share/calc/help/cmp
|
||||
/usr/share/calc/help/comb
|
||||
/usr/share/calc/help/command
|
||||
/usr/share/calc/help/config
|
||||
/usr/share/calc/help/conj
|
||||
/usr/share/calc/help/contrib
|
||||
/usr/share/calc/help/cos
|
||||
/usr/share/calc/help/cosh
|
||||
/usr/share/calc/help/cot
|
||||
/usr/share/calc/help/coth
|
||||
/usr/share/calc/help/count
|
||||
/usr/share/calc/help/cp
|
||||
/usr/share/calc/help/credit
|
||||
/usr/share/calc/help/csc
|
||||
/usr/share/calc/help/csch
|
||||
/usr/share/calc/help/cscript
|
||||
/usr/share/calc/help/ctime
|
||||
/usr/share/calc/help/custom
|
||||
/usr/share/calc/help/custom_cal
|
||||
/usr/share/calc/help/define
|
||||
/usr/share/calc/help/delete
|
||||
/usr/share/calc/help/den
|
||||
/usr/share/calc/help/dereference
|
||||
/usr/share/calc/help/det
|
||||
/usr/share/calc/help/digit
|
||||
/usr/share/calc/help/digits
|
||||
/usr/share/calc/help/dp
|
||||
/usr/share/calc/help/environment
|
||||
/usr/share/calc/help/epsilon
|
||||
/usr/share/calc/help/errcount
|
||||
/usr/share/calc/help/errmax
|
||||
/usr/share/calc/help/errno
|
||||
/usr/share/calc/help/error
|
||||
/usr/share/calc/help/errorcode
|
||||
/usr/share/calc/help/errorcodes
|
||||
/usr/share/calc/help/euler
|
||||
/usr/share/calc/help/eval
|
||||
/usr/share/calc/help/exp
|
||||
/usr/share/calc/help/expression
|
||||
/usr/share/calc/help/fact
|
||||
/usr/share/calc/help/factor
|
||||
/usr/share/calc/help/fclose
|
||||
/usr/share/calc/help/fcnt
|
||||
/usr/share/calc/help/feof
|
||||
/usr/share/calc/help/ferror
|
||||
/usr/share/calc/help/fflush
|
||||
/usr/share/calc/help/fgetc
|
||||
/usr/share/calc/help/fgetfield
|
||||
/usr/share/calc/help/fgetline
|
||||
/usr/share/calc/help/fgets
|
||||
/usr/share/calc/help/fgetstr
|
||||
/usr/share/calc/help/fib
|
||||
/usr/share/calc/help/file
|
||||
/usr/share/calc/help/files
|
||||
/usr/share/calc/help/floor
|
||||
/usr/share/calc/help/fopen
|
||||
/usr/share/calc/help/forall
|
||||
/usr/share/calc/help/fprintf
|
||||
/usr/share/calc/help/fputc
|
||||
/usr/share/calc/help/fputs
|
||||
/usr/share/calc/help/fputstr
|
||||
/usr/share/calc/help/frac
|
||||
/usr/share/calc/help/free
|
||||
/usr/share/calc/help/freebernoulli
|
||||
/usr/share/calc/help/freeeuler
|
||||
/usr/share/calc/help/freeglobals
|
||||
/usr/share/calc/help/freeredc
|
||||
/usr/share/calc/help/freestatics
|
||||
/usr/share/calc/help/frem
|
||||
/usr/share/calc/help/freopen
|
||||
/usr/share/calc/help/fscan
|
||||
/usr/share/calc/help/fscanf
|
||||
/usr/share/calc/help/fseek
|
||||
/usr/share/calc/help/fsize
|
||||
/usr/share/calc/help/ftell
|
||||
/usr/share/calc/help/full
|
||||
/usr/share/calc/help/gcd
|
||||
/usr/share/calc/help/gcdrem
|
||||
/usr/share/calc/help/gd
|
||||
/usr/share/calc/help/getenv
|
||||
/usr/share/calc/help/hash
|
||||
/usr/share/calc/help/head
|
||||
/usr/share/calc/help/help
|
||||
/usr/share/calc/help/highbit
|
||||
/usr/share/calc/help/history
|
||||
/usr/share/calc/help/hmean
|
||||
/usr/share/calc/help/hnrmod
|
||||
/usr/share/calc/help/hypot
|
||||
/usr/share/calc/help/ilog
|
||||
/usr/share/calc/help/ilog10
|
||||
/usr/share/calc/help/ilog2
|
||||
/usr/share/calc/help/im
|
||||
/usr/share/calc/help/indices
|
||||
/usr/share/calc/help/inputlevel
|
||||
/usr/share/calc/help/insert
|
||||
/usr/share/calc/help/int
|
||||
/usr/share/calc/help/interrupt
|
||||
/usr/share/calc/help/intro
|
||||
/usr/share/calc/help/inverse
|
||||
/usr/share/calc/help/iroot
|
||||
/usr/share/calc/help/isassoc
|
||||
/usr/share/calc/help/isatty
|
||||
/usr/share/calc/help/isblk
|
||||
/usr/share/calc/help/isconfig
|
||||
/usr/share/calc/help/isdefined
|
||||
/usr/share/calc/help/iserror
|
||||
/usr/share/calc/help/iseven
|
||||
/usr/share/calc/help/isfile
|
||||
/usr/share/calc/help/ishash
|
||||
/usr/share/calc/help/isident
|
||||
/usr/share/calc/help/isint
|
||||
/usr/share/calc/help/islist
|
||||
/usr/share/calc/help/ismat
|
||||
/usr/share/calc/help/ismult
|
||||
/usr/share/calc/help/isnull
|
||||
/usr/share/calc/help/isnum
|
||||
/usr/share/calc/help/isobj
|
||||
/usr/share/calc/help/isobjtype
|
||||
/usr/share/calc/help/isodd
|
||||
/usr/share/calc/help/isprime
|
||||
/usr/share/calc/help/isptr
|
||||
/usr/share/calc/help/isqrt
|
||||
/usr/share/calc/help/isrand
|
||||
/usr/share/calc/help/israndom
|
||||
/usr/share/calc/help/isreal
|
||||
/usr/share/calc/help/isrel
|
||||
/usr/share/calc/help/issimple
|
||||
/usr/share/calc/help/issq
|
||||
/usr/share/calc/help/isstr
|
||||
/usr/share/calc/help/istype
|
||||
/usr/share/calc/help/jacobi
|
||||
/usr/share/calc/help/join
|
||||
/usr/share/calc/help/lcm
|
||||
/usr/share/calc/help/lcmfact
|
||||
/usr/share/calc/help/lfactor
|
||||
/usr/share/calc/help/libcalc
|
||||
/usr/share/calc/help/list
|
||||
/usr/share/calc/help/ln
|
||||
/usr/share/calc/help/lowbit
|
||||
/usr/share/calc/help/ltol
|
||||
/usr/share/calc/help/makelist
|
||||
/usr/share/calc/help/mat
|
||||
/usr/share/calc/help/matdim
|
||||
/usr/share/calc/help/matfill
|
||||
/usr/share/calc/help/matmax
|
||||
/usr/share/calc/help/matmin
|
||||
/usr/share/calc/help/matsum
|
||||
/usr/share/calc/help/mattrace
|
||||
/usr/share/calc/help/mattrans
|
||||
/usr/share/calc/help/max
|
||||
/usr/share/calc/help/md5
|
||||
/usr/share/calc/help/memsize
|
||||
/usr/share/calc/help/meq
|
||||
/usr/share/calc/help/min
|
||||
/usr/share/calc/help/minv
|
||||
/usr/share/calc/help/mmin
|
||||
/usr/share/calc/help/mne
|
||||
/usr/share/calc/help/mod
|
||||
/usr/share/calc/help/modify
|
||||
/usr/share/calc/help/name
|
||||
/usr/share/calc/help/near
|
||||
/usr/share/calc/help/new_custom
|
||||
/usr/share/calc/help/newerror
|
||||
/usr/share/calc/help/nextcand
|
||||
/usr/share/calc/help/nextprime
|
||||
/usr/share/calc/help/norm
|
||||
/usr/share/calc/help/null
|
||||
/usr/share/calc/help/num
|
||||
/usr/share/calc/help/obj
|
||||
/usr/share/calc/help/oldvalue
|
||||
/usr/share/calc/help/operator
|
||||
/usr/share/calc/help/ord
|
||||
/usr/share/calc/help/overview
|
||||
/usr/share/calc/help/param
|
||||
/usr/share/calc/help/perm
|
||||
/usr/share/calc/help/pfact
|
||||
/usr/share/calc/help/pi
|
||||
/usr/share/calc/help/pix
|
||||
/usr/share/calc/help/places
|
||||
/usr/share/calc/help/pmod
|
||||
/usr/share/calc/help/polar
|
||||
/usr/share/calc/help/poly
|
||||
/usr/share/calc/help/pop
|
||||
/usr/share/calc/help/popcnt
|
||||
/usr/share/calc/help/power
|
||||
/usr/share/calc/help/prevcand
|
||||
/usr/share/calc/help/prevprime
|
||||
/usr/share/calc/help/printf
|
||||
/usr/share/calc/help/prompt
|
||||
/usr/share/calc/help/protect
|
||||
/usr/share/calc/help/ptest
|
||||
/usr/share/calc/help/push
|
||||
/usr/share/calc/help/putenv
|
||||
/usr/share/calc/help/quo
|
||||
/usr/share/calc/help/quomod
|
||||
/usr/share/calc/help/rand
|
||||
/usr/share/calc/help/randbit
|
||||
/usr/share/calc/help/random
|
||||
/usr/share/calc/help/randombit
|
||||
/usr/share/calc/help/randperm
|
||||
/usr/share/calc/help/rcin
|
||||
/usr/share/calc/help/rcmul
|
||||
/usr/share/calc/help/rcout
|
||||
/usr/share/calc/help/rcpow
|
||||
/usr/share/calc/help/rcsq
|
||||
/usr/share/calc/help/re
|
||||
/usr/share/calc/help/remove
|
||||
/usr/share/calc/help/resource
|
||||
/usr/share/calc/help/reverse
|
||||
/usr/share/calc/help/rewind
|
||||
/usr/share/calc/help/rm
|
||||
/usr/share/calc/help/root
|
||||
/usr/share/calc/help/round
|
||||
/usr/share/calc/help/rsearch
|
||||
/usr/share/calc/help/runtime
|
||||
/usr/share/calc/help/saveval
|
||||
/usr/share/calc/help/scale
|
||||
/usr/share/calc/help/scan
|
||||
/usr/share/calc/help/scanf
|
||||
/usr/share/calc/help/script
|
||||
/usr/share/calc/help/search
|
||||
/usr/share/calc/help/sec
|
||||
/usr/share/calc/help/sech
|
||||
/usr/share/calc/help/seed
|
||||
/usr/share/calc/help/segment
|
||||
/usr/share/calc/help/select
|
||||
/usr/share/calc/help/sgn
|
||||
/usr/share/calc/help/sha
|
||||
/usr/share/calc/help/sha1
|
||||
/usr/share/calc/help/sin
|
||||
/usr/share/calc/help/sinh
|
||||
/usr/share/calc/help/size
|
||||
/usr/share/calc/help/sizeof
|
||||
/usr/share/calc/help/sleep
|
||||
/usr/share/calc/help/sort
|
||||
/usr/share/calc/help/sqrt
|
||||
/usr/share/calc/help/srand
|
||||
/usr/share/calc/help/srandom
|
||||
/usr/share/calc/help/ssq
|
||||
/usr/share/calc/help/statement
|
||||
/usr/share/calc/help/str
|
||||
/usr/share/calc/help/strcat
|
||||
/usr/share/calc/help/strerror
|
||||
/usr/share/calc/help/strlen
|
||||
/usr/share/calc/help/strpos
|
||||
/usr/share/calc/help/strprintf
|
||||
/usr/share/calc/help/strscan
|
||||
/usr/share/calc/help/strscanf
|
||||
/usr/share/calc/help/substr
|
||||
/usr/share/calc/help/sum
|
||||
/usr/share/calc/help/swap
|
||||
/usr/share/calc/help/system
|
||||
/usr/share/calc/help/tail
|
||||
/usr/share/calc/help/tan
|
||||
/usr/share/calc/help/tanh
|
||||
/usr/share/calc/help/test
|
||||
/usr/share/calc/help/time
|
||||
/usr/share/calc/help/todo
|
||||
/usr/share/calc/help/trunc
|
||||
/usr/share/calc/help/type
|
||||
/usr/share/calc/help/types
|
||||
/usr/share/calc/help/unexpected
|
||||
/usr/share/calc/help/usage
|
||||
/usr/share/calc/help/variable
|
||||
/usr/share/calc/help/version
|
||||
/usr/share/calc/help/wishlist
|
||||
/usr/share/calc/help/xor
|
||||
/usr/share/calc/intfile.cal
|
||||
/usr/share/calc/lucas.cal
|
||||
/usr/share/calc/lucas_chk.cal
|
||||
/usr/share/calc/lucas_tbl.cal
|
||||
/usr/share/calc/mersenne.cal
|
||||
/usr/share/calc/mfactor.cal
|
||||
/usr/share/calc/mod.cal
|
||||
/usr/share/calc/natnumset.cal
|
||||
/usr/share/calc/pell.cal
|
||||
/usr/share/calc/pi.cal
|
||||
/usr/share/calc/pix.cal
|
||||
/usr/share/calc/pollard.cal
|
||||
/usr/share/calc/poly.cal
|
||||
/usr/share/calc/prompt.cal
|
||||
/usr/share/calc/psqrt.cal
|
||||
/usr/share/calc/qtime.cal
|
||||
/usr/share/calc/quat.cal
|
||||
/usr/share/calc/randbitrun.cal
|
||||
/usr/share/calc/randmprime.cal
|
||||
/usr/share/calc/randombitrun.cal
|
||||
/usr/share/calc/randomrun.cal
|
||||
/usr/share/calc/randrun.cal
|
||||
/usr/share/calc/regress.cal
|
||||
/usr/share/calc/seedrandom.cal
|
||||
/usr/share/calc/solve.cal
|
||||
/usr/share/calc/sumsq.cal
|
||||
/usr/share/calc/surd.cal
|
||||
/usr/share/calc/test1700.cal
|
||||
/usr/share/calc/test2300.cal
|
||||
/usr/share/calc/test2600.cal
|
||||
/usr/share/calc/test2700.cal
|
||||
/usr/share/calc/test3100.cal
|
||||
/usr/share/calc/test3300.cal
|
||||
/usr/share/calc/test3400.cal
|
||||
/usr/share/calc/test3500.cal
|
||||
/usr/share/calc/test4000.cal
|
||||
/usr/share/calc/test4100.cal
|
||||
/usr/share/calc/test4600.cal
|
||||
/usr/share/calc/test5100.cal
|
||||
/usr/share/calc/test5200.cal
|
||||
/usr/share/calc/test8400.cal
|
||||
/usr/share/calc/test8500.cal
|
||||
/usr/share/calc/test8600.cal
|
||||
/usr/share/calc/unitfrac.cal
|
||||
/usr/share/calc/varargs.cal
|
||||
/usr/share/calc/xx_print.cal
|
||||
/usr/share/man/man1/calc.1
|
6
jump.h
6
jump.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: jump.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: jump.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/jump.h,v $
|
||||
*
|
||||
* Under source code control: 1994/06/29 04:03:55
|
||||
@@ -66,7 +66,7 @@
|
||||
#define __JUMP_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "have_const.h"
|
||||
#else
|
||||
# include <calc/have_const.h>
|
||||
|
6
label.h
6
label.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: label.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: label.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/label.h,v $
|
||||
*
|
||||
* Under source code control: 1990/02/15 01:48:33
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __LABEL_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "zmath.h"
|
||||
#else
|
||||
# include <calc/zmath.h>
|
||||
|
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: math_error.h,v 29.4 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.5 $
|
||||
* @(#) $Id: math_error.h,v 29.5 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/math_error.h,v $
|
||||
*
|
||||
* Under source code control: 1997/03/23 18:37:10
|
||||
@@ -33,7 +33,7 @@
|
||||
#define __MATH_ERROR_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "win32dll.h"
|
||||
#else
|
||||
# include <calc/win32dll.h>
|
||||
|
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.5 $
|
||||
* @(#) $Id: opcodes.h,v 29.5 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.6 $
|
||||
* @(#) $Id: opcodes.h,v 29.6 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/opcodes.h,v $
|
||||
*
|
||||
* Under source code control: 1990/02/15 01:48:35
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __OPCODES_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "win32dll.h"
|
||||
#else
|
||||
# include <calc/win32dll.h>
|
||||
|
6
prime.h
6
prime.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: prime.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: prime.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/prime.h,v $
|
||||
*
|
||||
* Under source code control: 1994/06/04 03:26:15
|
||||
@@ -33,7 +33,7 @@
|
||||
#define __PRIME_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "qmath.h"
|
||||
# include "have_const.h"
|
||||
#else
|
||||
|
6
qmath.h
6
qmath.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: qmath.h,v 29.4 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.5 $
|
||||
* @(#) $Id: qmath.h,v 29.5 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/qmath.h,v $
|
||||
*
|
||||
* Under source code control: 1993/07/30 19:42:47
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __QMATH_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "zmath.h"
|
||||
#else
|
||||
# include <calc/zmath.h>
|
||||
|
117
rpm.mk.patch
Normal file
117
rpm.mk.patch
Normal file
@@ -0,0 +1,117 @@
|
||||
*** Makefile Fri Jun 8 16:07:27 2001
|
||||
--- Makefile.linux Fri Jun 8 16:07:27 2001
|
||||
***************
|
||||
*** 2,10 ****
|
||||
#
|
||||
# calc - arbitrary precision calculator
|
||||
#
|
||||
! # (Generic calc makefile)
|
||||
#
|
||||
! # Copyright (C) 1999 Landon Curt Noll
|
||||
#
|
||||
# Calc is open software; you can redistribute it and/or modify it under
|
||||
# the terms of the version 2.1 of the GNU Lesser General Public License
|
||||
--- 2,14 ----
|
||||
#
|
||||
# calc - arbitrary precision calculator
|
||||
#
|
||||
! # (Linux calc makefile)
|
||||
#
|
||||
! # NOTE: The Makefile.linux is the Makefile used to make the calc rpm.
|
||||
! # It differs from the standard calc Makefile in the ''You may
|
||||
! # want to change some values below'' section.
|
||||
! #
|
||||
! # Copyright (C) 2001 Landon Curt Noll
|
||||
#
|
||||
# Calc is open software; you can redistribute it and/or modify it under
|
||||
# the terms of the version 2.1 of the GNU Lesser General Public License
|
||||
***************
|
||||
*** 21,28 ****
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
MAKEFILE_REV= $$Revision: 29.36 $$
|
||||
! # @(#) $Id: Makefile.ship,v 29.36 2001/06/08 23:00:19 chongo Exp $
|
||||
! # @(#) $Source: /usr/local/src/cmd/calc/RCS/Makefile.ship,v $
|
||||
#
|
||||
# Under source code control: 1990/02/15 01:48:41
|
||||
# File existed as early as: before 1990
|
||||
--- 25,32 ----
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
MAKEFILE_REV= $$Revision: 29.36 $$
|
||||
! # @(#) $Id: Makefile.linux,v 29.36 2001/06/08 23:00:19 chongo Exp $
|
||||
! # @(#) $Source: /usr/local/src/cmd/calc/RCS/Makefile.linux,v $
|
||||
#
|
||||
# Under source code control: 1990/02/15 01:48:41
|
||||
# File existed as early as: before 1990
|
||||
***************
|
||||
*** 669,676 ****
|
||||
#
|
||||
# If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
|
||||
#
|
||||
! USE_READLINE=
|
||||
! #USE_READLINE= -DUSE_READLINE
|
||||
#
|
||||
#READLINE_LIB=
|
||||
READLINE_LIB= -lreadline -lhistory -lncurses
|
||||
--- 673,680 ----
|
||||
#
|
||||
# If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
|
||||
#
|
||||
! #USE_READLINE=
|
||||
! USE_READLINE= -DUSE_READLINE
|
||||
#
|
||||
#READLINE_LIB=
|
||||
READLINE_LIB= -lreadline -lhistory -lncurses
|
||||
***************
|
||||
*** 683,692 ****
|
||||
|
||||
# If $PAGER is not set, use this program to display a help file
|
||||
#
|
||||
! CALCPAGER= more
|
||||
#CALCPAGER= pg
|
||||
#CALCPAGER= cat
|
||||
! #CALCPAGER= less
|
||||
|
||||
# Debug/Optimize options for ${CC} and ${LCC}
|
||||
#
|
||||
--- 687,696 ----
|
||||
|
||||
# If $PAGER is not set, use this program to display a help file
|
||||
#
|
||||
! #CALCPAGER= more
|
||||
#CALCPAGER= pg
|
||||
#CALCPAGER= cat
|
||||
! CALCPAGER= less
|
||||
|
||||
# Debug/Optimize options for ${CC} and ${LCC}
|
||||
#
|
||||
***************
|
||||
*** 702,714 ****
|
||||
#
|
||||
#DEBUG= -O2
|
||||
#DEBUG= -O2 -g
|
||||
! DEBUG= -O2 -g3
|
||||
#DEBUG= -O2 -ipa
|
||||
#DEBUG= -O2 -g3 -ipa
|
||||
#
|
||||
#DEBUG= -O3
|
||||
#DEBUG= -O3 -g
|
||||
! #DEBUG= -O3 -g3
|
||||
#DEBUG= -O3 -ipa
|
||||
#DEBUG= -O3 -g3 -ipa
|
||||
#
|
||||
--- 706,718 ----
|
||||
#
|
||||
#DEBUG= -O2
|
||||
#DEBUG= -O2 -g
|
||||
! #DEBUG= -O2 -g3
|
||||
#DEBUG= -O2 -ipa
|
||||
#DEBUG= -O2 -g3 -ipa
|
||||
#
|
||||
#DEBUG= -O3
|
||||
#DEBUG= -O3 -g
|
||||
! DEBUG= -O3 -g3
|
||||
#DEBUG= -O3 -ipa
|
||||
#DEBUG= -O3 -g3 -ipa
|
||||
#
|
@@ -17,8 +17,8 @@
|
||||
# received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# @(#) $Revision: 29.12 $
|
||||
# @(#) $Id: Makefile,v 29.12 2001/06/06 10:06:48 chongo Exp $
|
||||
# @(#) $Revision: 29.14 $
|
||||
# @(#) $Id: Makefile,v 29.14 2001/06/08 22:38:53 chongo Exp $
|
||||
# @(#) $Source: /usr/local/src/cmd/calc/sample/RCS/Makefile,v $
|
||||
#
|
||||
# Under source code control: 1997/04/19 22:46:49
|
||||
@@ -104,6 +104,22 @@ LIBDIR= /usr/lib
|
||||
CSHAREDIR= ${SHAREDIR}/calc
|
||||
HELPDIR= ${LIBDIR}/help
|
||||
|
||||
# T - top level directory under which calc will be installed
|
||||
#
|
||||
# The calc install is performed under $T, the calc build is
|
||||
# performed under /. The purpose for $T is to allow someone to
|
||||
# install calc somewhere other than into the system area. For example
|
||||
# when forming the calc rpm, the Makefile is called with T=$RPM_BUILD_ROOT.
|
||||
#
|
||||
# If $T is empty, calc is installed under /, which is the same
|
||||
# top of tree for which it was built. If $T is non-empty, then
|
||||
# calc is installed under $T, as if one had to chroot under
|
||||
# $T for calc to operate.
|
||||
#
|
||||
# If in doubt, use T=
|
||||
#
|
||||
T=
|
||||
|
||||
# Normally, the upper level makefile will set these values. We provide
|
||||
# a default here just in case you want to build from this directory.
|
||||
#
|
||||
|
@@ -5,6 +5,7 @@ Release: ${RELEASE}
|
||||
Copyright: LGPL
|
||||
Group: Applications/Engineering
|
||||
Source: http://www.isthe.com/chongo/src/calc/calc-${VER_CALC}.tar.gz
|
||||
Patch0: rpm.mk.patch
|
||||
BuildRoot: /var/tmp/%{name}-buildroot
|
||||
|
||||
%description
|
||||
@@ -31,62 +32,23 @@ user defined objects.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
make -f Makefile.linux all RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT${BINDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${SHAREDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${INCDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${LIBDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${CSHAREDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${HELPDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${INCDIRCALC}
|
||||
mkdir -p $RPM_BUILD_ROOT${CUSTOMLIBDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${CUSTOMHELPDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${CUSTOMINCDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${SCRIPTDIR}
|
||||
mkdir -p $RPM_BUILD_ROOT${MANDIR}
|
||||
|
||||
install -m 0555 calc $RPM_BUILD_ROOT${BINDIR}
|
||||
|
||||
(cd help
|
||||
install -m 0444 ${STD_HELP_FILES} $RPM_BUILD_ROOT${HELPDIR}
|
||||
install -m 0444 ${BLT_HELP_FILES} $RPM_BUILD_ROOT${HELPDIR}
|
||||
install -m 0444 builtin full $RPM_BUILD_ROOT${HELPDIR}
|
||||
install -m 0444 ${DETAIL_HELP} $RPM_BUILD_ROOT${HELPDIR}
|
||||
install -m 0444 ${SINGULAR_FILES} $RPM_BUILD_ROOT${HELPDIR}
|
||||
install -m 0444 obj.file $RPM_BUILD_ROOT${HELPDIR}/obj
|
||||
)
|
||||
|
||||
(cd cal; install -m 0444 ${CALC_FILES} $RPM_BUILD_ROOT${LIBDIR})
|
||||
|
||||
(cd custom
|
||||
if [ ! -z "${INSTALL_H_SRC}" ]; then
|
||||
install -m 0444 ${INSTALL_H_SRC} $RPM_BUILD_ROOT${CUSTOMINCDIR}
|
||||
fi
|
||||
install -m 0444 ${CUSTOM_CALC_FILES} $RPM_BUILD_ROOT${CUSTOMLIBDIR}
|
||||
install -m 0444 ${CUSTOM_HELP} $RPM_BUILD_ROOT${CUSTOMHELPDIR}
|
||||
if [ ! -z "${ALLOW_CUSTOM}" ]; then
|
||||
install -m 0644 libcustcalc.a $RPM_BUILD_ROOT${CUSTOMLIBDIR}
|
||||
${RANLIB} $RPM_BUILD_ROOT${CUSTOMLIBDIR}
|
||||
fi
|
||||
)
|
||||
|
||||
(cd cscript
|
||||
install -m 0555 ${SCRIPT} $RPM_BUILD_ROOT${SCRIPTDIR}
|
||||
)
|
||||
|
||||
install -m 0444 libcalc.a $RPM_BUILD_ROOT${LIBDIR}
|
||||
${RANLIB} $RPM_BUILD_ROOT${LIBDIR}
|
||||
install -m 0444 ${LIB_H_SRC} $RPM_BUILD_ROOT${INCDIRCALC}
|
||||
install -m 0444 ${BUILD_H_SRC} $RPM_BUILD_ROOT${INCDIRCALC}
|
||||
install -m 0444 calc.1 $RPM_BUILD_ROOT${MANDIR}.${MANEXT}
|
||||
make -f Makefile.linux install RPM_OPT_FLAGS="$RPM_OPT_FLAGS" T="$RPM_BUILD_ROOT"
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f install.list
|
||||
%dir ${CSHAREDIR}
|
||||
%dir ${HELPDIR}
|
||||
%dir ${INCDIRCALC}
|
||||
%dir ${CUSTOMLIBDIR}
|
||||
%dir ${CUSTOMHELPDIR}
|
||||
%dir ${CUSTOMINCDIR}
|
||||
%dir ${SCRIPTDIR}
|
||||
%defattr(-,root,root)
|
||||
%doc BUGS README COPYING COPYING-LGPL HOWTO.INSTALL
|
||||
%doc README LIBRARY README.WINDOWS calc.1
|
||||
|
6
string.h
6
string.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: string.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: string.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/string.h,v $
|
||||
*
|
||||
* Under source code control: 1990/02/15 01:48:36
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __CALCSTRING_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "zmath.h"
|
||||
#else
|
||||
# include <calc/zmath.h>
|
||||
|
6
symbol.h
6
symbol.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: symbol.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: symbol.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/symbol.h,v $
|
||||
*
|
||||
* Under source code control: 1990/02/15 01:48:37
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __SYMBOL_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "zmath.h"
|
||||
#else
|
||||
# include <calc/zmath.h>
|
||||
|
6
token.h
6
token.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: token.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: token.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/token.h,v $
|
||||
*
|
||||
* Under source code control: 1990/02/15 01:48:37
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __TOKEN_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "zmath.h"
|
||||
#else
|
||||
# include <calc/zmath.h>
|
||||
|
6
value.h
6
value.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.6 $
|
||||
* @(#) $Id: value.h,v 29.6 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.7 $
|
||||
* @(#) $Id: value.h,v 29.7 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/value.h,v $
|
||||
*
|
||||
* Under source code control: 1993/07/30 19:42:47
|
||||
@@ -32,7 +32,7 @@
|
||||
#define __VALUE_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "win32dll.h"
|
||||
# include "cmath.h"
|
||||
# include "config.h"
|
||||
|
@@ -19,8 +19,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.30 $
|
||||
* @(#) $Id: version.c,v 29.30 2001/06/06 08:48:46 chongo Exp $
|
||||
* @(#) $Revision: 29.31 $
|
||||
* @(#) $Id: version.c,v 29.31 2001/06/08 22:32:42 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/version.c,v $
|
||||
*
|
||||
* Under source code control: 1990/05/22 11:00:58
|
||||
@@ -43,7 +43,7 @@ static char *program;
|
||||
#define MAJOR_VER 2 /* major version */
|
||||
#define MINOR_VER 11 /* minor version */
|
||||
#define MAJOR_PATCH 5 /* patch level or 0 if no patch */
|
||||
#define MINOR_PATCH "4.4" /* test number or empty string if no patch */
|
||||
#define MINOR_PATCH "4.5" /* test number or empty string if no patch */
|
||||
|
||||
/*
|
||||
* calc version constants
|
||||
|
6
zmath.h
6
zmath.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.6 $
|
||||
* @(#) $Id: zmath.h,v 29.6 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.7 $
|
||||
* @(#) $Id: zmath.h,v 29.7 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/zmath.h,v $
|
||||
*
|
||||
* Under source code control: 1993/07/30 19:42:48
|
||||
@@ -38,7 +38,7 @@
|
||||
#define __ZMATH_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "win32dll.h"
|
||||
# include "alloc.h"
|
||||
# include "endian_calc.h"
|
||||
|
6
zrand.h
6
zrand.h
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: zrand.h,v 29.4 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.5 $
|
||||
* @(#) $Id: zrand.h,v 29.5 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/zrand.h,v $
|
||||
*
|
||||
* Under source code control: 1995/01/07 09:45:26
|
||||
@@ -37,7 +37,7 @@
|
||||
#define __ZRAND_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "value.h"
|
||||
# include "have_const.h"
|
||||
#else
|
||||
|
@@ -17,8 +17,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: zrandom.h,v 29.3 2001/05/29 00:16:53 chongo Exp $
|
||||
* @(#) $Revision: 29.4 $
|
||||
* @(#) $Id: zrandom.h,v 29.4 2001/06/08 21:00:58 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/zrandom.h,v $
|
||||
*
|
||||
* Under source code control: 1997/02/15 04:01:56
|
||||
@@ -33,7 +33,7 @@
|
||||
#define __ZRANDOM_H__
|
||||
|
||||
|
||||
#if defined(SRC) /* if we are building from the calc source tree */
|
||||
#if defined(CALC_SRC) /* if we are building from the calc source tree */
|
||||
# include "value.h"
|
||||
# include "have_const.h"
|
||||
#else
|
||||
|
Reference in New Issue
Block a user