diff options
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/Makefile | 123 | ||||
-rw-r--r-- | misc-utils/Makefile.am | 68 | ||||
-rw-r--r-- | misc-utils/Makefile.in | 808 | ||||
-rw-r--r-- | misc-utils/cal.c | 34 | ||||
-rwxr-xr-x | misc-utils/chkdupexe.pl | 2 | ||||
-rw-r--r-- | misc-utils/ddate.c | 3 | ||||
-rw-r--r-- | misc-utils/kill.c | 2 | ||||
-rw-r--r-- | misc-utils/mcookie.c | 6 | ||||
-rw-r--r-- | misc-utils/rename.c | 4 | ||||
-rw-r--r-- | misc-utils/reset (renamed from misc-utils/reset.sh) | 0 | ||||
-rw-r--r-- | misc-utils/script.1 | 2 | ||||
-rw-r--r-- | misc-utils/script.c | 17 | ||||
-rwxr-xr-x | misc-utils/scriptreplay.pl | 2 | ||||
-rw-r--r-- | misc-utils/setterm.c | 8 | ||||
-rwxr-xr-x | misc-utils/sparc-solaris-hostid.sh | 13 |
15 files changed, 916 insertions, 176 deletions
diff --git a/misc-utils/Makefile b/misc-utils/Makefile deleted file mode 100644 index cc1d5cd54..000000000 --- a/misc-utils/Makefile +++ /dev/null @@ -1,123 +0,0 @@ -# Makefile -- Makefile for util-linux Linux utilities -# Created: Sat Dec 26 20:09:40 1992 -# Revised: Mon Nov 11 10:12:16 1996 by faith@cs.unc.edu -# Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu) -# May be distirbuted under the GPL -# -include ../make_include -include ../MCONFIG - -# scriptreplay not added yet - -# Where to put man pages? - -MAN1= cal.1 chkdupexe.1 ddate.1 logger.1 look.1 mcookie.1 \ - namei.1 rename.1 script.1 whereis.1 - -# Where to put binaries? -# See the "install" rule for the links. . . - -BIN= - -USRBIN= cal chkdupexe ddate logger look mcookie \ - namei rename script whereis - -MAYBE= reset setterm - -ifeq "$(HAVE_RESET)" "no" -USRBIN:=$(USRBIN) reset -MAN1:=$(MAN1) reset.1 -endif - -ifeq "$(HAVE_WRITE)" "no" -USRBIN:=$(USRBIN) write -MAN1:=$(MAN1) write.1 -endif - -ifeq "$(HAVE_KILL)" "no" -BIN:=$(BIN) kill -MAN1:=$(MAN1) kill.1 -endif - -ifeq "$(HAVE_NCURSES)" "yes" -USRBIN:=$(USRBIN) setterm -MAN1:=$(MAN1) setterm.1 -endif - -# For script only -LIBPTY= -ifeq "$(HAVE_OPENPTY)" "yes" -LIBPTY:=$(LIBPTY) -lutil -endif - -# Programs requiring special compilation -NEEDS_CURSES= setterm -NEEDS_OPENPTY= script - -all: $(BIN) $(USRBIN) $(USRBIN.NONSHADOW) - -$(NEEDS_CURSES): -ifeq "$(HAVE_NCURSES)" "yes" - $(CC) $(LDFLAGS) $^ -o $@ $(LIBCURSES) -else - @echo $@ not made since it requires ncurses -endif - -ifeq "$(HAVE_NCURSES)" "yes" -cal: - $(CC) $(LDFLAGS) $^ -o $@ $(LIBCURSES) -else -ifeq "$(HAVE_TERMCAP)" "yes" -cal: - $(CC) $(LDFLAGS) $^ -o $@ $(LIBTERMCAP) -endif -endif - -$(NEEDS_OPENPTY): - $(CC) $(LDFLAGS) $^ -o $@ $(LIBPTY) - -%: %.sh - cp $@.sh $@ - chmod 755 $@ - -%: %.pl - cp $@.pl $@ - chmod 755 $@ - -# Rules for everything else - -cal.o: $(LIB)/errs.h -cal: cal.o $(ERR_O) -chkdupexe: chkdupexe.pl -ddate: ddate.o -kill: kill.o procs.o -logger: logger.o -mcookie: mcookie.o $(LIB)/md5.o -mcookie.o: mcookie.c $(LIB)/md5.h -reset: reset.sh -script: script.o -write.o: $(LIB)/carefulputc.h -write: write.o $(LIB)/carefulputc.o - -ifeq "$(HAVE_NCURSES)" "yes" -setterm: setterm.o -endif - -install: all - $(INSTALLDIR) $(BINDIR) $(USRBINDIR) -ifneq "$(BIN)" "" - $(INSTALLBIN) $(BIN) $(BINDIR) -endif - $(INSTALLBIN) $(USRBIN) $(USRBINDIR) - $(INSTALLDIR) $(MAN1DIR) - $(INSTALLMAN) $(MAN1) $(MAN1DIR) -ifeq "$(HAVE_WRITE)" "no" -ifeq "$(USE_TTY_GROUP)" "yes" - chgrp tty $(USRBINDIR)/write - chmod g+s $(USRBINDIR)/write -endif -endif - -.PHONY: clean -clean: - -rm -f *.o *~ core $(BIN) $(USRBIN) $(MAYBE) diff --git a/misc-utils/Makefile.am b/misc-utils/Makefile.am new file mode 100644 index 000000000..b9d30e331 --- /dev/null +++ b/misc-utils/Makefile.am @@ -0,0 +1,68 @@ +include $(top_srcdir)/config/include-Makefile.am + +bin_PROGRAMS = + +usrbin_PROGRAMS = cal ddate logger look mcookie \ + namei script whereis + +mcookie_LDADD = $(top_srcdir)/lib/libmd5.la + +usrbin_SCRIPTS = chkdupexe scriptreplay + +chkdupexe: chkdupexe.pl + sed -e 's,[@]PERL[@],$(PERL),g' < chkdupexe.pl > chkdupexe + +scriptreplay: scriptreplay.pl + sed -e 's,[@]PERL[@],$(PERL),g' < scriptreplay.pl > scriptreplay + +CLEANFILES = chkdupexe scriptreplay + +man_MANS = cal.1 chkdupexe.1 ddate.1 logger.1 look.1 mcookie.1 \ + namei.1 script.1 whereis.1 + +if HAVE_NCURSES +cal_LDADD = -lncurses +else +if HAVE_TERMCAP +cal_LDADD = -ltermcap +endif +endif + +if HAVE_LIBUTIL +script_LDADD = -lutil +endif + +if HAVE_NCURSES +usrbin_PROGRAMS += setterm +man_MANS += setterm.1 +setterm_LDADD = -lncurses +endif + +if BUILD_KILL +bin_PROGRAMS += kill +kill_SOURCES = kill.c procs.c +man_MANS += kill.1 +endif + +if BUILD_RENAME +usrbin_PROGRAMS += rename +man_MANS += rename.1 +endif + +if BUILD_RESET +usrbin_SCRIPTS += reset +man_MANS += reset.1 +endif + +if BUILD_WRITE + +usrbin_PROGRAMS += write +man_MANS += write.1 + +if USE_TTY_GROUP +install-data-hook:: + chgrp tty $(DESTDIR)$(usrbindir)/write + chmod g+s $(DESTDIR)$(usrbindir)/write +endif + +endif diff --git a/misc-utils/Makefile.in b/misc-utils/Makefile.in new file mode 100644 index 000000000..47811d461 --- /dev/null +++ b/misc-utils/Makefile.in @@ -0,0 +1,808 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(top_srcdir)/config/include-Makefile.am +bin_PROGRAMS = $(am__EXEEXT_1) +usrbin_PROGRAMS = cal$(EXEEXT) ddate$(EXEEXT) logger$(EXEEXT) \ + look$(EXEEXT) mcookie$(EXEEXT) namei$(EXEEXT) script$(EXEEXT) \ + whereis$(EXEEXT) $(am__EXEEXT_2) $(am__EXEEXT_3) \ + $(am__EXEEXT_4) +@HAVE_NCURSES_TRUE@am__append_1 = setterm +@HAVE_NCURSES_TRUE@am__append_2 = setterm.1 +@BUILD_KILL_TRUE@am__append_3 = kill +@BUILD_KILL_TRUE@am__append_4 = kill.1 +@BUILD_RENAME_TRUE@am__append_5 = rename +@BUILD_RENAME_TRUE@am__append_6 = rename.1 +@BUILD_RESET_TRUE@am__append_7 = reset +@BUILD_RESET_TRUE@am__append_8 = reset.1 +@BUILD_WRITE_TRUE@am__append_9 = write +@BUILD_WRITE_TRUE@am__append_10 = write.1 +subdir = misc-utils +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +@BUILD_KILL_TRUE@am__EXEEXT_1 = kill$(EXEEXT) +am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(usrbindir)" \ + "$(DESTDIR)$(usrbindir)" "$(DESTDIR)$(man1dir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +@HAVE_NCURSES_TRUE@am__EXEEXT_2 = setterm$(EXEEXT) +@BUILD_RENAME_TRUE@am__EXEEXT_3 = rename$(EXEEXT) +@BUILD_WRITE_TRUE@am__EXEEXT_4 = write$(EXEEXT) +usrbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) $(usrbin_PROGRAMS) +cal_SOURCES = cal.c +cal_OBJECTS = cal.$(OBJEXT) +cal_DEPENDENCIES = +ddate_SOURCES = ddate.c +ddate_OBJECTS = ddate.$(OBJEXT) +ddate_LDADD = $(LDADD) +am__kill_SOURCES_DIST = kill.c procs.c +@BUILD_KILL_TRUE@am_kill_OBJECTS = kill.$(OBJEXT) procs.$(OBJEXT) +kill_OBJECTS = $(am_kill_OBJECTS) +kill_LDADD = $(LDADD) +logger_SOURCES = logger.c +logger_OBJECTS = logger.$(OBJEXT) +logger_LDADD = $(LDADD) +look_SOURCES = look.c +look_OBJECTS = look.$(OBJEXT) +look_LDADD = $(LDADD) +mcookie_SOURCES = mcookie.c +mcookie_OBJECTS = mcookie.$(OBJEXT) +mcookie_DEPENDENCIES = $(top_srcdir)/lib/libmd5.la +namei_SOURCES = namei.c +namei_OBJECTS = namei.$(OBJEXT) +namei_LDADD = $(LDADD) +rename_SOURCES = rename.c +rename_OBJECTS = rename.$(OBJEXT) +rename_LDADD = $(LDADD) +script_SOURCES = script.c +script_OBJECTS = script.$(OBJEXT) +script_DEPENDENCIES = +setterm_SOURCES = setterm.c +setterm_OBJECTS = setterm.$(OBJEXT) +setterm_DEPENDENCIES = +whereis_SOURCES = whereis.c +whereis_OBJECTS = whereis.$(OBJEXT) +whereis_LDADD = $(LDADD) +write_SOURCES = write.c +write_OBJECTS = write.$(OBJEXT) +write_LDADD = $(LDADD) +usrbinSCRIPT_INSTALL = $(INSTALL_SCRIPT) +SCRIPTS = $(usrbin_SCRIPTS) +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = cal.c ddate.c $(kill_SOURCES) logger.c look.c mcookie.c \ + namei.c rename.c script.c setterm.c whereis.c write.c +DIST_SOURCES = cal.c ddate.c $(am__kill_SOURCES_DIST) logger.c look.c \ + mcookie.c namei.c rename.c script.c setterm.c whereis.c \ + write.c +man1dir = $(mandir)/man1 +NROFF = nroff +MANS = $(man_MANS) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUILD_AGETTY_FALSE = @BUILD_AGETTY_FALSE@ +BUILD_AGETTY_TRUE = @BUILD_AGETTY_TRUE@ +BUILD_ELVTUNE_FALSE = @BUILD_ELVTUNE_FALSE@ +BUILD_ELVTUNE_TRUE = @BUILD_ELVTUNE_TRUE@ +BUILD_INIT_FALSE = @BUILD_INIT_FALSE@ +BUILD_INIT_TRUE = @BUILD_INIT_TRUE@ +BUILD_KILL_FALSE = @BUILD_KILL_FALSE@ +BUILD_KILL_TRUE = @BUILD_KILL_TRUE@ +BUILD_LAST_FALSE = @BUILD_LAST_FALSE@ +BUILD_LAST_TRUE = @BUILD_LAST_TRUE@ +BUILD_LOGIN_UTILS_FALSE = @BUILD_LOGIN_UTILS_FALSE@ +BUILD_LOGIN_UTILS_TRUE = @BUILD_LOGIN_UTILS_TRUE@ +BUILD_MESG_FALSE = @BUILD_MESG_FALSE@ +BUILD_MESG_TRUE = @BUILD_MESG_TRUE@ +BUILD_PARTX_FALSE = @BUILD_PARTX_FALSE@ +BUILD_PARTX_TRUE = @BUILD_PARTX_TRUE@ +BUILD_RAW_FALSE = @BUILD_RAW_FALSE@ +BUILD_RAW_TRUE = @BUILD_RAW_TRUE@ +BUILD_RDEV_FALSE = @BUILD_RDEV_FALSE@ +BUILD_RDEV_TRUE = @BUILD_RDEV_TRUE@ +BUILD_RENAME_FALSE = @BUILD_RENAME_FALSE@ +BUILD_RENAME_TRUE = @BUILD_RENAME_TRUE@ +BUILD_RESET_FALSE = @BUILD_RESET_FALSE@ +BUILD_RESET_TRUE = @BUILD_RESET_TRUE@ +BUILD_SCHEDUTILS_FALSE = @BUILD_SCHEDUTILS_FALSE@ +BUILD_SCHEDUTILS_TRUE = @BUILD_SCHEDUTILS_TRUE@ +BUILD_WALL_FALSE = @BUILD_WALL_FALSE@ +BUILD_WALL_TRUE = @BUILD_WALL_TRUE@ +BUILD_WRITE_FALSE = @BUILD_WRITE_FALSE@ +BUILD_WRITE_TRUE = @BUILD_WRITE_TRUE@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ +DEPDIR = @DEPDIR@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GMSGFMT = @GMSGFMT@ +HAVE_BLKID_FALSE = @HAVE_BLKID_FALSE@ +HAVE_BLKID_TRUE = @HAVE_BLKID_TRUE@ +HAVE_LIBUTIL_FALSE = @HAVE_LIBUTIL_FALSE@ +HAVE_LIBUTIL_TRUE = @HAVE_LIBUTIL_TRUE@ +HAVE_NCURSES_FALSE = @HAVE_NCURSES_FALSE@ +HAVE_NCURSES_TRUE = @HAVE_NCURSES_TRUE@ +HAVE_PAM_FALSE = @HAVE_PAM_FALSE@ +HAVE_PAM_TRUE = @HAVE_PAM_TRUE@ +HAVE_PIVOT_ROOT_FALSE = @HAVE_PIVOT_ROOT_FALSE@ +HAVE_PIVOT_ROOT_TRUE = @HAVE_PIVOT_ROOT_TRUE@ +HAVE_RAW_FALSE = @HAVE_RAW_FALSE@ +HAVE_RAW_TRUE = @HAVE_RAW_TRUE@ +HAVE_SELINUX_FALSE = @HAVE_SELINUX_FALSE@ +HAVE_SELINUX_TRUE = @HAVE_SELINUX_TRUE@ +HAVE_TERMCAP_FALSE = @HAVE_TERMCAP_FALSE@ +HAVE_TERMCAP_TRUE = @HAVE_TERMCAP_TRUE@ +HAVE_UUID_FALSE = @HAVE_UUID_FALSE@ +HAVE_UUID_TRUE = @HAVE_UUID_TRUE@ +HAVE_ZLIB_FALSE = @HAVE_ZLIB_FALSE@ +HAVE_ZLIB_TRUE = @HAVE_ZLIB_TRUE@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTEL_FALSE = @INTEL_FALSE@ +INTEL_TRUE = @INTEL_TRUE@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NEED_LIBCRYPT_FALSE = @NEED_LIBCRYPT_FALSE@ +NEED_LIBCRYPT_TRUE = @NEED_LIBCRYPT_TRUE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +POSUB = @POSUB@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SPARC_FALSE = @SPARC_FALSE@ +SPARC_TRUE = @SPARC_TRUE@ +STRIP = @STRIP@ +USE_NLS = @USE_NLS@ +USE_SLANG_FALSE = @USE_SLANG_FALSE@ +USE_SLANG_TRUE = @USE_SLANG_TRUE@ +USE_TTY_GROUP_FALSE = @USE_TTY_GROUP_FALSE@ +USE_TTY_GROUP_TRUE = @USE_TTY_GROUP_TRUE@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = $(prefix)/usr/share +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = $(datadir)/info +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = $(datadir)/man +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +usrbindir = $(prefix)/usr/bin +usrsbindir = $(prefix)/usr/sbin +AM_CPPFLAGS = -include ../config.h -I$(top_srcdir)/include +DEFAULT_INCLUDES = +mcookie_LDADD = $(top_srcdir)/lib/libmd5.la +usrbin_SCRIPTS = chkdupexe scriptreplay $(am__append_7) +CLEANFILES = chkdupexe scriptreplay +man_MANS = cal.1 chkdupexe.1 ddate.1 logger.1 look.1 mcookie.1 namei.1 \ + script.1 whereis.1 $(am__append_2) $(am__append_4) \ + $(am__append_6) $(am__append_8) $(am__append_10) +@HAVE_NCURSES_FALSE@@HAVE_TERMCAP_TRUE@cal_LDADD = -ltermcap +@HAVE_NCURSES_TRUE@cal_LDADD = -lncurses +@HAVE_LIBUTIL_TRUE@script_LDADD = -lutil +@HAVE_NCURSES_TRUE@setterm_LDADD = -lncurses +@BUILD_KILL_TRUE@kill_SOURCES = kill.c procs.c +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/config/include-Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign misc-utils/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign misc-utils/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done + +installcheck-binPROGRAMS: $(bin_PROGRAMS) + bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \ + case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \ + *" $$p "* | *" $(srcdir)/$$p "*) continue;; \ + esac; \ + f=`echo "$$p" | \ + sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + for opt in --help --version; do \ + if "$(DESTDIR)$(bindir)/$$f" $$opt >c$${pid}_.out \ + 2>c$${pid}_.err </dev/null \ + && test -n "`cat c$${pid}_.out`" \ + && test -z "`cat c$${pid}_.err`"; then :; \ + else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ + done; \ + done; rm -f c$${pid}_.???; exit $$bad +install-usrbinPROGRAMS: $(usrbin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(usrbindir)" || $(mkdir_p) "$(DESTDIR)$(usrbindir)" + @list='$(usrbin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(usrbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(usrbindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(usrbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(usrbindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-usrbinPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(usrbin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(usrbindir)/$$f'"; \ + rm -f "$(DESTDIR)$(usrbindir)/$$f"; \ + done + +clean-usrbinPROGRAMS: + @list='$(usrbin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done + +installcheck-usrbinPROGRAMS: $(usrbin_PROGRAMS) + bad=0; pid=$$$$; list="$(usrbin_PROGRAMS)"; for p in $$list; do \ + case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \ + *" $$p "* | *" $(srcdir)/$$p "*) continue;; \ + esac; \ + f=`echo "$$p" | \ + sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + for opt in --help --version; do \ + if "$(DESTDIR)$(usrbindir)/$$f" $$opt >c$${pid}_.out \ + 2>c$${pid}_.err </dev/null \ + && test -n "`cat c$${pid}_.out`" \ + && test -z "`cat c$${pid}_.err`"; then :; \ + else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ + done; \ + done; rm -f c$${pid}_.???; exit $$bad +cal$(EXEEXT): $(cal_OBJECTS) $(cal_DEPENDENCIES) + @rm -f cal$(EXEEXT) + $(LINK) $(cal_LDFLAGS) $(cal_OBJECTS) $(cal_LDADD) $(LIBS) +ddate$(EXEEXT): $(ddate_OBJECTS) $(ddate_DEPENDENCIES) + @rm -f ddate$(EXEEXT) + $(LINK) $(ddate_LDFLAGS) $(ddate_OBJECTS) $(ddate_LDADD) $(LIBS) +kill$(EXEEXT): $(kill_OBJECTS) $(kill_DEPENDENCIES) + @rm -f kill$(EXEEXT) + $(LINK) $(kill_LDFLAGS) $(kill_OBJECTS) $(kill_LDADD) $(LIBS) +logger$(EXEEXT): $(logger_OBJECTS) $(logger_DEPENDENCIES) + @rm -f logger$(EXEEXT) + $(LINK) $(logger_LDFLAGS) $(logger_OBJECTS) $(logger_LDADD) $(LIBS) +look$(EXEEXT): $(look_OBJECTS) $(look_DEPENDENCIES) + @rm -f look$(EXEEXT) + $(LINK) $(look_LDFLAGS) $(look_OBJECTS) $(look_LDADD) $(LIBS) +mcookie$(EXEEXT): $(mcookie_OBJECTS) $(mcookie_DEPENDENCIES) + @rm -f mcookie$(EXEEXT) + $(LINK) $(mcookie_LDFLAGS) $(mcookie_OBJECTS) $(mcookie_LDADD) $(LIBS) +namei$(EXEEXT): $(namei_OBJECTS) $(namei_DEPENDENCIES) + @rm -f namei$(EXEEXT) + $(LINK) $(namei_LDFLAGS) $(namei_OBJECTS) $(namei_LDADD) $(LIBS) +rename$(EXEEXT): $(rename_OBJECTS) $(rename_DEPENDENCIES) + @rm -f rename$(EXEEXT) + $(LINK) $(rename_LDFLAGS) $(rename_OBJECTS) $(rename_LDADD) $(LIBS) +script$(EXEEXT): $(script_OBJECTS) $(script_DEPENDENCIES) + @rm -f script$(EXEEXT) + $(LINK) $(script_LDFLAGS) $(script_OBJECTS) $(script_LDADD) $(LIBS) +setterm$(EXEEXT): $(setterm_OBJECTS) $(setterm_DEPENDENCIES) + @rm -f setterm$(EXEEXT) + $(LINK) $(setterm_LDFLAGS) $(setterm_OBJECTS) $(setterm_LDADD) $(LIBS) +whereis$(EXEEXT): $(whereis_OBJECTS) $(whereis_DEPENDENCIES) + @rm -f whereis$(EXEEXT) + $(LINK) $(whereis_LDFLAGS) $(whereis_OBJECTS) $(whereis_LDADD) $(LIBS) +write$(EXEEXT): $(write_OBJECTS) $(write_DEPENDENCIES) + @rm -f write$(EXEEXT) + $(LINK) $(write_LDFLAGS) $(write_OBJECTS) $(write_LDADD) $(LIBS) +install-usrbinSCRIPTS: $(usrbin_SCRIPTS) + @$(NORMAL_INSTALL) + test -z "$(usrbindir)" || $(mkdir_p) "$(DESTDIR)$(usrbindir)" + @list='$(usrbin_SCRIPTS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + if test -f $$d$$p; then \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " $(usrbinSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(usrbindir)/$$f'"; \ + $(usrbinSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(usrbindir)/$$f"; \ + else :; fi; \ + done + +uninstall-usrbinSCRIPTS: + @$(NORMAL_UNINSTALL) + @list='$(usrbin_SCRIPTS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " rm -f '$(DESTDIR)$(usrbindir)/$$f'"; \ + rm -f "$(DESTDIR)$(usrbindir)/$$f"; \ + done + +installcheck-usrbinSCRIPTS: $(usrbin_SCRIPTS) + bad=0; pid=$$$$; list="$(usrbin_SCRIPTS)"; for p in $$list; do \ + case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \ + *" $$p "* | *" $(srcdir)/$$p "*) continue;; \ + esac; \ + f=`echo "$$p" | sed 's,^.*/,,;$(transform)'`; \ + for opt in --help --version; do \ + if "$(DESTDIR)$(usrbindir)/$$f" $$opt >c$${pid}_.out \ + 2>c$${pid}_.err </dev/null \ + && test -n "`cat c$${pid}_.out`" \ + && test -z "`cat c$${pid}_.err`"; then :; \ + else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \ + done; \ + done; rm -f c$${pid}_.???; exit $$bad + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cal.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ddate.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kill.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logger.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/look.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mcookie.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/namei.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/procs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rename.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/script.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setterm.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/whereis.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/write.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-man1: $(man1_MANS) $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.1*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ + else file=$$i; fi; \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 1*) ;; \ + *) ext='1' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ + done +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.1*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 1*) ;; \ + *) ext='1' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ + rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(mkdir_p) $(distdir)/../config + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(MANS) +installdirs: + for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(usrbindir)" "$(DESTDIR)$(usrbindir)" "$(DESTDIR)$(man1dir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +@BUILD_WRITE_FALSE@install-data-hook: +@USE_TTY_GROUP_FALSE@install-data-hook: +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool \ + clean-usrbinPROGRAMS mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-man install-usrbinPROGRAMS \ + install-usrbinSCRIPTS + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-data-hook + +install-exec-am: install-binPROGRAMS + +install-info: install-info-am + +install-man: install-man1 + +installcheck-am: installcheck-binPROGRAMS installcheck-usrbinPROGRAMS \ + installcheck-usrbinSCRIPTS + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-man \ + uninstall-usrbinPROGRAMS uninstall-usrbinSCRIPTS + +uninstall-man: uninstall-man1 + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool clean-usrbinPROGRAMS ctags \ + distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-binPROGRAMS \ + install-data install-data-am install-data-hook install-exec \ + install-exec-am install-info install-info-am install-man \ + install-man1 install-strip install-usrbinPROGRAMS \ + install-usrbinSCRIPTS installcheck installcheck-am \ + installcheck-binPROGRAMS installcheck-usrbinPROGRAMS \ + installcheck-usrbinSCRIPTS installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-binPROGRAMS \ + uninstall-info-am uninstall-man uninstall-man1 \ + uninstall-usrbinPROGRAMS uninstall-usrbinSCRIPTS + + +chkdupexe: chkdupexe.pl + sed -e 's,[@]PERL[@],$(PERL),g' < chkdupexe.pl > chkdupexe + +scriptreplay: scriptreplay.pl + sed -e 's,[@]PERL[@],$(PERL),g' < scriptreplay.pl > scriptreplay + +@BUILD_WRITE_TRUE@@USE_TTY_GROUP_TRUE@install-data-hook:: +@BUILD_WRITE_TRUE@@USE_TTY_GROUP_TRUE@ chgrp tty $(DESTDIR)$(usrbindir)/write +@BUILD_WRITE_TRUE@@USE_TTY_GROUP_TRUE@ chmod g+s $(DESTDIR)$(usrbindir)/write +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/misc-utils/cal.c b/misc-utils/cal.c index 83015ea96..c55777a73 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -66,15 +66,15 @@ #include <locale.h> #include "errs.h" #include "nls.h" -#include "../defines.h" -#if defined(HAVE_ncurses) +#if defined(HAVE_NCURSES) -#if NCH +#ifdef HAVE_NCURSES_H #include <ncurses.h> -#else -#include <curses.h> +#elif defined(HAVE_NCURSES_NCURSES_H) +#include <ncurses/ncurses.h> #endif + #include <term.h> /* include after <curses.h> */ static void @@ -92,7 +92,7 @@ my_tgetstr(char *s, char *ss) { return tigetstr(ss); } -#elif defined(HAVE_termcap) +#elif defined(HAVE_LIBTERMCAP) #include <termcap.h> @@ -119,7 +119,7 @@ my_tgetstr(char *s, char *ss) { const char *term=""; const char *Senter="", *Sexit="";/* enter and exit standout mode */ -#ifdef HAVE_langinfo_h +#ifdef HAVE_LANGINFO_H # include <langinfo.h> #else # include <localeinfo.h> /* libc4 only */ @@ -255,7 +255,7 @@ main(int argc, char **argv) { bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); -#if defined(HAVE_ncurses) || defined(HAVE_termcap) +#if defined(HAVE_NCURSES) || defined(HAVE_LIBTERMCAP) if ((term = getenv("TERM"))) { int ret; my_setupterm(term, 1, &ret); @@ -283,7 +283,7 @@ main(int argc, char **argv) { * At some future time this may become -s for Sunday, -m for Monday, * no option for glibc-determined locale-dependent version. */ -#ifdef HAVE_langinfo_h +#ifdef HAVE_LANGINFO_H week1stday = (int)(nl_langinfo(_NL_TIME_FIRST_WEEKDAY))[0]; #endif #endif @@ -310,8 +310,8 @@ main(int argc, char **argv) { yflag = 1; break; case 'V': - printf(_("%s from %s\n"), - progname, util_linux_version); + printf(_("%s from %s%s\n"), + progname, "util-linux-", VERSION); return 0; case '?': default: @@ -378,7 +378,7 @@ void headers_init(void) wcscpy(j_day_headings_wc,L""); #endif -#ifdef HAVE_langinfo_h +#ifdef HAVE_LANGINFO_H # define weekday(wd) nl_langinfo(ABDAY_1+wd) #else # define weekday(wd) _time_info->abbrev_wkday[wd] @@ -414,7 +414,7 @@ void headers_init(void) #undef weekday for (i = 0; i < 12; i++) { -#ifdef HAVE_langinfo_h +#ifdef HAVE_LANGINFO_H full_month[i] = nl_langinfo(MON_1+i); #else full_month[i] = _time_info->full_month[i]; @@ -457,7 +457,7 @@ monthly(int day, int month, int year) { do_monthly(day, month, year, &out); for (i = 0; i < FMT_ST_LINES; i++) { -#if defined(HAVE_ncurses) || defined(HAVE_termcap) +#if defined(HAVE_NCURSES) || defined(HAVE_LIBTERMCAP) my_putstring(out.s[i]);putchar('\n'); #else puts(out.s[i]); @@ -502,7 +502,7 @@ monthly3(int day, int month, int year) { width, out_prev.s[i], width, out_curm.s[i], width, out_next.s[i]); -#if defined(HAVE_ncurses) || defined(HAVE_termcap) +#if defined(HAVE_NCURSES) || defined(HAVE_LIBTERMCAP) my_putstring(lineout); #else fputs(lineout,stdout); @@ -539,7 +539,7 @@ j_yearly(int day, int year) { } *p = '\0'; trim_trailing_spaces(lineout); -#if defined(HAVE_ncurses) || defined(HAVE_termcap) +#if defined(HAVE_NCURSES) || defined(HAVE_LIBTERMCAP) my_putstring(lineout);putchar('\n'); #else puts(lineout); @@ -579,7 +579,7 @@ yearly(int day, int year) { } *p = '\0'; trim_trailing_spaces(lineout); -#if defined(HAVE_ncurses) || defined(HAVE_termcap) +#if defined(HAVE_NCURSES) || defined(HAVE_LIBTERMCAP) my_putstring(lineout);putchar('\n'); #else puts(lineout); diff --git a/misc-utils/chkdupexe.pl b/misc-utils/chkdupexe.pl index e5fae6847..c2c238497 100755 --- a/misc-utils/chkdupexe.pl +++ b/misc-utils/chkdupexe.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!@PERL@ -w # # chkdupexe version 2.1.1 # diff --git a/misc-utils/ddate.c b/misc-utils/ddate.c index 4a201a31b..94f1655fe 100644 --- a/misc-utils/ddate.c +++ b/misc-utils/ddate.c @@ -62,7 +62,6 @@ #include <time.h> #include <stdio.h> #include "nls.h" -#include "../defines.h" /* for util-linux-version */ #ifndef __GNUC__ #define inline /* foo */ @@ -177,7 +176,7 @@ main (int argc, char *argv[]) { case '-': switch(argv[pi][1]) { case 'V': - printf(_("%s from %s\n"), progname, util_linux_version); + printf(_("%s from %s%s\n"), progname, "util-linux-", VERSION); default: goto usage; } default: goto thud; diff --git a/misc-utils/kill.c b/misc-utils/kill.c index 46c2f66a1..824735b4a 100644 --- a/misc-utils/kill.c +++ b/misc-utils/kill.c @@ -186,7 +186,7 @@ int main (int argc, char *argv[]) } if (! strcmp (arg, "-v") || ! strcmp (arg, "-V") || ! strcmp (arg, "--version")) { - printf(_("%s from %s\n"), progname, util_linux_version); + printf(_("%s from %s%s\n"), progname, "util-linux-", VERSION); return 0; } if (! strcmp (arg, "-a")) { diff --git a/misc-utils/mcookie.c b/misc-utils/mcookie.c index e550bec6a..dee26c560 100644 --- a/misc-utils/mcookie.c +++ b/misc-utils/mcookie.c @@ -28,7 +28,7 @@ #include <stdlib.h> #include <fcntl.h> #include "md5.h" -#if HAVE_GETTIMEOFDAY +#ifdef HAVE_GETTIMEOFDAY #include <sys/time.h> #include <unistd.h> #endif @@ -79,7 +79,7 @@ int main( int argc, char **argv ) pid_t pid; char *file = NULL; int r; -#if HAVE_GETTIMEOFDAY +#ifdef HAVE_GETTIMEOFDAY struct timeval tv; struct timezone tz; #else @@ -98,7 +98,7 @@ int main( int argc, char **argv ) MD5Init( &ctx ); -#if HAVE_GETTIMEOFDAY +#ifdef HAVE_GETTIMEOFDAY gettimeofday( &tv, &tz ); MD5Update( &ctx, (unsigned char *)&tv, sizeof( tv ) ); #else diff --git a/misc-utils/rename.c b/misc-utils/rename.c index 05f8f19b2..5f96510d9 100644 --- a/misc-utils/rename.c +++ b/misc-utils/rename.c @@ -76,8 +76,8 @@ main(int argc, char **argv) { if (argc == 2) { if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) { - printf(_("%s from %s\n"), - progname, util_linux_version); + printf(_("%s from %s%s\n"), + progname, "util-linux-", VERSION); return 0; } } diff --git a/misc-utils/reset.sh b/misc-utils/reset index 92d253907..92d253907 100644 --- a/misc-utils/reset.sh +++ b/misc-utils/reset diff --git a/misc-utils/script.1 b/misc-utils/script.1 index cdd6af0ec..6a9a5bad4 100644 --- a/misc-utils/script.1 +++ b/misc-utils/script.1 @@ -81,7 +81,7 @@ supervise real-time what is being done using `cat foo'. .It Fl q Be quiet. .It Fl t -Output timeing data to standard error. This data contains two fields, +Output timing data to standard error. This data contains two fields, separated by a space. The first field indicates how much time elapsed since the previous output. The second field indicates how many characters were output this time. This information can be used to replay typescripts with diff --git a/misc-utils/script.c b/misc-utils/script.c index 81747a619..f5e01f676 100644 --- a/misc-utils/script.c +++ b/misc-utils/script.c @@ -59,8 +59,7 @@ #include <string.h> #endif -#include "../defines.h" -#ifdef HAVE_openpty +#ifdef HAVE_LIBUTIL #include <pty.h> #endif @@ -87,7 +86,7 @@ struct termios tt; struct winsize win; int lb; int l; -#ifndef HAVE_openpty +#ifndef HAVE_LIBUTIL char line[] = "/dev/ptyXX"; #endif int aflg = 0; @@ -140,8 +139,8 @@ main(int argc, char **argv) { if (argc == 2) { if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) { - printf(_("%s from %s\n"), - progname, util_linux_version); + printf(_("%s from %s%s\n"), + progname, "util-linux-", VERSION); return 0; } } @@ -270,7 +269,7 @@ dooutput() { double oldtime=time(NULL), newtime; (void) close(0); -#ifdef HAVE_openpty +#ifdef HAVE_LIBUTIL (void) close(slave); #endif tvec = time((time_t *)NULL); @@ -373,7 +372,7 @@ done() { void getmaster() { -#ifdef HAVE_openpty +#ifdef HAVE_LIBUTIL (void) tcgetattr(0, &tt); (void) ioctl(0, TIOCGWINSZ, (char *)&win); if (openpty(&master, &slave, NULL, &tt, &win) < 0) { @@ -413,12 +412,12 @@ getmaster() { } fprintf(stderr, _("Out of pty's\n")); fail(); -#endif /* not HAVE_openpty */ +#endif /* not HAVE_LIBUTIL */ } void getslave() { -#ifndef HAVE_openpty +#ifndef HAVE_LIBUTIL line[strlen("/dev/")] = 't'; slave = open(line, O_RDWR); if (slave < 0) { diff --git a/misc-utils/scriptreplay.pl b/misc-utils/scriptreplay.pl index ea72b1f3e..b445f6d61 100755 --- a/misc-utils/scriptreplay.pl +++ b/misc-utils/scriptreplay.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!@PERL@ -w # "script -t" will output a typescript with timings # this script "scriptreplay" replays it diff --git a/misc-utils/setterm.c b/misc-utils/setterm.c index f83adf036..0a2f44c2d 100644 --- a/misc-utils/setterm.c +++ b/misc-utils/setterm.c @@ -102,11 +102,13 @@ #define NCURSES_CONST const /* define before including term.h */ #endif #include <term.h> -#if NCH + +#ifdef HAVE_NCURSES_H #include <ncurses.h> -#else -#include <curses.h> +#elif defined(HAVE_NCURSES_NCURSES_H) +#include <ncurses/ncurses.h> #endif + #include <sys/param.h> /* for MAXPATHLEN */ #include <sys/ioctl.h> #include <sys/time.h> diff --git a/misc-utils/sparc-solaris-hostid.sh b/misc-utils/sparc-solaris-hostid.sh deleted file mode 100755 index 7ce28ac5e..000000000 --- a/misc-utils/sparc-solaris-hostid.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# This script reproduces the output of the Solaris hostid program. -# It might be put in /usr/bin/hostid or so. -# Note that the hostid program does not have any known uses -# and does not exist on other architectures. -# Copyright 1999 Peter Jones, <pjones@redhat.com> . -# GPL and all that good stuff apply. -( -idprom=`cat /proc/openprom/idprom` -echo $idprom|dd bs=1 skip=2 count=2 -echo $idprom|dd bs=1 skip=27 count=6 -echo -) 2>/dev/null |