From bf8964aac761cb7ef3daac0f9c2aec3136f980a8 Mon Sep 17 00:00:00 2001 From: Rick L Bird Date: Sun, 17 Apr 2011 18:24:11 -0400 Subject: [PATCH] Missing files in relation to Issue Refs #240 --- config.h.in | 376 +++++++++++++++++++++++++++++++++++++++++ game/txt/compose.sh.in | 51 ++++++ 2 files changed, 427 insertions(+) create mode 100644 config.h.in create mode 100644 game/txt/compose.sh.in diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..f6b09a3 --- /dev/null +++ b/config.h.in @@ -0,0 +1,376 @@ +/* PennMUSH config.h. Autogenerated by ./configure */ + +#ifndef __CONFIG_H +#define __CONFIG_H + +/* Headers */ + +/* What needs this? */ +#undef I_ARPA_INET + +/* What needs this? */ +#undef I_ARPA_NAMESER + +#undef I_FCNTL + +#undef I_FLOATINGPOINT + +#undef I_LIBINTL + +/* Get rid of this */ +#undef I_MALLOC + +#undef I_NETDB + +#undef I_NETINET_IN + +#undef I_NETINET_TCP + +#undef I_SYS_ERRNO + +#undef I_SYS_FILE + +#undef I_SYS_IN + +#undef I_SYS_MMAN + +#undef I_SYS_PAGE + +#undef I_SYS_PARAM + +#undef I_SYS_SOCKET + +#undef I_SYS_STAT + +#undef I_SYS_TIME + +#undef TIME_WITH_SYS_TIME + +#undef I_SYS_TYPES + +#undef HAVE_UNISTD_H + +#ifdef HAVE_UNISTD_H +#define I_UNISTD +#endif + +#undef HAVE_SYS_WAIT_H + +#undef HAVE_IEEEFP_H + +#undef HAVE_SYS_UN_H + +#undef HAVE_SYS_RESOURCE_H + +#undef HAVE_SYS_EVENT_H + +#undef HAVE_SYS_UIO_H + +#undef HAVE_POLL_H + +#undef HAVE_SYS_EPOLL_H + +#undef HAVE_SYS_SELECT_H + +#undef HAVE_SYS_INOTIFY_H + +#undef HAVE_FAM_H + +#undef HAVE_LIBFAM + +/* C99ish headers. The first two are really really nice to have. */ + +#undef HAVE_STDINT_H + +#undef HAVE_INTTYPES_H + +#undef HAVE_STDBOOL_H + +/* Libraries */ + +#undef HAVE_MYSQL + +#undef HAVE_POSTGRESQL + +#undef HAVE_SQLITE3 + +#undef HAVE_SSL + +#ifdef HAVE_SSL +#define HAS_OPENSSL +#endif + +#undef HAVE_PCRE + +/* Types */ + +#undef HAVE__BOOL + +#undef ssize_t + +/* Should be in */ +#undef socklen_t + +#undef pid_t + +/* All of these are in if present. Otherwise autoconf + guesses. */ + +#undef uint8_t + +#undef uint16_t + +#undef int32_t + +#undef uint32_t + +#undef int64_t + +#undef uint64_t + +/* Type of the largest int type */ +#undef intmax_t + +#undef uintmax_t + +/* 4 */ +#undef SIZEOF_INT + +/* 4 or 8 */ +#undef SIZEOF_LONG + +/* 0 if no 64-bit type (We shouldn't be seeing that case) or 8. See below. */ +#undef SIZEOF_INT64_T + +/* 8 on most modern CPUs Penn will be used on. They either have 64-bit +* words (amd64, sparc64, powerpc64) or support an extended 64-bit type (i386, +* powerpc32) */ +#undef SIZEOF_INTMAX_T + +#undef SIZEOF_TIME_T + +/* 4 or 8 */ +#undef SIZEOF_VOID_P + +/* Taken from autoconf manual */ +#if HAVE_STDBOOL_H +# include +#else +# if ! HAVE__BOOL +# ifdef __cplusplus +typedef bool _Bool; +# else +# define _Bool signed char +# endif +# endif +# define bool _Bool +# define false 0 +# define true 1 +# define __bool_true_false_are_defined 1 +#endif + +/* Someday work to get rid of these. They're left over from the +pre-void days */ +typedef void* Malloc_t; +typedef void Free_t; + +/* Functions */ +#undef HAS_BINDTEXTDOMAIN + +#undef HAVE_CBRT + +#undef HAVE_LOG2 + +#undef HAVE_ROUND + +#undef HAS_CRYPT + +#undef HAVE_FPSETMASK + +#undef HAVE_FPSETROUND + +#undef HAVE_ISNORMAL + +#undef HAS_GAI_STRERROR + +#undef HAS_GETADDRINFO + +#undef HAS_GETDATE + +#undef HAS_GETHOSTBYNAME2 + +#undef HAS_GETNAMEINFO + +#undef HAS_GETPAGESIZE + +#undef HAS_GETRLIMIT + +#undef HAS_GETRUSAGE + +#undef HAVE_GETTEXT + +#undef HAS_INET_PTON + +#undef HAS_ITIMER + +#undef HAS_SETLOCALE + +#undef HAVE_FORK + +#undef HAVE_SETPGRP + +#undef HAVE_SETSID + +#undef HAVE_SETPGID + +#undef SETPGRP_VOID + +#undef HAVE_GETUID + +#undef HAVE_GETEUID + +#undef HAVE_SETEUID + +#undef HAVE_GETPRIORITY + +#undef HAVE_SETPRIORITY + +#undef HAVE_SIGACTION + +#undef HAVE_SIGPROCMASK + +#undef HAVE_SNPRINTF + +#undef HAVE_SOCKETPAIR + +#undef HAVE_STRCASECMP + +#undef HAVE_STRNCASECMP + +/* Various Windows (And maybe others?) string functions start with _str */ + +#undef HAVE__STRICMP + +#undef HAVE__STRNICMP + +#undef HAVE__STRICOLL + +#undef HAVE__STRNCOLL + +#undef HAVE__STRNICOLL + +#undef HAVE__SNPRINTF + +#undef HAVE__VSNPRINTF + +#undef HAVE__VSNPRINTF_S + + +#undef HAVE_STRDUP + +#undef HAVE_STRCOLL + +#undef HAVE_STRXFRM + +#undef HAS_SYSCONF + +#undef HAS_TEXTDOMAIN + +#undef HAS_VSNPRINTF + +#undef HAVE_WAITPID + +#undef HAVE_WAIT3 + +#undef HAVE_WAIT + +#undef UNION_WAIT + +#undef HAVE_IMAXDIV + +#undef HAVE_GETPID + +#undef HAVE_GETPPID + +#undef HAVE_PSELECT + +#undef HAVE_POLL + +#undef HAVE_PPOLL + +#undef HAVE_POLLTS + +#undef HAVE_KQUEUE + +#undef HAVE_EPOLL_CTL + +#undef HAVE_VALLOC + +#undef HAVE_WRITEV + +#undef HAVE_FCNTL + +#undef HAVE_INOTIFY_INIT + +#ifdef HAVE_INOTIFY_INIT +#define HAVE_INOTIFY +#endif + +#undef HAVE_PREAD + +#undef HAVE_PWRITE + +/* Variables and defines */ + +#undef HAVE_H_ERRNO + +#undef HAVE_SIGCHLD + +#undef HAVE_SIGCLD + +/* Files */ + +#undef HAS_DEV_URANDOM + +/* Misc. */ + +#undef HAVE_SOCKADDR_IN6 + +#undef FORCE_IPV4 + +#undef DONT_TRANSLATE + +#undef HAVE_UPTIME + +/* Path to uptime */ +#undef UPTIME + +#undef HAVE_SENDMAIL + +/* Path to sendmail */ +#undef SENDMAIL + +#undef HAVE_SAFE_TOUPPER + +/* Optional language features */ +#undef restrict +#undef inline + +#ifdef _MSC_VER +#define WIN32_CDECL __cdecl +#else +#define WIN32_CDECL +#endif + +#undef HAVE___ATTRIBUTE__ + +#ifndef HAVE___ATTRIBUTE__ +#define __attribute__(x) +#endif + +#undef GCC_MALLOC_CALL + +/* TODO: Change in source */ +#define RESTRICT restrict + +#endif /* __CONFIG_H */ diff --git a/game/txt/compose.sh.in b/game/txt/compose.sh.in new file mode 100644 index 0000000..f4af1ed --- /dev/null +++ b/game/txt/compose.sh.in @@ -0,0 +1,51 @@ +#!/bin/sh +# +# compose.sh: a shell script for putting together help.txt, etc. +# +# Usage: compose.sh +# Example: compose.sh help +# +# This script calls index-files.pl +# +# By Alan Schwartz (Javelin/Paul) +# + +# These come from Configure +perl=@PERL@ +test=@TEST@ +cat=@CAT@ +rm=@RM@ +echo=@ECHO@ + +# This process can eat CPU, so uncomment if you want to be nice +#/etc/renice +4 $$ + +# What subdirectories should we be processing? +dir=$1 +if $test ! -d $dir; then + $echo "Usage: compose.sh " + exit 0 +fi + +index_args=$2 + +# Ok, let's do 'em: + cd $dir + + # Remove the old index + $rm -f index.$dir + + # Build a new index, and tack it on. + $echo Building index for $dir... + if $test -f $perl; then + $cat *.$dir | tee ../$dir.txt | $perl ../index-files.pl $index_args > index.$dir + $cat index.$dir >> ../$dir.txt + else + $cat *.$dir > ../$dir.txt + fi + + cd .. + +$echo Done. +$echo Remember to use @readcache if the mush is currently running. + -- 2.30.2