Commit 95a4fbe9 authored by Per Cederqvist's avatar Per Cederqvist

Automake now provides this functionality for free, so remove the file.

parent a5cbe48e
#! /bin/bash
# makedist.sh -- build a distribution (use "make dist" to invoke this script).
# $Id: makedist.sh,v 1.8 1996/08/04 02:04:34 ceder Exp $
# Copyright (C) 1994, 1995, 1996 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
#
# LysKOM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# LysKOM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with LysKOM; see the file COPYING. If not, write to
# Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
# or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
# MA 02139, USA.
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
set -e
[ ! -f ${srcdir}/Makefile ]
( cd ${srcdir} && ./mkmi )
$RM -rf lyskom-$(SERVER-VER)
for i in "" /src /src/libraries /doc /scripts; do\
mkdir lyskom-$(SERVER-VER)$i||exit 1;\
done
if [ -f ${srcdir}/README-serverrelease ] ;then \
cp ${srcdir}/README-serverrelease lyskom-$(SERVER-VER)/README;\
else\
cp ${srcdir}/README lyskom-$(SERVER-VER)/README;\
fi
for i in .cvsignore COPYING ChangeLog INSTALL Makefile.in Makefile.src \
NEWS README.FSF aclocal.m4 configure configure.in mkmi versions; \
do cp ${srcdir}/$i lyskom-$(SERVER-VER)/||exit 1; done
cp ${srcdir}/src/Makefile.in lyskom-$(SERVER-VER)/src/
cp ${srcdir}/src/Makefile.src lyskom-$(SERVER-VER)/src/
cp ${srcdir}/src/libraries/Makefile.in \
lyskom-$(SERVER-VER)/src/libraries/
cp ${srcdir}/src/libraries/Makefile.src \
lyskom-$(SERVER-VER)/src/libraries/
for i in ADMINISTRATION Makefile.in misc_items prot-A.txt \
server-async.extend server.extend what-is-unread.swe \
server-config.extend Makefile.src .cvsignore; \
do \
cp ${srcdir}/doc/$i lyskom-$(SERVER-VER)/doc/$i||exit 1;\
done
cp -r ${srcdir}/doc/man lyskom-$(SERVER-VER)/doc/man
$RM -r lyskom-$(SERVER-VER)/doc/man/man?
for i in Makefile.in Makefile.src install-sh makedist.sh \
mkinstalldirs mkmi.m4; do\
cp ${srcdir}/scripts/$i lyskom-$(SERVER-VER)/scripts/||exit 1; \
done
cp -r ${srcdir}/run-support lyskom-$(SERVER-VER)/run-support
for i in libansi libcommon libisc-new libmisc regex .cvsignore gnumalloc; do \
cp -r ${srcdir}/src/libraries/$i \
lyskom-$(SERVER-VER)/src/libraries \
|| exit 1 ; \
done
$RM lyskom-$(SERVER-VER)/src/libraries/libisc-new/src/isc-new.h
$RM lyskom-$(SERVER-VER)/run-support/komrunning
$RM lyskom-$(SERVER-VER)/run-support/savecore
cp -r ${srcdir}/src/server lyskom-$(SERVER-VER)/src
cp ${srcdir}/src/.cvsignore lyskom-$(SERVER-VER)/src/
$RM lyskom-$(SERVER-VER)/src/server/.gdbinit
$RM lyskom-$(SERVER-VER)/src/server/cache-database.h
$RM lyskom-$(SERVER-VER)/src/server/cache-database.c
$RM lyskom-$(SERVER-VER)/src/server/cache.c
$RM lyskom-$(SERVER-VER)/src/server/call-switch.incl
$RM lyskom-$(SERVER-VER)/src/server/com.h
$RM lyskom-$(SERVER-VER)/src/server/lyskomd
$RM lyskom-$(SERVER-VER)/src/server/dbck
$RM lyskom-$(SERVER-VER)/src/server/fnc-def-init.incl
$RM lyskom-$(SERVER-VER)/src/server/fncdef-no-str-limit.txt
$RM lyskom-$(SERVER-VER)/src/server/prot-a-parse-arg.c
$RM lyskom-$(SERVER-VER)/src/server/prot-a-parse-arg.h
$RM lyskom-$(SERVER-VER)/src/server/updateLysKOM
$RM lyskom-$(SERVER-VER)/src/server/version.incl
$RM lyskom-$(SERVER-VER)/src/server/version-info.c
$RM lyskom-$(SERVER-VER)/src/libraries/gnumalloc/Makefile
$RM lyskom-$(SERVER-VER)/src/libraries/gnumalloc/gmalloc.c
cp -r ${srcdir}/src/include lyskom-$(SERVER-VER)/src/include
$RM -r lyskom-$(SERVER-VER)/src/include/ansi
cp -r ${srcdir}/db-crypt lyskom-$(SERVER-VER)
find lyskom-$(SERVER-VER) \
\( -name CVS -o -name '*~' -o -name '#*#' -o -name 'lib*.a' \
-o -name '*.o' -o -name '.#*' -o -name core -o -name '*.orig' \
-o -name Makefile.in2 -o -name 'stamp-*' -o -name 'TAGS' \
-o -name '*.tmp' -o -name 'Makefile' -o -name 'dependencies' \) \
-print -exec rm -rf "{}" \; -prune
tar cvf lyskom-$(SERVER-VER).tar lyskom-$(SERVER-VER)
$RM lyskom-$(SERVER-VER).tar.gz
gzip -9v lyskom-$(SERVER-VER).tar
$RM -r lyskom-$(SERVER-VER)
exit 0
dnl $Id: mkmi.m4,v 1.15 1996/08/25 19:49:36 ceder Exp $
dnl Create Makefile.in from Makefile.src
dnl Copyright (C) 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2, or (at your option)
dnl any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl
dnl Please mail bug reports to bug-lyskom@lysator.liu.se.
dnl
changequote([,])dnl
define([LK_QUOTE],[[[$1]]])dnl
dnl
dnl LK_descend(cmd, deps, localcmd) expands to
dnl
dnl .PHONY: cmd
dnl cmd: deps FORCE
dnl localcmd
dnl [code to perform cmd in $SUBDIRS]
dnl
dnl localcmd should typically be empty or contain commands to perform
dnl cmd in the current directory. All lines in localcmd should begin
dnl with a tab.
dnl
define([LK_descend], [[.PHONY: $1
$1: $2 FORCE
$3 @for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making $1 in directory $$i; \
if (cd ./$$i; $(MAKE) $1); \
then true; else exit 1; fi ; \
else true; fi; \
done
]])dnl
dnl
define([LK_cmd],[[ $1
]])dnl
define([domostlyclean],[LK_cmd([$(RM) $(GENERIC-MOSTLYCLEAN)])])dnl
define([doclean],)dnl
define([dodistclean],[LK_cmd([$(RM) $(GENERIC-DISTCLEAN)])])dnl
define([dorealclean],)dnl
define([dopure],[LK_cmd([$(RM) $(GENERIC-PURE)])])dnl
define([LK_CLEAN],[dnl
[# Output from LK_CLEAN
GENERIC-MOSTLYCLEAN = *.o lib*.a core Makefile.in2 *.tmp $(SCRIPTS) $(PROGRAMS)
GENERIC-PURE = Makefile.in configure
GENERIC-DISTCLEAN = *~ .\#* TAGS dependencies Makefile config.log config.cache]
LK_descend([mostlyclean],[domostlyclean])
LK_descend([clean],[doclean])
LK_descend([distclean],[dodistclean])
LK_descend([realclean],[dorealclean])
LK_descend([pure],[dopure])
[dopure: dorealclean]
dopure
[dorealclean: dodistclean]
dorealclean
[dodistclean: doclean]
dodistclean
[doclean: domostlyclean]
doclean
[domostlyclean:]
domostlyclean
[# End output from LK_CLEAN]]
)dnl End of LK_CLEAN
dnl
define([dodepend],)dnl
define([predepend],)dnl
dnl
define([LK_ALL_C_DEPEND],
[define([dodepend],
[LK_cmd([$(CC) $(DEPENDFLAG) $(ALL_CFLAGS) $(srcdir)/*.c $(C_SPECIALS) \
>dependencies])])dnl
define([predepend],[[$(C_SPECIALS)]])])dnl
dnl
define([LK_DEPEND],[[dependencies:
touch dependencies]
[include dependencies]
LK_descend([depend],predepend,dodepend)])dnl end LK_DEPEND
dnl
define([LK_INSTALL_HDRS],
[[INSTALL-HDRS = $1
HDRS-DIR =$(INCLUDEDIR)$2]
define([doincludes],
[[ test -d $(HDRS-DIR) || $(MKDIR) $(HDRS-DIR)
for i in $(INSTALL-HDRS) ; \
do if ( cmp $(srcdir)/$$i $(HDRS-DIR)/$$i 2>/dev/null ) ; then\
true; else\
$(RM) $(HDRS-DIR)/$$i;\
if $(INSTALL_DATA) $(srcdir)/$$i $(HDRS-DIR)/$$i;\
then true ; else exit 1; fi; fi;\
done
]])dnl end of doincludes
])dnl end of LK_INSTALL_HDRS
dnl
define([preincludes],)dnl
define([LK_INSTALL_BUILT_HDRS],
[[INSTALL-HDRS = $1
HDRS-DIR =$(INCLUDEDIR)$2]
define([preincludes],[[$(INSTALL-HDRS)]])dnl
define([domostlyclean],LK_QUOTE(domostlyclean)LK_cmd([[$(RM) $1]]))dnl
define([doincludes],
[[ test -d $(HDRS-DIR) || $(MKDIR) $(HDRS-DIR)
for i in $(INSTALL-HDRS) ; \
do if ( cmp $$i $(HDRS-DIR)/$$i 2>/dev/null ) ; then\
true; else\
$(RM) $(HDRS-DIR)/$$i;\
if $(INSTALL_DATA) $$i $(HDRS-DIR)/$$i;\
then true ; else exit 1; fi; fi;\
done
]])dnl end of doincludes
])dnl end of LK_INSTALL_BUILT_HDRS
dnl
define([doincludes],)dnl
define([dolibraries],)dnl
define([prelibraries],)dnl
define([LK_STD_LIBS],
[errprint(__file__:__line__:[ Use LK_STD_LIB, not LK_STD_LIB])
m4exit(1)])dnl
define([LK_STD_LIB],
[[LIBNAME = $1
LIBOBJS = $2
EXTRAARFLAGS = @EXTRAARFLAGS@
$(LIBNAME): $(LIBOBJS)
$(AR) $(ARFLAGS) $(EXTRAARFLAGS) $]][[@ $]][[?
$(RANLIB) $]][[@]
define([dolibraries],
[[ $(RM) $(LIBDIR)/$(LIBNAME)
cp $(LIBNAME) $(LIBDIR)/$(LIBNAME)
$(TOUCHLIB) $(LIBDIR)/$(LIBNAME)
]])dnl end of dolibraries
define([prelibraries],[[$(LIBNAME)]])dnl end of prelibraries
])dnl end of LK_STD_LIB
dnl
define([prebinaries],)dnl
define([dobinaries],)dnl
define([preinstall],)dnl
define([doinstall],)dnl
define([LK_DESCEND],dnl
[LK_descend([includes],preincludes,doincludes)
LK_descend([libraries],prelibraries,dolibraries)
LK_descend([binaries],prebinaries,dobinaries)
LK_descend([install],preinstall,doinstall)
LK_DEPEND
LK_CLEAN])dnl end of LK_DESCEND
dnl
define([LK_SCRIPTS],
[[SCRIPTS = $1
]define([dobinaries],
[[ for i in $(SCRIPTS); do \
sed -e s+@ETCDIR@+$(etcdir)+ -e s+@BINDIR@+$(bindir)+ \
$(srcdir)/$$i.sh > $$i;\
chmod +x $$i;\
done
]])dnl end dobinaries
define([doinstall],
[[ for i in $(SCRIPTS); do \
$(INSTALL_PROGRAM) $$i $(bindir); \
done
]])dnl end doinstall
])dnl end LK_SCRIPTS
dnl
dnl LK_STD(alldep)
dnl alldep defaults to libraries
dnl
define([LK_STD],[[# Begin LK_STD
srcdir = @srcdir@
VPATH = @srcdir@
SHELL = /bin/sh
all: $1]ifelse($#,0,[[libraries]])[
AWK = @AWK@
CC = @CC@
CFLAGS = @CFLAGS@
ALL_CFLAGS = @INCLUDE_CURRENT@ -I@srcdir@ -I@BUILDTOPDIR@/include \
$(DEFS) $(CFLAGS)
DEPENDFLAG = @DEPENDFLAG@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LEX = @LEX@
MKDIR = mkdir
PURIFY = @PURIFY@
RANLIB = @RANLIB@
RM = rm -f
SED = @SED@
SYMLINK = @LN_S@
TOUCHLIB = @RANLIB@
YACC = @YACC@
INCLUDEDIR = @BUILDTOPDIR@/include
LIBDIR = @BUILDTOPDIR@/lib
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
dbdir = $(exec_prefix)/db
etcdir = $(exec_prefix)/etc
coredir = $(exec_prefix)/cores
DEFS = @DEFS@
LDFLAGS = @LDFLAGS@
CPPFLAGS = @CPPFLAGS@
SCRIPTDIR = @SRCTOPDIR@/scripts
.c.o:
$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
FORCE:
# END section from LK_STD
]])dnl LK_STD
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment