ADDED HEADER Index: HEADER ================================================================== --- HEADER +++ HEADER @@ -0,0 +1,8 @@ + @@UTIL@@ @@VERS@@ + +Release information: + pkg: @@UTIL@@ version @@VERS@@ + url: http://www.rkeene.org/devel/@@UTIL@@-@@VERS@@.tar.gz + date: @@DATE@@ +-------------------------------------------------------------------------- + Index: Makefile.in ================================================================== --- Makefile.in +++ Makefile.in @@ -7,11 +7,11 @@ # # @(#) $Id: ctk.shar,v 1.50 1996/01/15 14:47:16 andrewm Exp andrewm $ # Current CTk version; used in various names. -VERSION = 8.0 +VERSION = @PACKAGE_VERSION@ #---------------------------------------------------------------- # Things you can change to personalize the Makefile for your own # site (you can make these changes in either Makefile.in or # Makefile, but changes to Makefile will get lost if you re-run @@ -181,32 +181,26 @@ libctk.@SHOBJEXT@: $(OBJS) rm -f libctk.@SHOBJEXT@ $(CC) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o libctk.@SHOBJEXT@ $(OBJS) $(LIBS) -configInfo: Makefile - @rm -f configInfo - @echo "# Definitions and libraries needed to build Tk applications" >> configInfo - @echo "# (generated by the configure script):" >> configInfo - @echo "TK_CC_SWITCHES = ${AC_FLAGS} ${MEM_DEBUG_FLAGS}" >> configInfo - @echo "TK_LIBS = @LIBS@" >> configInfo - install: install-binaries install-libraries install-demos install-man -install-binaries: libctk.a +install-binaries: @TARGETS@ @for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ mkdir $$i; \ chmod 755 $$i; \ else true; \ fi; \ done; - @echo "Installing libctk.a" - @$(INSTALL_DATA) libctk.a $(LIB_INSTALL_DIR) - @$(RANLIB) $(LIB_INSTALL_DIR)/libctk.a + @for target in @TARGETS@; do + echo "Installing $${target}"; \ + $(INSTALL_DATA) $${target} $(LIB_INSTALL_DIR); \ + done install-libraries: @for i in $(INSTALL_ROOT)$(prefix)/lib $(INCLUDE_INSTALL_DIR) \ $(SCRIPT_INSTALL_DIR) ; \ do \ @@ -267,11 +261,11 @@ Makefile: $(SRC_DIR)/Makefile.in $(SHELL) config.status clean: - rm -f libctk.a libctk.so + rm -f libctk.a libctk.@SHOBJEXT@ rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors tktest cwish$(VERSION) \ config.info distclean: clean rm -f Makefile config.status config.log pkgIndex.tcl @@ -280,52 +274,6 @@ makedepend -- $(CC_SWITCHES) -- $(SRCS) .c.o: $(CC) -c $(CC_SWITCHES) $< -# -# Target to check for proper usage of UCHAR macro. -# - -checkuchar: - -egrep isalnum\|isalpha\|iscntrl\|isdigit\|islower\|isprint\|ispunct\|isspace\|isupper\|isxdigit $(SRCS) | grep -v UCHAR - -# -# Target to make sure that only symbols with "Tk" or "Ctk" prefixes are -# exported. -# - -checkexports: libctk.a - -nm -p libctk.a | awk '$$2 ~ /[TDB]/ { print $$3 }' | sort -n | grep -v '^[Cc]?[Tt]k' - -# -# Target to create a proper Tk distribution from information in the -# master source directory. DISTDIR must be defined to indicate where -# to put the distribution. -# - -configure: configure.in - autoconf -dist: configure - rm -rf $(DISTDIR) - mkdir $(DISTDIR) - cp license.terms Makefile.in $(DISTDIR) - chmod 664 $(DISTDIR)/Makefile.in - cp -p $(SRCS) $(HDRS) $(DISTDIR) - mkdir $(DISTDIR)/compat - cp -p license.terms compat/unistd.h compat/stdlib.h $(DISTDIR)/compat - cp -p README README.TERM ToDo changes porting.notes *.1 $(DISTDIR) - cp -p configure configure.in install-sh $(DISTDIR) - chmod 775 $(DISTDIR)/configure $(DISTDIR)/configure.in - chmod +x $(DISTDIR)/install-sh - mkdir $(DISTDIR)/library - cp -p license.terms library/*.tcl library/tclIndex $(DISTDIR)/library - mkdir $(DISTDIR)/library/demos - cp -pr library/demos/widget library/demos/README \ - license.terms $(DISTDIR)/library/demos - -mci_args: - @echo ctk README README.TERM ToDo changes porting.notes license.terms \ - Makefile.in configure.in install-sh \ - $(SRCS) $(HDRS) compat library - # DO NOT DELETE THIS LINE -- make depend depends on it. DELETED autogen.sh Index: autogen.sh ================================================================== --- autogen.sh +++ autogen.sh @@ -1,7 +0,0 @@ -#! /bin/bash - -cat aclocal/*.m4 > aclocal.m4 || exit 1 -autoconf || exit 1 -rm -rf autom4te.cache/ - -exit 0 ADDED build/autogen.sh Index: build/autogen.sh ================================================================== --- build/autogen.sh +++ build/autogen.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +cat aclocal/*.m4 > aclocal.m4 || exit 1 +autoconf || exit 1 +rm -rf autom4te.cache/ + +exit 0 ADDED build/makearch.info Index: build/makearch.info ================================================================== --- build/makearch.info +++ build/makearch.info @@ -0,0 +1,43 @@ +# This is the name of the utility, it will be prefixed to the tarball name +UTIL="ctk" + +# This is the name of output files that should exist after configure +# procedures. +BINS="libctk.so" + +# This lists the name of files that are required to exist +REQS="" + +# Version of utility, if empty it will be guessed. +# If set to "auto" it will be maintained in a file called .version +# in the source directory and the revision will be incremented +# each time a "makearch" is done. +# +# If @@SVNLCR@@ is used anywhere in this version number, it will be +# replaced with the highest last-changed-rev from the output of +# svn info -R (or 0) +VERS="8.0.@@SVNLCR@@" + +# Space sperated list of documents, if they exist, they will be +# prefixed with the contents of the DOC_HDR file and substitution +# will occur: +# @@UTIL@@ becomes the utility name ${UTIL} +# @@VERS@@ becomes the utility version +# @@DATE@@ becomes the current date +DOCS="README" +DOC_HDR="HEADER" + +# These files follow the same convention as DOCS, but don't have the header +# tacked onto them. +UPDATE_VARS="configure.ac" + +# This script is executed immediately after copying the files +# to a temp directory to attempt to compile +BEFORE="build/autogen.sh" + +# This script is executed immediately prior to creation of the +# tarball +AFTER="" + +# Files matching these (space-seperated) patterns are deleted +TMPS="*.out HEADER build" Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -1,7 +1,7 @@ dnl Define ourselves -AC_INIT(ctk, 8.2) +AC_INIT(ctk, @@VERS@@) dnl Checks for programs. AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_INSTALL