Release calc version 2.12.1.2

This commit is contained in:
Landon Curt Noll
2006-09-17 17:18:43 -07:00
parent a7147039ee
commit 2c0d0bbc1b
7 changed files with 189 additions and 189 deletions

View File

@@ -32,8 +32,8 @@
# received a copy with calc; if not, write to Free Software Foundation, Inc. # received a copy with calc; if not, write to Free Software Foundation, Inc.
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
# #
MAKEFILE_REV= $$Revision: 29.77 $$ MAKEFILE_REV= $$Revision: 29.78 $$
# @(#) $Id: Makefile.ship,v 29.77 2006/09/17 23:49:27 chongo Exp $ # @(#) $Id: Makefile.ship,v 29.78 2006/09/18 00:13:59 chongo Exp $
# @(#) $Source: /usr/local/src/cmd/calc/RCS/Makefile.ship,v $ # @(#) $Source: /usr/local/src/cmd/calc/RCS/Makefile.ship,v $
# #
# Under source code control: 1990/02/15 01:48:41 # Under source code control: 1990/02/15 01:48:41
@@ -1326,7 +1326,7 @@ UTIL_PROGS= align32${EXT} fposval${EXT} have_uid_t${EXT} have_const${EXT} \
# The complete list of Makefile vars passed down to custom/Makefile. # The complete list of Makefile vars passed down to custom/Makefile.
# #
CUSTOM_PASSDOWN= Q="${Q} " \ CUSTOM_PASSDOWN= Q="${Q}" \
INCDIR="${INCDIR}" \ INCDIR="${INCDIR}" \
BINDIR="${BINDIR}" \ BINDIR="${BINDIR}" \
LIBDIR="${LIBDIR}" \ LIBDIR="${LIBDIR}" \
@@ -1362,7 +1362,7 @@ CUSTOM_PASSDOWN= Q="${Q} " \
# The complete list of Makefile vars passed down to sample/Makefile. # The complete list of Makefile vars passed down to sample/Makefile.
# #
SAMPLE_PASSDOWN= Q="${Q} " \ SAMPLE_PASSDOWN= Q="${Q}" \
INCDIR="${INCDIR}" \ INCDIR="${INCDIR}" \
BINDIR="${BINDIR}" \ BINDIR="${BINDIR}" \
LIBDIR="${LIBDIR}" \ LIBDIR="${LIBDIR}" \
@@ -1399,7 +1399,7 @@ SAMPLE_PASSDOWN= Q="${Q} " \
# The compelte list of Makefile vars passed down to help/Makefile. # The compelte list of Makefile vars passed down to help/Makefile.
# #
HELP_PASSDOWN= Q="${Q} " \ HELP_PASSDOWN= Q="${Q}" \
INCDIR="${INCDIR}" \ INCDIR="${INCDIR}" \
BINDIR="${BINDIR}" \ BINDIR="${BINDIR}" \
LIBDIR="${LIBDIR}" \ LIBDIR="${LIBDIR}" \
@@ -1424,7 +1424,7 @@ HELP_PASSDOWN= Q="${Q} " \
# The compelte list of Makefile vars passed down to cal/Makefile. # The compelte list of Makefile vars passed down to cal/Makefile.
# #
CAL_PASSDOWN= Q="${Q} " \ CAL_PASSDOWN= Q="${Q}" \
INCDIR="${INCDIR}" \ INCDIR="${INCDIR}" \
BINDIR="${BINDIR}" \ BINDIR="${BINDIR}" \
LIBDIR="${LIBDIR}" \ LIBDIR="${LIBDIR}" \
@@ -1443,7 +1443,7 @@ CAL_PASSDOWN= Q="${Q} " \
# The compelte list of Makefile vars passed down to cscript/Makefile. # The compelte list of Makefile vars passed down to cscript/Makefile.
# #
CSCRIPT_PASSDOWN= Q="${Q} " \ CSCRIPT_PASSDOWN= Q="${Q}" \
INCDIR="${INCDIR}" \ INCDIR="${INCDIR}" \
BINDIR="${BINDIR}" \ BINDIR="${BINDIR}" \
LIBDIR="${LIBDIR}" \ LIBDIR="${LIBDIR}" \
@@ -1641,7 +1641,7 @@ conf.h: ${MAKE_FILE}
${Q} echo '' >> conf.h ${Q} echo '' >> conf.h
${Q} echo '#endif /* !__CONF_H__ */' >> conf.h ${Q} echo '#endif /* !__CONF_H__ */' >> conf.h
${Q} echo 'conf.h formed' ${Q} echo 'conf.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -1693,7 +1693,7 @@ endian_calc.h: endian${EXT} ${MAKE_FILE}
${Q} echo '' >> endian_calc.h ${Q} echo '' >> endian_calc.h
${Q} echo '#endif /* !__ENDIAN_CALC_H__ */' >> endian_calc.h ${Q} echo '#endif /* !__ENDIAN_CALC_H__ */' >> endian_calc.h
${Q} echo 'endian_calc.h formed' ${Q} echo 'endian_calc.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -1720,7 +1720,7 @@ longbits.h: longbits${EXT} ${MAKE_FILE}
${Q} echo '' >> longbits.h ${Q} echo '' >> longbits.h
${Q} echo '#endif /* !__LONGBITS_H__ */' >> longbits.h ${Q} echo '#endif /* !__LONGBITS_H__ */' >> longbits.h
${Q} echo 'longbits.h formed' ${Q} echo 'longbits.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -1758,7 +1758,7 @@ have_malloc.h: ${MAKE_FILE}
${Q} echo '' >> have_malloc.h ${Q} echo '' >> have_malloc.h
${Q} echo '#endif /* !__HAVE_MALLOC_H__ */' >> have_malloc.h ${Q} echo '#endif /* !__HAVE_MALLOC_H__ */' >> have_malloc.h
${Q} echo 'have_malloc.h formed' ${Q} echo 'have_malloc.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -1829,7 +1829,7 @@ have_times.h: ${MAKE_FILE}
${Q} echo '' >> have_times.h ${Q} echo '' >> have_times.h
${Q} echo '#endif /* !__HAVE_TIMES_H__ */' >> have_times.h ${Q} echo '#endif /* !__HAVE_TIMES_H__ */' >> have_times.h
${Q} echo 'have_times.h formed' ${Q} echo 'have_times.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -1867,7 +1867,7 @@ have_stdlib.h: ${MAKE_FILE}
${Q} echo '' >> have_stdlib.h ${Q} echo '' >> have_stdlib.h
${Q} echo '#endif /* !__HAVE_STDLIB_H__ */' >> have_stdlib.h ${Q} echo '#endif /* !__HAVE_STDLIB_H__ */' >> have_stdlib.h
${Q} echo 'have_stdlib.h formed' ${Q} echo 'have_stdlib.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -1905,7 +1905,7 @@ have_unistd.h: ${MAKE_FILE}
${Q} echo '' >> have_unistd.h ${Q} echo '' >> have_unistd.h
${Q} echo '#endif /* !__HAVE_UNISTD_H__ */' >> have_unistd.h ${Q} echo '#endif /* !__HAVE_UNISTD_H__ */' >> have_unistd.h
${Q} echo 'have_unistd.h formed' ${Q} echo 'have_unistd.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -1943,7 +1943,7 @@ have_string.h: ${MAKE_FILE}
${Q} echo '' >> have_string.h ${Q} echo '' >> have_string.h
${Q} echo '#endif /* !__HAVE_STRING_H__ */' >> have_string.h ${Q} echo '#endif /* !__HAVE_STRING_H__ */' >> have_string.h
${Q} echo 'have_string.h formed' ${Q} echo 'have_string.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2007,7 +2007,7 @@ terminal.h: ${MAKE_FILE}
${Q} echo '' >> terminal.h ${Q} echo '' >> terminal.h
${Q} echo '#endif /* !__TERMINAL_H__ */' >> terminal.h ${Q} echo '#endif /* !__TERMINAL_H__ */' >> terminal.h
${Q} echo 'terminal.h formed' ${Q} echo 'terminal.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2047,7 +2047,7 @@ have_fpos.h: have_fpos.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_FPOS_H__ */' >> have_fpos.h ${Q} echo '#endif /* !__HAVE_FPOS_H__ */' >> have_fpos.h
-${Q} rm -f have_fpos${EXT} have_fpos.o fpos_tmp -${Q} rm -f have_fpos${EXT} have_fpos.o fpos_tmp
${Q} echo 'have_fpos.h formed' ${Q} echo 'have_fpos.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2091,7 +2091,7 @@ have_fpos_pos.h: have_fpos_pos.c have_fpos.h have_posscl.h ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_FPOS_POS_H__ */' >> have_fpos_pos.h ${Q} echo '#endif /* !__HAVE_FPOS_POS_H__ */' >> have_fpos_pos.h
-${Q} rm -f have_fpos_pos${EXT} have_fpos_pos.o fpos_tmp -${Q} rm -f have_fpos_pos${EXT} have_fpos_pos.o fpos_tmp
${Q} echo 'have_fpos_pos.h formed' ${Q} echo 'have_fpos_pos.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2126,7 +2126,7 @@ fposval.h: fposval.c have_fpos.h have_fpos_pos.h have_offscl.h have_posscl.h \
${Q} echo '#endif /* !__FPOSVAL_H__ */' >> fposval.h ${Q} echo '#endif /* !__FPOSVAL_H__ */' >> fposval.h
-${Q} rm -f fposval${EXT} fposval.o fposv_tmp -${Q} rm -f fposval${EXT} fposval.o fposv_tmp
${Q} echo 'fposval.h formed' ${Q} echo 'fposval.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2167,7 +2167,7 @@ have_const.h: have_const.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_CONST_H__ */' >> have_const.h ${Q} echo '#endif /* !__HAVE_CONST_H__ */' >> have_const.h
-${Q} rm -f have_const${EXT} have_const.o const_tmp -${Q} rm -f have_const${EXT} have_const.o const_tmp
${Q} echo 'have_const.h formed' ${Q} echo 'have_const.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2207,7 +2207,7 @@ have_offscl.h: have_offscl.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_OFFSCL_H__ */' >> have_offscl.h ${Q} echo '#endif /* !__HAVE_OFFSCL_H__ */' >> have_offscl.h
-${Q} rm -f have_offscl${EXT} have_offscl.o offscl_tmp -${Q} rm -f have_offscl${EXT} have_offscl.o offscl_tmp
${Q} echo 'have_offscl.h formed' ${Q} echo 'have_offscl.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2247,7 +2247,7 @@ have_posscl.h: have_posscl.c have_fpos.h ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_POSSCL_H__ */' >> have_posscl.h ${Q} echo '#endif /* !__HAVE_POSSCL_H__ */' >> have_posscl.h
-${Q} rm -f have_posscl have_posscl.o posscl_tmp -${Q} rm -f have_posscl have_posscl.o posscl_tmp
${Q} echo 'have_posscl.h formed' ${Q} echo 'have_posscl.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2301,7 +2301,7 @@ align32.h: align32.c longbits.h have_unistd.h ${MAKE_FILE}
${Q} echo '' >> align32.h ${Q} echo '' >> align32.h
${Q} echo '#endif /* !__MUST_ALIGN32_H__ */' >> align32.h ${Q} echo '#endif /* !__MUST_ALIGN32_H__ */' >> align32.h
${Q} echo 'align32.h formed' ${Q} echo 'align32.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2340,7 +2340,7 @@ have_uid_t.h: have_uid_t.c have_unistd.h ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_UID_T_H__ */' >> have_uid_t.h ${Q} echo '#endif /* !__HAVE_UID_T_H__ */' >> have_uid_t.h
-${Q} rm -f have_uid_t${EXT} have_uid_t.o uid_tmp -${Q} rm -f have_uid_t${EXT} have_uid_t.o uid_tmp
${Q} echo 'have_uid_t.h formed' ${Q} echo 'have_uid_t.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2381,7 +2381,7 @@ have_newstr.h: have_newstr.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_NEWSTR_H__ */' >> have_newstr.h ${Q} echo '#endif /* !__HAVE_NEWSTR_H__ */' >> have_newstr.h
-${Q} rm -f have_newstr${EXT} have_newstr.o newstr_tmp -${Q} rm -f have_newstr${EXT} have_newstr.o newstr_tmp
${Q} echo 'have_newstr.h formed' ${Q} echo 'have_newstr.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2421,7 +2421,7 @@ have_memmv.h: have_memmv.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_MEMMV_H__ */' >> have_memmv.h ${Q} echo '#endif /* !__HAVE_MEMMV_H__ */' >> have_memmv.h
-${Q} rm -f have_memmv have_memmv.o memmv_tmp -${Q} rm -f have_memmv have_memmv.o memmv_tmp
${Q} echo 'have_memmv.h formed' ${Q} echo 'have_memmv.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2461,7 +2461,7 @@ have_ustat.h: have_ustat.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_USTAT_H__ */' >> have_ustat.h ${Q} echo '#endif /* !__HAVE_USTAT_H__ */' >> have_ustat.h
-${Q} rm -f have_ustat${EXT} have_ustat.o ustat_tmp -${Q} rm -f have_ustat${EXT} have_ustat.o ustat_tmp
${Q} echo 'have_ustat.h formed' ${Q} echo 'have_ustat.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2501,7 +2501,7 @@ have_getsid.h: have_getsid.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_GETSID_H__ */' >> have_getsid.h ${Q} echo '#endif /* !__HAVE_GETSID_H__ */' >> have_getsid.h
-${Q} rm -f have_getsid${EXT} have_getsid.o getsid_tmp -${Q} rm -f have_getsid${EXT} have_getsid.o getsid_tmp
${Q} echo 'have_getsid.h formed' ${Q} echo 'have_getsid.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2541,7 +2541,7 @@ have_getpgid.h: have_getpgid.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_GETPGID_H__ */' >> have_getpgid.h ${Q} echo '#endif /* !__HAVE_GETPGID_H__ */' >> have_getpgid.h
-${Q} rm -f have_getpgid${EXT} have_getpgid.o getpgid_tmp -${Q} rm -f have_getpgid${EXT} have_getpgid.o getpgid_tmp
${Q} echo 'have_getpgid.h formed' ${Q} echo 'have_getpgid.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2581,7 +2581,7 @@ have_gettime.h: have_gettime.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_GETTIME_H__ */' >> have_gettime.h ${Q} echo '#endif /* !__HAVE_GETTIME_H__ */' >> have_gettime.h
-${Q} rm -f have_gettime${EXT} have_gettime.o gettime_tmp -${Q} rm -f have_gettime${EXT} have_gettime.o gettime_tmp
${Q} echo 'have_gettime.h formed' ${Q} echo 'have_gettime.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2621,7 +2621,7 @@ have_getprid.h: have_getprid.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_GETPRID_H__ */' >> have_getprid.h ${Q} echo '#endif /* !__HAVE_GETPRID_H__ */' >> have_getprid.h
-${Q} rm -f have_getprid${EXT} have_getprid.o getprid_tmp -${Q} rm -f have_getprid${EXT} have_getprid.o getprid_tmp
${Q} echo 'have_getprid.h formed' ${Q} echo 'have_getprid.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2657,7 +2657,7 @@ have_urandom.h: ${MAKE_FILE}
${Q} echo '' >> have_urandom.h ${Q} echo '' >> have_urandom.h
${Q} echo '#endif /* !__HAVE_URANDOM_H__ */' >> have_urandom.h ${Q} echo '#endif /* !__HAVE_URANDOM_H__ */' >> have_urandom.h
${Q} echo 'have_urandom.h formed' ${Q} echo 'have_urandom.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2697,7 +2697,7 @@ have_rusage.h: have_rusage.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_RUSAGE_H__ */' >> have_rusage.h ${Q} echo '#endif /* !__HAVE_RUSAGE_H__ */' >> have_rusage.h
-${Q} rm -f have_rusage${EXT} have_rusage.o rusage_tmp -${Q} rm -f have_rusage${EXT} have_rusage.o rusage_tmp
${Q} echo 'have_rusage.h formed' ${Q} echo 'have_rusage.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2737,7 +2737,7 @@ have_strdup.h: have_strdup.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_RUSAGE_H__ */' >> have_strdup.h ${Q} echo '#endif /* !__HAVE_RUSAGE_H__ */' >> have_strdup.h
-${Q} rm -f have_strdup${EXT} have_strdup.o strdup_tmp -${Q} rm -f have_strdup${EXT} have_strdup.o strdup_tmp
${Q} echo 'have_strdup.h formed' ${Q} echo 'have_strdup.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2795,7 +2795,7 @@ args.h: have_stdvs.c have_varvs.c have_string.h have_unistd.h have_string.h
${Q} echo '#endif /* !__ARGS_H__ */' >> args.h ${Q} echo '#endif /* !__ARGS_H__ */' >> args.h
-${Q} rm -f have_stdvs.o have_varvs.o have_varvs${EXT} have_args.sh core -${Q} rm -f have_stdvs.o have_varvs.o have_varvs${EXT} have_args.sh core
${Q} echo 'args.h formed' ${Q} echo 'args.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2825,7 +2825,7 @@ calcerr.h: calcerr.tbl calcerr_h.sed calcerr_h.awk ${MAKE_FILE}
${Q} echo '' >> calcerr.h ${Q} echo '' >> calcerr.h
${Q} echo '#endif /* !__CALCERR_H__ */' >> calcerr.h ${Q} echo '#endif /* !__CALCERR_H__ */' >> calcerr.h
${Q} echo 'calcerr.h formed' ${Q} echo 'calcerr.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2847,7 +2847,7 @@ calcerr.c: calcerr.tbl calcerr_c.sed calcerr_c.awk ${MAKE_FILE}
${Q} ${SED} -f calcerr_c.sed < calcerr.tbl | \ ${Q} ${SED} -f calcerr_c.sed < calcerr.tbl | \
${AWK} -f calcerr_c.awk >> calcerr.c ${AWK} -f calcerr_c.awk >> calcerr.c
${Q} echo 'calcerr.c formed' ${Q} echo 'calcerr.c formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2872,7 +2872,7 @@ no_implicit.arg: no_implicit.c ${MAKE_FILE}
>/dev/null 2>&1; true; \ >/dev/null 2>&1; true; \
fi fi
${Q} echo 'no_implicit.arg formed' ${Q} echo 'no_implicit.arg formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \
@@ -2912,7 +2912,7 @@ have_unused.h: have_unused.c ${MAKE_FILE}
${Q} echo '#endif /* !__HAVE_UNUSED_H__ */' >> have_unused.h ${Q} echo '#endif /* !__HAVE_UNUSED_H__ */' >> have_unused.h
-${Q} rm -f have_unused${EXT} have_unused.o unused_tmp -${Q} rm -f have_unused${EXT} have_unused.o unused_tmp
${Q} echo 'have_unused.h formed' ${Q} echo 'have_unused.h formed'
-@if [ -z "${Q} " ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= start of $@ =-=-='; \ echo '=-=-= start of $@ =-=-='; \
cat $@; \ cat $@; \

View File

@@ -18,8 +18,8 @@
# received a copy with calc; if not, write to Free Software Foundation, Inc. # received a copy with calc; if not, write to Free Software Foundation, Inc.
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
# #
# @(#) $Revision: 29.21 $ # @(#) $Revision: 29.22 $
# @(#) $Id: Makefile,v 29.21 2006/06/26 05:46:06 chongo Exp $ # @(#) $Id: Makefile,v 29.22 2006/09/18 00:08:42 chongo Exp $
# @(#) $Source: /usr/local/src/cmd/calc/cal/RCS/Makefile,v $ # @(#) $Source: /usr/local/src/cmd/calc/cal/RCS/Makefile,v $
# #
# Under source code control: 1991/07/21 05:00:54 # Under source code control: 1991/07/21 05:00:54
@@ -209,17 +209,17 @@ all: ${CALC_FILES} ${MAKE_FILE} .all
## ##
distlist: ${DISTLIST} distlist: ${DISTLIST}
${Q}for i in ${DISTLIST} /dev/null; do \ ${Q} for i in ${DISTLIST} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo cal/$$i; \ echo cal/$$i; \
fi; \ fi; \
done done
distdir: distdir:
${Q}echo cal ${Q} echo cal
calcliblist: calcliblist:
${Q}for i in ${CALCLIBLIST} /dev/null; do \ ${Q} for i in ${CALCLIBLIST} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo cal/$$i; \ echo cal/$$i; \
fi; \ fi; \
@@ -232,7 +232,7 @@ calcliblist:
## ##
echo_inst_files: echo_inst_files:
${Q}for i in ${CALC_FILES} /dev/null; do \ ${Q} for i in ${CALC_FILES} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo __file__ ${CALC_SHAREDIR}/$$i; \ echo __file__ ${CALC_SHAREDIR}/$$i; \
fi; \ fi; \
@@ -254,7 +254,7 @@ clobber:
# NOTE: Keep the uninstall rule in reverse order to the install rule # NOTE: Keep the uninstall rule in reverse order to the install rule
# #
install: all install: all
-${Q}if [ ! -d $T${CALC_SHAREDIR} ]; then \ -${Q} if [ ! -d $T${CALC_SHAREDIR} ]; then \
echo mkdir $T${CALC_SHAREDIR}; \ echo mkdir $T${CALC_SHAREDIR}; \
mkdir $T${CALC_SHAREDIR}; \ mkdir $T${CALC_SHAREDIR}; \
if [ ! -d "$T${CALC_SHAREDIR}" ]; then \ if [ ! -d "$T${CALC_SHAREDIR}" ]; then \
@@ -266,7 +266,7 @@ install: all
else \ else \
true; \ true; \
fi fi
${Q}for i in ${CALC_FILES} /dev/null; do \ ${Q} for i in ${CALC_FILES} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -286,7 +286,7 @@ install: all
# NOTE: Keep the uninstall rule in reverse order to the install rule # NOTE: Keep the uninstall rule in reverse order to the install rule
# #
uninstall: uninstall:
-${Q}for i in ${CALC_FILES} /dev/null; do \ -${Q} for i in ${CALC_FILES} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -299,7 +299,7 @@ uninstall:
fi; \ fi; \
fi; \ fi; \
done done
-${Q}for i in ${CALC_SHAREDIR}; do \ -${Q} for i in ${CALC_SHAREDIR}; do \
if [ -d "$T$$i" ]; then \ if [ -d "$T$$i" ]; then \
rmdir "$T$$i" 2>/dev/null; \ rmdir "$T$$i" 2>/dev/null; \
echo "cleaned up $T$$i"; \ echo "cleaned up $T$$i"; \

View File

@@ -17,8 +17,8 @@
# received a copy with calc; if not, write to Free Software Foundation, Inc. # received a copy with calc; if not, write to Free Software Foundation, Inc.
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
# #
# @(#) $Revision: 29.24 $ # @(#) $Revision: 29.25 $
# @(#) $Id: Makefile,v 29.24 2006/06/26 05:46:06 chongo Exp $ # @(#) $Id: Makefile,v 29.25 2006/09/18 00:13:59 chongo Exp $
# @(#) $Source: /usr/local/src/cmd/calc/cscript/RCS/Makefile,v $ # @(#) $Source: /usr/local/src/cmd/calc/cscript/RCS/Makefile,v $
# #
# Under source code control: 1999/11/29 11:10:26 # Under source code control: 1999/11/29 11:10:26
@@ -229,21 +229,21 @@ all: ${TARGETS} .all
## ##
distlist: ${DISTLIST} distlist: ${DISTLIST}
${Q}for i in ${DISTLIST} /dev/null; do \ ${Q} for i in ${DISTLIST} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo cscript/$$i; \ echo cscript/$$i; \
fi; \ fi; \
done | LANG=C ${SORT} done | LANG=C ${SORT}
distdir: distdir:
${Q}echo cscript ${Q} echo cscript
calcliblist: calcliblist:
# These next rule help me form the ${DETAIL_HELP} makefile variables above. # These next rule help me form the ${DETAIL_HELP} makefile variables above.
# #
detaillist: detaillist:
${Q}-(echo "xxxxxxx"; \ ${Q} -(echo "xxxxxxx"; \
for i in ${SCRIPT} /dev/null; do \ for i in ${SCRIPT} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
if [ ! -f RCS/$$i.calc,v ]; then \ if [ ! -f RCS/$$i.calc,v ]; then \
@@ -255,8 +255,8 @@ detaillist:
done | LANG=C ${SORT}) | ${FMT} -70 | \ done | LANG=C ${SORT}) | ${FMT} -70 | \
${SED} -e '1s/xxxxxxx/SCRIPT=/' -e '2,$$s/^/ /' \ ${SED} -e '1s/xxxxxxx/SCRIPT=/' -e '2,$$s/^/ /' \
-e 's/$$/ \\/' -e '$$s/ \\$$//' -e 's/$$/ \\/' -e '$$s/ \\$$//'
${Q}echo ${Q} echo
${Q}-(echo "xxxxxxxxxxx"; \ ${Q} -(echo "xxxxxxxxxxx"; \
for i in ${SCRIPT} /dev/null; do \ for i in ${SCRIPT} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
if [ ! -f RCS/$$i.calc,v ]; then \ if [ ! -f RCS/$$i.calc,v ]; then \
@@ -282,18 +282,18 @@ detaillist:
## ##
depend: depend:
${Q}if [ -f Makefile.bak ]; then \ ${Q} if [ -f Makefile.bak ]; then \
echo "Makefile.bak exists, remove or move it out of the way"; \ echo "Makefile.bak exists, remove or move it out of the way"; \
exit 1; \ exit 1; \
else \ else \
true; \ true; \
fi fi
-${Q}rm -f makedep.out -${Q} rm -f makedep.out
${Q}echo forming cscript dependency list ${Q} echo forming cscript dependency list
${Q}echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > \ ${Q} echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > \
makedep.out makedep.out
${Q}echo "" >> makedep.out ${Q} echo "" >> makedep.out
${Q}for i in ${SCRIPT} /dev/null; do \ ${Q} for i in ${SCRIPT} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo "$$i: $$i.calc"; \ echo "$$i: $$i.calc"; \
echo ' @rm -f $$@'; \ echo ' @rm -f $$@'; \
@@ -301,15 +301,15 @@ depend:
echo ' @$${CHMOD} +x $$@'; \ echo ' @$${CHMOD} +x $$@'; \
fi; \ fi; \
done >> makedep.out done >> makedep.out
${Q}echo sample dependency list formed ${Q} echo sample dependency list formed
${Q}echo forming new cscript/Makefile ${Q} echo forming new cscript/Makefile
-${Q}rm -f Makefile.bak -${Q} rm -f Makefile.bak
${Q}mv Makefile Makefile.bak ${Q} mv Makefile Makefile.bak
${Q}${SED} -n '1,/^# DO NOT DELETE THIS LINE/p' Makefile.bak > Makefile ${Q} ${SED} -n '1,/^# DO NOT DELETE THIS LINE/p' Makefile.bak > Makefile
${Q}echo "" >> Makefile ${Q} echo "" >> Makefile
${Q}${SED} -n '3,$$p' makedep.out >> Makefile ${Q} ${SED} -n '3,$$p' makedep.out >> Makefile
-${Q}rm -f makedep.out -${Q} rm -f makedep.out
-${Q}if ${CMP} -s Makefile.bak Makefile; then \ -${Q} if ${CMP} -s Makefile.bak Makefile; then \
echo 'sample Makefile was already up to date'; \ echo 'sample Makefile was already up to date'; \
mv -f Makefile.bak Makefile; \ mv -f Makefile.bak Makefile; \
else \ else \
@@ -331,7 +331,7 @@ depend:
## ##
echo_inst_files: echo_inst_files:
${Q}for i in ${SCRIPT} /dev/null; do \ ${Q} for i in ${SCRIPT} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo __file__ ${SCRIPTDIR}/$$i; \ echo __file__ ${SCRIPTDIR}/$$i; \
fi; \ fi; \
@@ -354,7 +354,7 @@ clobber:
# NOTE: Keep the uninstall rule in reverse order to the install rule # NOTE: Keep the uninstall rule in reverse order to the install rule
# #
install: all install: all
-${Q}if [ ! -d $T${BINDIR} ]; then \ -${Q} if [ ! -d $T${BINDIR} ]; then \
echo mkdir $T${BINDIR}; \ echo mkdir $T${BINDIR}; \
mkdir $T${BINDIR}; \ mkdir $T${BINDIR}; \
if [ ! -d "$T${BINDIR}" ]; then \ if [ ! -d "$T${BINDIR}" ]; then \
@@ -366,7 +366,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}if [ ! -d $T${SCRIPTDIR} ]; then \ -${Q} if [ ! -d $T${SCRIPTDIR} ]; then \
echo mkdir $T${SCRIPTDIR}; \ echo mkdir $T${SCRIPTDIR}; \
mkdir $T${SCRIPTDIR}; \ mkdir $T${SCRIPTDIR}; \
if [ ! -d "$T${SCRIPTDIR}" ]; then \ if [ ! -d "$T${SCRIPTDIR}" ]; then \
@@ -378,7 +378,7 @@ install: all
else \ else \
true; \ true; \
fi fi
${Q}for i in ${SCRIPT} /dev/null; do \ ${Q} for i in ${SCRIPT} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -398,7 +398,7 @@ install: all
# NOTE: Keep the uninstall rule in reverse order to the install rule # NOTE: Keep the uninstall rule in reverse order to the install rule
# #
uninstall: uninstall:
-${Q}for i in ${SCRIPT} /dev/null; do \ -${Q} for i in ${SCRIPT} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -411,7 +411,7 @@ uninstall:
fi; \ fi; \
fi; \ fi; \
done done
-${Q}for i in ${SCRIPTDIR} ${BINDIR}; do \ -${Q} for i in ${SCRIPTDIR} ${BINDIR}; do \
if [ -d "$T$$i" ]; then \ if [ -d "$T$$i" ]; then \
rmdir "$T$$i" 2>/dev/null; \ rmdir "$T$$i" 2>/dev/null; \
echo "cleaned up $T$$i"; \ echo "cleaned up $T$$i"; \

View File

@@ -18,8 +18,8 @@
# received a copy with calc; if not, write to Free Software Foundation, Inc. # received a copy with calc; if not, write to Free Software Foundation, Inc.
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
# #
# @(#) $Revision: 29.25 $ # @(#) $Revision: 29.26 $
# @(#) $Id: Makefile,v 29.25 2006/06/26 05:46:06 chongo Exp $ # @(#) $Id: Makefile,v 29.26 2006/09/18 00:13:59 chongo Exp $
# @(#) $Source: /usr/local/src/cmd/calc/custom/RCS/Makefile,v $ # @(#) $Source: /usr/local/src/cmd/calc/custom/RCS/Makefile,v $
# #
# Under source code control: 1997/03/09 02:28:54 # Under source code control: 1997/03/09 02:28:54
@@ -452,17 +452,17 @@ c_sysinfo.o: c_sysinfo.c ${MAKE_FILE}
## ##
distlist: ${DISTLIST} distlist: ${DISTLIST}
${Q}for i in ${DISTLIST} /dev/null; do \ ${Q} for i in ${DISTLIST} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo custom/$$i; \ echo custom/$$i; \
fi; \ fi; \
done done
distdir: distdir:
${Q}echo custom ${Q} echo custom
calcliblist: ${CALCLIBLIST} calcliblist: ${CALCLIBLIST}
${Q}for i in ${CALCLIBLIST} /dev/null; do \ ${Q} for i in ${CALCLIBLIST} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo custom/$$i; \ echo custom/$$i; \
fi; \ fi; \
@@ -481,23 +481,23 @@ calcliblist: ${CALCLIBLIST}
## ##
depend: depend:
${Q}if [ -f Makefile.bak ]; then \ ${Q} if [ -f Makefile.bak ]; then \
echo "Makefile.bak exists, remove or move it out of the way"; \ echo "Makefile.bak exists, remove or move it out of the way"; \
exit 1; \ exit 1; \
else \ else \
true; \ true; \
fi fi
${Q}echo forming custom/skel ${Q} echo forming custom/skel
-${Q}rm -rf skel -${Q} rm -rf skel
${Q}mkdir skel ${Q} mkdir skel
${Q}mkdir skel/custom ${Q} mkdir skel/custom
-${Q}for i in ${C_SRC} /dev/null; do \ -${Q} for i in ${C_SRC} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
${SED} -n '/^#[ ]*include[ ]*"/p' \ ${SED} -n '/^#[ ]*include[ ]*"/p' \
"$$i" > "skel/custom/$$i"; \ "$$i" > "skel/custom/$$i"; \
fi; \ fi; \
done done
-${Q}for i in ${H_SRC} /dev/null; do \ -${Q} for i in ${H_SRC} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -508,8 +508,8 @@ depend:
>> "skel/custom/$$i"; \ >> "skel/custom/$$i"; \
echo '#endif /* '"$$tag"' */' >> "skel/custom/$$i"; \ echo '#endif /* '"$$tag"' */' >> "skel/custom/$$i"; \
done done
${Q}(cd ..; ${MAKE} hsrc) ${Q} (cd ..; ${MAKE} hsrc)
${Q}for i in `cd ..; ${MAKE} h_list 2>&1 | \ ${Q} for i in `cd ..; ${MAKE} h_list 2>&1 | \
${SED} -e '/Entering directory/d' \ ${SED} -e '/Entering directory/d' \
-e '/Nothing to be done/d' \ -e '/Nothing to be done/d' \
-e '/Leaving directory/d'` /dev/null; do \ -e '/Leaving directory/d'` /dev/null; do \
@@ -523,27 +523,27 @@ depend:
>> "skel/$$i"; \ >> "skel/$$i"; \
echo '#endif /* '"$$tag"' */' >> "skel/$$i"; \ echo '#endif /* '"$$tag"' */' >> "skel/$$i"; \
done done
-${Q}rm -f skel/custom/makedep.out -${Q} rm -f skel/custom/makedep.out
${Q}echo custom/skel formed ${Q} echo custom/skel formed
${Q}echo forming custom dependency list ${Q} echo forming custom dependency list
${Q}echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > \ ${Q} echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > \
skel/custom/makedep.out skel/custom/makedep.out
${Q}cd skel/custom; ${MAKEDEPEND} -w 1 -f makedep.out ${C_SRC} ${Q} cd skel/custom; ${MAKEDEPEND} -w 1 -f makedep.out ${C_SRC}
-${Q}for i in ${C_SRC} /dev/null; do \ -${Q} for i in ${C_SRC} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo "$$i" | ${SED} 's/^\(.*\)\.c/\1.o: \1.c/'; \ echo "$$i" | ${SED} 's/^\(.*\)\.c/\1.o: \1.c/'; \
fi; \ fi; \
done >> skel/custom/makedep.out done >> skel/custom/makedep.out
${Q}echo custom dependency list formed ${Q} echo custom dependency list formed
${Q}echo forming new custom/Makefile ${Q} echo forming new custom/Makefile
-${Q}rm -f Makefile.bak -${Q} rm -f Makefile.bak
${Q}mv Makefile Makefile.bak ${Q} mv Makefile Makefile.bak
${Q}${SED} -n '1,/^# DO NOT DELETE THIS LINE/p' Makefile.bak > Makefile ${Q} ${SED} -n '1,/^# DO NOT DELETE THIS LINE/p' Makefile.bak > Makefile
${Q}echo "" >> Makefile ${Q} echo "" >> Makefile
${Q}${SED} -n '3,$$p' skel/custom/makedep.out | \ ${Q} ${SED} -n '3,$$p' skel/custom/makedep.out | \
LANG=C ${SORT} -u >> Makefile LANG=C ${SORT} -u >> Makefile
-${Q}rm -rf skel -${Q} rm -rf skel
-${Q}if ${CMP} -s Makefile.bak Makefile; then \ -${Q} if ${CMP} -s Makefile.bak Makefile; then \
echo 'custom Makefile was already up to date'; \ echo 'custom Makefile was already up to date'; \
mv -f Makefile.bak Makefile; \ mv -f Makefile.bak Makefile; \
else \ else \
@@ -565,22 +565,22 @@ depend:
## ##
echo_inst_files: echo_inst_files:
${Q}for i in ${INSTALL_H_SRC} /dev/null; do \ ${Q} for i in ${INSTALL_H_SRC} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo __file__ ${CUSTOMINCDIR}/$$i; \ echo __file__ ${CUSTOMINCDIR}/$$i; \
fi; \ fi; \
done done
${Q}for i in ${CUSTOM_HELP} /dev/null; do \ ${Q} for i in ${CUSTOM_HELP} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo __file__ ${CUSTOMHELPDIR}/$$i; \ echo __file__ ${CUSTOMHELPDIR}/$$i; \
fi; \ fi; \
done done
${Q}for i in ${CUSTOM_CALC_FILES} /dev/null; do \ ${Q} for i in ${CUSTOM_CALC_FILES} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo __file__ ${CUSTOMCALDIR}/$$i; \ echo __file__ ${CUSTOMCALDIR}/$$i; \
fi; \ fi; \
done done
${Q}for i in ${CALC_LIBCUSTOM} /dev/null; do \ ${Q} for i in ${CALC_LIBCUSTOM} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo __file__ ${CUSTOMCALDIR}/$$i; \ echo __file__ ${CUSTOMCALDIR}/$$i; \
fi; \ fi; \
@@ -604,7 +604,7 @@ clobber:
# NOTE: Keep the uninstall rule in reverse order to the install rule # NOTE: Keep the uninstall rule in reverse order to the install rule
# #
install: all install: all
-${Q}if [ ! -d $T${INCDIR} ]; then \ -${Q} if [ ! -d $T${INCDIR} ]; then \
echo mkdir $T${INCDIR}; \ echo mkdir $T${INCDIR}; \
mkdir $T${INCDIR}; \ mkdir $T${INCDIR}; \
if [ ! -d "$T${INCDIR}" ]; then \ if [ ! -d "$T${INCDIR}" ]; then \
@@ -616,7 +616,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}if [ ! -d $T${CALC_SHAREDIR} ]; then \ -${Q} if [ ! -d $T${CALC_SHAREDIR} ]; then \
echo mkdir $T${CALC_SHAREDIR}; \ echo mkdir $T${CALC_SHAREDIR}; \
mkdir $T${CALC_SHAREDIR}; \ mkdir $T${CALC_SHAREDIR}; \
if [ ! -d "$T${CALC_SHAREDIR}" ]; then \ if [ ! -d "$T${CALC_SHAREDIR}" ]; then \
@@ -628,7 +628,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}if [ ! -d $T${CALC_INCDIR} ]; then \ -${Q} if [ ! -d $T${CALC_INCDIR} ]; then \
echo mkdir $T${CALC_INCDIR}; \ echo mkdir $T${CALC_INCDIR}; \
mkdir $T${CALC_INCDIR}; \ mkdir $T${CALC_INCDIR}; \
if [ ! -d "$T${CALC_INCDIR}" ]; then \ if [ ! -d "$T${CALC_INCDIR}" ]; then \
@@ -640,7 +640,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}if [ ! -d $T${HELPDIR} ]; then \ -${Q} if [ ! -d $T${HELPDIR} ]; then \
echo mkdir $T${HELPDIR}; \ echo mkdir $T${HELPDIR}; \
mkdir $T${HELPDIR}; \ mkdir $T${HELPDIR}; \
if [ ! -d "$T${HELPDIR}" ]; then \ if [ ! -d "$T${HELPDIR}" ]; then \
@@ -652,7 +652,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}if [ ! -d $T${CUSTOMCALDIR} ]; then \ -${Q} if [ ! -d $T${CUSTOMCALDIR} ]; then \
echo mkdir $T${CUSTOMCALDIR}; \ echo mkdir $T${CUSTOMCALDIR}; \
mkdir $T${CUSTOMCALDIR}; \ mkdir $T${CUSTOMCALDIR}; \
if [ ! -d "$T${CUSTOMCALDIR}" ]; then \ if [ ! -d "$T${CUSTOMCALDIR}" ]; then \
@@ -664,7 +664,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}if [ ! -d $T${CUSTOMHELPDIR} ]; then \ -${Q} if [ ! -d $T${CUSTOMHELPDIR} ]; then \
echo mkdir $T${CUSTOMHELPDIR}; \ echo mkdir $T${CUSTOMHELPDIR}; \
mkdir $T${CUSTOMHELPDIR}; \ mkdir $T${CUSTOMHELPDIR}; \
if [ ! -d "$T${CUSTOMHELPDIR}" ]; then \ if [ ! -d "$T${CUSTOMHELPDIR}" ]; then \
@@ -676,7 +676,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}if [ ! -d $T${CUSTOMINCDIR} ]; then \ -${Q} if [ ! -d $T${CUSTOMINCDIR} ]; then \
echo mkdir $T${CUSTOMINCDIR}; \ echo mkdir $T${CUSTOMINCDIR}; \
mkdir $T${CUSTOMINCDIR}; \ mkdir $T${CUSTOMINCDIR}; \
if [ ! -d "$T${CUSTOMINCDIR}" ]; then \ if [ ! -d "$T${CUSTOMINCDIR}" ]; then \
@@ -688,7 +688,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}for i in ${INSTALL_H_SRC} /dev/null; do \ -${Q} for i in ${INSTALL_H_SRC} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -702,7 +702,7 @@ install: all
echo "installed $T${CUSTOMINCDIR}/$$i"; \ echo "installed $T${CUSTOMINCDIR}/$$i"; \
fi; \ fi; \
done done
-${Q}for i in ${CUSTOM_CALC_FILES} /dev/null; do \ -${Q} for i in ${CUSTOM_CALC_FILES} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -716,7 +716,7 @@ install: all
echo "installed $T${CUSTOMCALDIR}/$$i"; \ echo "installed $T${CUSTOMCALDIR}/$$i"; \
fi; \ fi; \
done done
-${Q}for i in ${CUSTOM_HELP} /dev/null; do \ -${Q} for i in ${CUSTOM_HELP} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -730,7 +730,7 @@ install: all
echo "installed $T${CUSTOMHELPDIR}/$$i"; \ echo "installed $T${CUSTOMHELPDIR}/$$i"; \
fi; \ fi; \
done done
-${Q}if [ ! -z ${ALLOW_CUSTOM} ]; then \ -${Q} if [ ! -z ${ALLOW_CUSTOM} ]; then \
if ${CMP} -s libcustcalc.a $T${CUSTOMCALDIR}/libcustcalc.a; then \ if ${CMP} -s libcustcalc.a $T${CUSTOMCALDIR}/libcustcalc.a; then \
true; \ true; \
else \ else \
@@ -749,7 +749,7 @@ install: all
# NOTE: Keep the uninstall rule in reverse order to the install rule # NOTE: Keep the uninstall rule in reverse order to the install rule
# #
uninstall: uninstall:
-${Q}if [ -f "$T${CUSTOMCALDIR}/libcustcalc.a" ]; then \ -${Q} if [ -f "$T${CUSTOMCALDIR}/libcustcalc.a" ]; then \
rm -f "$T${CUSTOMCALDIR}/libcustcalc.a"; \ rm -f "$T${CUSTOMCALDIR}/libcustcalc.a"; \
if [ -f "$T${CUSTOMCALDIR}/libcustcalc.a" ]; then \ if [ -f "$T${CUSTOMCALDIR}/libcustcalc.a" ]; then \
echo "cannot uninstall $T${CUSTOMCALDIR}/libcustcalc.a"; \ echo "cannot uninstall $T${CUSTOMCALDIR}/libcustcalc.a"; \
@@ -757,7 +757,7 @@ uninstall:
echo "uninstalled $T${CUSTOMCALDIR}/libcustcalc.a"; \ echo "uninstalled $T${CUSTOMCALDIR}/libcustcalc.a"; \
fi; \ fi; \
fi fi
-${Q}for i in ${CUSTOM_HELP} /dev/null; do \ -${Q} for i in ${CUSTOM_HELP} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -770,7 +770,7 @@ uninstall:
fi; \ fi; \
fi; \ fi; \
done done
-${Q}for i in ${CUSTOM_CALC_FILES} /dev/null; do \ -${Q} for i in ${CUSTOM_CALC_FILES} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -783,7 +783,7 @@ uninstall:
fi; \ fi; \
fi; \ fi; \
done done
-${Q}for i in ${INSTALL_H_SRC} /dev/null; do \ -${Q} for i in ${INSTALL_H_SRC} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
fi; \ fi; \
@@ -796,7 +796,7 @@ uninstall:
fi; \ fi; \
fi; \ fi; \
done done
-${Q}for i in ${CUSTOMINCDIR} ${CUSTOMHELPDIR} ${CUSTOMCALDIR} \ -${Q} for i in ${CUSTOMINCDIR} ${CUSTOMHELPDIR} ${CUSTOMCALDIR} \
${HELPDIR} ${CALC_INCDIR} ${CALC_SHAREDIR} ${INCDIR}; do \ ${HELPDIR} ${CALC_INCDIR} ${CALC_SHAREDIR} ${INCDIR}; do \
if [ -d "$T$$i" ]; then \ if [ -d "$T$$i" ]; then \
rmdir "$T$$i" 2>/dev/null; \ rmdir "$T$$i" 2>/dev/null; \

View File

@@ -18,8 +18,8 @@
# received a copy with calc; if not, write to Free Software Foundation, Inc. # received a copy with calc; if not, write to Free Software Foundation, Inc.
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
# #
# @(#) $Revision: 29.30 $ # @(#) $Revision: 29.31 $
# @(#) $Id: Makefile,v 29.30 2006/08/20 15:01:57 chongo Exp $ # @(#) $Id: Makefile,v 29.31 2006/09/18 00:13:59 chongo Exp $
# @(#) $Source: /usr/local/src/cmd/calc/help/RCS/Makefile,v $ # @(#) $Source: /usr/local/src/cmd/calc/help/RCS/Makefile,v $
# #
# Under source code control: 1991/07/23 06:47:57 # Under source code control: 1991/07/23 06:47:57
@@ -487,9 +487,9 @@ cscript: ../cscript/README
fi fi
full: ${FULL_HELP_FILES} ${MAKE_FILE} full: ${FULL_HELP_FILES} ${MAKE_FILE}
${Q}echo "forming full" ${Q} echo "forming full"
-${Q}rm -f $@ -${Q} rm -f $@
-${Q}for i in ${FULL_HELP_FILES}; do \ -${Q} for i in ${FULL_HELP_FILES}; do \
if [ Xintro != X"$$i" ]; then \ if [ Xintro != X"$$i" ]; then \
echo " "; \ echo " "; \
else \ else \
@@ -506,7 +506,7 @@ full: ${FULL_HELP_FILES} ${MAKE_FILE}
echo ""; \ echo ""; \
cat $$i; \ cat $$i; \
done > $@ done > $@
${Q}echo "full formed" ${Q} echo "full formed"
-@if [ -z "${Q}" ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= skipping the cat of help/$@ =-=-='; \ echo '=-=-= skipping the cat of help/$@ =-=-='; \
@@ -518,7 +518,7 @@ full: ${FULL_HELP_FILES} ${MAKE_FILE}
# Singular files are the same files as their plural form. # Singular files are the same files as their plural form.
# #
${SINGULAR_FILES}: ${PLURAL_FILES} ${SINGULAR_FILES}: ${PLURAL_FILES}
${Q}for i in ${SINGULAR_FILES} /dev/null; do \ ${Q} for i in ${SINGULAR_FILES} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo "rm -f $${i}"; \ echo "rm -f $${i}"; \
rm -f $${i}; \ rm -f $${i}; \
@@ -553,19 +553,19 @@ ${SINGULAR_FILES}: ${PLURAL_FILES}
# do not treat -I.. correctly! # do not treat -I.. correctly!
# #
builtin: builtin.top builtin.end ../func.c funclist.sed builtin: builtin.top builtin.end ../func.c funclist.sed
${Q}echo "forming builtin help file" ${Q} echo "forming builtin help file"
-${Q}rm -f funclist.c -${Q} rm -f funclist.c
${Q}${SED} -n -f funclist.sed ../func.c > funclist.c ${Q} ${SED} -n -f funclist.sed ../func.c > funclist.c
-${Q}rm -f funclist.o funclist${EXT} -${Q} rm -f funclist.o funclist${EXT}
${Q}${LCC} ${ICFLAGS} -DFUNCLIST -I/usr/include \ ${Q} ${LCC} ${ICFLAGS} -DFUNCLIST -I/usr/include \
-I.. funclist.c -c 2>/dev/null -I.. funclist.c -c 2>/dev/null
${Q}${LCC} ${ILDFLAGS} funclist.o -o funclist${EXT} ${Q} ${LCC} ${ILDFLAGS} funclist.o -o funclist${EXT}
-${Q}rm -f builtin -${Q} rm -f builtin
${Q}cat builtin.top > builtin ${Q} cat builtin.top > builtin
${Q}./funclist${EXT} | \ ${Q} ./funclist${EXT} | \
${SED} -e 's/^/ /' -e 's/[ ][ ]*$$//' >> builtin ${SED} -e 's/^/ /' -e 's/[ ][ ]*$$//' >> builtin
${Q}cat builtin.end >> builtin ${Q} cat builtin.end >> builtin
${Q}echo "builtin help file formed" ${Q} echo "builtin help file formed"
-@if [ -z "${Q}" ]; then \ -@if [ -z "${Q}" ]; then \
echo ''; \ echo ''; \
echo '=-=-= skipping the cat of help/$@ =-=-='; \ echo '=-=-= skipping the cat of help/$@ =-=-='; \
@@ -585,17 +585,17 @@ builtin: builtin.top builtin.end ../func.c funclist.sed
## ##
distlist: ${DISTLIST} distlist: ${DISTLIST}
${Q}for i in ${DISTLIST} /dev/null; do \ ${Q} for i in ${DISTLIST} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo help/$$i; \ echo help/$$i; \
fi; \ fi; \
done | LANG=C ${SORT} done | LANG=C ${SORT}
distdir: distdir:
${Q}echo help ${Q} echo help
calcliblist: calcliblist:
${Q}for i in ${CALCLIBLIST} /dev/null; do \ ${Q} for i in ${CALCLIBLIST} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo help/$$i; \ echo help/$$i; \
fi; \ fi; \
@@ -612,7 +612,7 @@ bsdi: all
# These next rule help me form the ${DETAIL_HELP} makefile variables above. # These next rule help me form the ${DETAIL_HELP} makefile variables above.
# #
detaillist: detaillist:
${Q}-(echo "xxxxx"; \ ${Q} -(echo "xxxxx"; \
for i in ${DETAIL_HELP} /dev/null; do \ for i in ${DETAIL_HELP} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
if [ ! -f RCS/$$i,v ]; then \ if [ ! -f RCS/$$i,v ]; then \
@@ -632,13 +632,13 @@ detaillist:
## ##
echo_inst_files: echo_inst_files:
${Q}for i in ${STD_HELP_FILES} full ${BLT_HELP_FILES} \ ${Q} for i in ${STD_HELP_FILES} full ${BLT_HELP_FILES} \
builtin ${DETAIL_HELP} ${SINGULAR_FILES} /dev/null; do \ builtin ${DETAIL_HELP} ${SINGULAR_FILES} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo __file__ ${HELPDIR}/$$i; \ echo __file__ ${HELPDIR}/$$i; \
fi; \ fi; \
done done
${Q}echo __file__ ${HELPDIR}/obj ${Q} echo __file__ ${HELPDIR}/obj
## ##
# #
@@ -661,7 +661,7 @@ clobber:
# NOTE: Keep the uninstall rule in reverse order to the install rule # NOTE: Keep the uninstall rule in reverse order to the install rule
# #
install: all install: all
-${Q}if [ ! -d $T${CALC_SHAREDIR} ]; then \ -${Q} if [ ! -d $T${CALC_SHAREDIR} ]; then \
echo mkdir $T${CALC_SHAREDIR}; \ echo mkdir $T${CALC_SHAREDIR}; \
mkdir $T${CALC_SHAREDIR}; \ mkdir $T${CALC_SHAREDIR}; \
if [ ! -d "$T${CALC_SHAREDIR}" ]; then \ if [ ! -d "$T${CALC_SHAREDIR}" ]; then \
@@ -673,7 +673,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}if [ ! -d $T${HELPDIR} ]; then \ -${Q} if [ ! -d $T${HELPDIR} ]; then \
echo mkdir $T${HELPDIR}; \ echo mkdir $T${HELPDIR}; \
mkdir $T${HELPDIR}; \ mkdir $T${HELPDIR}; \
if [ ! -d "$T${HELPDIR}" ]; then \ if [ ! -d "$T${HELPDIR}" ]; then \
@@ -685,7 +685,7 @@ install: all
else \ else \
true; \ true; \
fi fi
-${Q}for i in ${STD_HELP_FILES} ${BLT_HELP_FILES} builtin \ -${Q} for i in ${STD_HELP_FILES} ${BLT_HELP_FILES} builtin \
full ${DETAIL_HELP} ${SINGULAR_FILES} /dev/null; do \ full ${DETAIL_HELP} ${SINGULAR_FILES} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
@@ -700,7 +700,7 @@ install: all
echo "installed $T${HELPDIR}/$$i"; \ echo "installed $T${HELPDIR}/$$i"; \
fi; \ fi; \
done done
-${Q}if ${CMP} -s obj.file $T${HELPDIR}/obj; then \ -${Q} if ${CMP} -s obj.file $T${HELPDIR}/obj; then \
true; \ true; \
else \ else \
rm -f $T${HELPDIR}/obj.new; \ rm -f $T${HELPDIR}/obj.new; \
@@ -715,7 +715,7 @@ install: all
# NOTE: Keep the uninstall rule in reverse order to the install rule # NOTE: Keep the uninstall rule in reverse order to the install rule
# #
uninstall: uninstall:
-${Q}if [ -f "$T${HELPDIR}/obj" ]; then \ -${Q} if [ -f "$T${HELPDIR}/obj" ]; then \
rm -f "$T${HELPDIR}/obj"; \ rm -f "$T${HELPDIR}/obj"; \
if [ -f "$T${HELPDIR}/obj" ]; then \ if [ -f "$T${HELPDIR}/obj" ]; then \
echo "cannot uninstall $T${HELPDIR}/obj"; \ echo "cannot uninstall $T${HELPDIR}/obj"; \
@@ -723,7 +723,7 @@ uninstall:
echo "uninstalled $T${HELPDIR}/obj"; \ echo "uninstalled $T${HELPDIR}/obj"; \
fi; \ fi; \
fi fi
-${Q}for i in ${SINGULAR_FILES} ${DETAIL_HELP} full builtin \ -${Q} for i in ${SINGULAR_FILES} ${DETAIL_HELP} full builtin \
${BLT_HELP_FILES} ${STD_HELP_FILES} /dev/null; do \ ${BLT_HELP_FILES} ${STD_HELP_FILES} /dev/null; do \
if [ "$$i" = "/dev/null" ]; then \ if [ "$$i" = "/dev/null" ]; then \
continue; \ continue; \
@@ -737,7 +737,7 @@ uninstall:
fi; \ fi; \
fi; \ fi; \
done done
-${Q}for i in ${HELPDIR} ${CALC_SHAREDIR}; do \ -${Q} for i in ${HELPDIR} ${CALC_SHAREDIR}; do \
if [ -d "$T$$i" ]; then \ if [ -d "$T$$i" ]; then \
rmdir "$T$$i" 2>/dev/null; \ rmdir "$T$$i" 2>/dev/null; \
echo "cleaned up $T$$i"; \ echo "cleaned up $T$$i"; \

View File

@@ -17,8 +17,8 @@
# received a copy with calc; if not, write to Free Software Foundation, Inc. # received a copy with calc; if not, write to Free Software Foundation, Inc.
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
# #
# @(#) $Revision: 29.18 $ # @(#) $Revision: 29.19 $
# @(#) $Id: Makefile,v 29.18 2006/06/26 05:46:06 chongo Exp $ # @(#) $Id: Makefile,v 29.19 2006/09/18 00:14:13 chongo Exp $
# @(#) $Source: /usr/local/src/cmd/calc/sample/RCS/Makefile,v $ # @(#) $Source: /usr/local/src/cmd/calc/sample/RCS/Makefile,v $
# #
# Under source code control: 1997/04/19 22:46:49 # Under source code control: 1997/04/19 22:46:49
@@ -429,17 +429,17 @@ many_random: many_random.o ../libcalc.a
## ##
distlist: ${DISTLIST} distlist: ${DISTLIST}
${Q}for i in ${DISTLIST} /dev/null; do \ ${Q} for i in ${DISTLIST} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo sample/$$i; \ echo sample/$$i; \
fi; \ fi; \
done done
distdir: distdir:
${Q}echo sample ${Q} echo sample
calcliblist: calcliblist:
${Q}for i in ${CALCLIBLIST} /dev/null; do \ ${Q} for i in ${CALCLIBLIST} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo sample/$$i; \ echo sample/$$i; \
fi; \ fi; \
@@ -458,23 +458,23 @@ calcliblist:
## ##
depend: depend:
${Q}if [ -f Makefile.bak ]; then \ ${Q} if [ -f Makefile.bak ]; then \
echo "Makefile.bak exists, remove or move it out of the way"; \ echo "Makefile.bak exists, remove or move it out of the way"; \
exit 1; \ exit 1; \
else \ else \
true; \ true; \
fi fi
${Q}echo forming sample/skel ${Q} echo forming sample/skel
-${Q}rm -rf skel -${Q} rm -rf skel
${Q}mkdir skel ${Q} mkdir skel
${Q}mkdir skel/sample ${Q} mkdir skel/sample
-${Q}for i in ${C_SRC} /dev/null; do \ -${Q} for i in ${C_SRC} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
${SED} -n '/^#[ ]*include[ ]*"/p' \ ${SED} -n '/^#[ ]*include[ ]*"/p' \
"$$i" > "skel/sample/$$i"; \ "$$i" > "skel/sample/$$i"; \
fi; \ fi; \
done done
-${Q}for i in ${H_SRC} /dev/null; do \ -${Q} for i in ${H_SRC} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
tag="`echo $$i | ${SED} 's/[\.+,:]/_/g'`"; \ tag="`echo $$i | ${SED} 's/[\.+,:]/_/g'`"; \
@@ -486,8 +486,8 @@ depend:
fi; \ fi; \
fi; \ fi; \
done done
${Q}(cd ..; ${MAKE} hsrc) ${Q} (cd ..; ${MAKE} hsrc)
${Q}for i in `cd ..; ${MAKE} h_list 2>&1 | \ ${Q} for i in `cd ..; ${MAKE} h_list 2>&1 | \
${SED} -e '/Entering directory/d' \ ${SED} -e '/Entering directory/d' \
-e '/Nothing to be done/d' \ -e '/Nothing to be done/d' \
-e '/Leaving directory/d'` /dev/null; do \ -e '/Leaving directory/d'` /dev/null; do \
@@ -500,27 +500,27 @@ depend:
echo '#endif /* '"$$tag"' */' >> "skel/$$i"; \ echo '#endif /* '"$$tag"' */' >> "skel/$$i"; \
fi; \ fi; \
done done
-${Q}rm -f skel/sample/makedep.out -${Q} rm -f skel/sample/makedep.out
${Q}echo sample/skel formed ${Q} echo sample/skel formed
${Q}echo forming sample dependency list ${Q} echo forming sample dependency list
${Q}echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > \ ${Q} echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > \
skel/sample/makedep.out skel/sample/makedep.out
${Q}cd skel/sample; ${MAKEDEPEND} -w 1 -f makedep.out -I.. ${C_SRC} ${Q} cd skel/sample; ${MAKEDEPEND} -w 1 -f makedep.out -I.. ${C_SRC}
-${Q}for i in ${C_SRC} /dev/null; do \ -${Q} for i in ${C_SRC} /dev/null; do \
if [ X"$$i" != X"/dev/null" ]; then \ if [ X"$$i" != X"/dev/null" ]; then \
echo "$$i" | ${SED} 's/^\(.*\)\.c/\1.o: \1.c/'; \ echo "$$i" | ${SED} 's/^\(.*\)\.c/\1.o: \1.c/'; \
fi; \ fi; \
done >> skel/sample/makedep.out done >> skel/sample/makedep.out
${Q}echo sample dependency list formed ${Q} echo sample dependency list formed
${Q}echo forming new sample/Makefile ${Q} echo forming new sample/Makefile
-${Q}rm -f Makefile.bak -${Q} rm -f Makefile.bak
${Q}mv Makefile Makefile.bak ${Q} mv Makefile Makefile.bak
${Q}${SED} -n '1,/^# DO NOT DELETE THIS LINE/p' Makefile.bak > Makefile ${Q} ${SED} -n '1,/^# DO NOT DELETE THIS LINE/p' Makefile.bak > Makefile
${Q}echo "" >> Makefile ${Q} echo "" >> Makefile
${Q}${SED} -n '3,$$p' skel/sample/makedep.out | \ ${Q} ${SED} -n '3,$$p' skel/sample/makedep.out | \
LANG=C ${SORT} -u >> Makefile LANG=C ${SORT} -u >> Makefile
-${Q}rm -rf skel -${Q} rm -rf skel
-${Q}if ${CMP} -s Makefile.bak Makefile; then \ -${Q} if ${CMP} -s Makefile.bak Makefile; then \
echo 'sample Makefile was already up to date'; \ echo 'sample Makefile was already up to date'; \
mv -f Makefile.bak Makefile; \ mv -f Makefile.bak Makefile; \
else \ else \

View File

@@ -19,8 +19,8 @@
* received a copy with calc; if not, write to Free Software Foundation, Inc. * received a copy with calc; if not, write to Free Software Foundation, Inc.
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
* *
* @(#) $Revision: 29.67 $ * @(#) $Revision: 29.68 $
* @(#) $Id: version.c,v 29.67 2006/09/17 23:50:45 chongo Exp $ * @(#) $Id: version.c,v 29.68 2006/09/18 00:14:46 chongo Exp $
* @(#) $Source: /usr/local/src/cmd/calc/RCS/version.c,v $ * @(#) $Source: /usr/local/src/cmd/calc/RCS/version.c,v $
* *
* Under source code control: 1990/05/22 11:00:58 * Under source code control: 1990/05/22 11:00:58
@@ -48,7 +48,7 @@ static char *program;
#define MAJOR_VER 2 /* major version */ #define MAJOR_VER 2 /* major version */
#define MINOR_VER 12 /* minor version */ #define MINOR_VER 12 /* minor version */
#define MAJOR_PATCH 1 /* patch level or 0 if no patch */ #define MAJOR_PATCH 1 /* patch level or 0 if no patch */
#define MINOR_PATCH 1 /* test number or 0 if no minor patch */ #define MINOR_PATCH 2 /* test number or 0 if no minor patch */
/* /*