Changeset - aaedffb71a83
[Not reviewed]
default
0 6 0
ethanzonca - 17 years ago 2009-02-11 17:29:47

Capitalized DistRen!
6 files changed with 49 insertions and 103 deletions:
0 comments (0 inline, 0 general)
AUTHORS
Show inline comments
 
This software is a joint initiative of [protofusion] (http://protofusion.org/) and Oh! No! Publishing (http://ohnopublishing.net/)
 
DistRen is a joint initiative of [protofusion] (http://protofusion.org/) and Oh! No! Publishing (http://ohnopublishing.net/)
 

	
 
The principal devs are:
 
Ethan Zonca <ethanzonca@protofusion.org>
 
Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
INSTALL
Show inline comments
 
Installation Instructions
 
*************************
 

	
 
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
 
2006, 2007, 2008 Free Software Foundation, Inc.
 
2006, 2007 Free Software Foundation, Inc.
 

	
 
   This file is free documentation; the Free Software Foundation gives
 
This file is free documentation; the Free Software Foundation gives
 
unlimited permission to copy, distribute and modify it.
 

	
 
Basic Installation
 
==================
 

	
 
   Briefly, the shell commands `./configure; make; make install' should
 
Briefly, the shell commands `./configure; make; make install' should
 
configure, build, and install this package.  The following
 
more-detailed instructions are generic; see the `README' file for
 
instructions specific to this package.
 

	
 
   The `configure' shell script attempts to guess correct values for
 
various system-dependent variables used during compilation.  It uses
 
@@ -70,57 +70,43 @@ The simplest way to compile this package
 
  6. Often, you can also type `make uninstall' to remove the installed
 
     files again.
 

	
 
Compilers and Options
 
=====================
 

	
 
   Some systems require unusual options for compilation or linking that
 
the `configure' script does not know about.  Run `./configure --help'
 
for details on some of the pertinent environment variables.
 
Some systems require unusual options for compilation or linking that the
 
`configure' script does not know about.  Run `./configure --help' for
 
details on some of the pertinent environment variables.
 

	
 
   You can give `configure' initial values for configuration parameters
 
by setting variables in the command line or in the environment.  Here
 
is an example:
 

	
 
     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
 

	
 
   *Note Defining Variables::, for more details.
 

	
 
Compiling For Multiple Architectures
 
====================================
 

	
 
   You can compile the package for more than one kind of computer at the
 
You can compile the package for more than one kind of computer at the
 
same time, by placing the object files for each architecture in their
 
own directory.  To do this, you can use GNU `make'.  `cd' to the
 
directory where you want the object files and executables to go and run
 
the `configure' script.  `configure' automatically checks for the
 
source code in the directory that `configure' is in and in `..'.
 

	
 
   With a non-GNU `make', it is safer to compile the package for one
 
architecture at a time in the source code directory.  After you have
 
installed the package for one architecture, use `make distclean' before
 
reconfiguring for another architecture.
 

	
 
   On MacOS X 10.5 and later systems, you can create libraries and
 
executables that work on multiple system types--known as "fat" or
 
"universal" binaries--by specifying multiple `-arch' options to the
 
compiler but only a single `-arch' option to the preprocessor.  Like
 
this:
 

	
 
     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
 
                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
 
                 CPP="gcc -E" CXXCPP="g++ -E"
 

	
 
   This is not guaranteed to produce working output in all cases, you
 
may have to build one architecture at a time and combine the results
 
using the `lipo' tool if you have problems.
 

	
 
Installation Names
 
==================
 

	
 
   By default, `make install' installs the package's commands under
 
By default, `make install' installs the package's commands under
 
`/usr/local/bin', include files under `/usr/local/include', etc.  You
 
can specify an installation prefix other than `/usr/local' by giving
 
`configure' the option `--prefix=PREFIX'.
 

	
 
   You can specify separate installation prefixes for
 
architecture-specific files and architecture-independent files.  If you
 
@@ -137,54 +123,32 @@ you can set and what kinds of files go i
 
with an extra prefix or suffix on their names by giving `configure' the
 
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
 

	
 
Optional Features
 
=================
 

	
 
   Some packages pay attention to `--enable-FEATURE' options to
 
Some packages pay attention to `--enable-FEATURE' options to
 
`configure', where FEATURE indicates an optional part of the package.
 
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
 
is something like `gnu-as' or `x' (for the X Window System).  The
 
`README' should mention any `--enable-' and `--with-' options that the
 
package recognizes.
 

	
 
   For packages that use the X Window System, `configure' can usually
 
find the X include and library files automatically, but if it doesn't,
 
you can use the `configure' options `--x-includes=DIR' and
 
`--x-libraries=DIR' to specify their locations.
 

	
 
Particular systems
 
==================
 

	
 
   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
 
CC is not installed, it is recommended to use the following options in
 
order to use an ANSI C compiler:
 

	
 
     ./configure CC="cc -Ae"
 

	
 
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
 

	
 
   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
 
parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
 
a workaround.  If GNU CC is not installed, it is therefore recommended
 
to try
 

	
 
     ./configure CC="cc"
 

	
 
and if that doesn't work, try
 

	
 
     ./configure CC="cc -nodtk"
 

	
 
Specifying the System Type
 
==========================
 

	
 
   There may be some features `configure' cannot figure out
 
automatically, but needs to determine by the type of machine the package
 
will run on.  Usually, assuming the package is built to be run on the
 
_same_ architectures, `configure' can figure that out, but if it prints
 
a message saying it cannot guess the machine type, give it the
 
There may be some features `configure' cannot figure out automatically,
 
but needs to determine by the type of machine the package will run on.
 
Usually, assuming the package is built to be run on the _same_
 
architectures, `configure' can figure that out, but if it prints a
 
message saying it cannot guess the machine type, give it the
 
`--build=TYPE' option.  TYPE can either be a short name for the system
 
type, such as `sun4', or a canonical name which has the form:
 

	
 
     CPU-COMPANY-SYSTEM
 

	
 
where SYSTEM can have one of these forms:
 
@@ -204,24 +168,24 @@ platform different from the build platfo
 
"host" platform (i.e., that on which the generated programs will
 
eventually be run) with `--host=TYPE'.
 

	
 
Sharing Defaults
 
================
 

	
 
   If you want to set default values for `configure' scripts to share,
 
you can create a site shell script called `config.site' that gives
 
default values for variables like `CC', `cache_file', and `prefix'.
 
If you want to set default values for `configure' scripts to share, you
 
can create a site shell script called `config.site' that gives default
 
values for variables like `CC', `cache_file', and `prefix'.
 
`configure' looks for `PREFIX/share/config.site' if it exists, then
 
`PREFIX/etc/config.site' if it exists.  Or, you can set the
 
`CONFIG_SITE' environment variable to the location of the site script.
 
A warning: not all `configure' scripts look for a site script.
 

	
 
Defining Variables
 
==================
 

	
 
   Variables not defined in a site shell script can be set in the
 
Variables not defined in a site shell script can be set in the
 
environment passed to `configure'.  However, some packages may run
 
configure again during the build, and the customized values of these
 
variables may be lost.  In order to avoid this problem, you should set
 
them in the `configure' command line, using `VAR=value'.  For example:
 

	
 
     ./configure CC=/usr/local2/bin/gcc
 
@@ -234,25 +198,17 @@ an Autoconf bug.  Until the bug is fixed
 

	
 
     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
 

	
 
`configure' Invocation
 
======================
 

	
 
   `configure' recognizes the following options to control how it
 
operates.
 
`configure' recognizes the following options to control how it operates.
 

	
 
`--help'
 
`-h'
 
     Print a summary of all of the options to `configure', and exit.
 

	
 
`--help=short'
 
`--help=recursive'
 
     Print a summary of the options unique to this package's
 
     `configure', and exit.  The `short' variant lists options used
 
     only in the top level, while the `recursive' variant lists options
 
     also present in any nested packages.
 
     Print a summary of the options to `configure', and exit.
 

	
 
`--version'
 
`-V'
 
     Print the version of Autoconf used to generate the `configure'
 
     script, and exit.
 

	
 
@@ -273,19 +229,9 @@ operates.
 
     messages will still be shown).
 

	
 
`--srcdir=DIR'
 
     Look for the package's source code in directory DIR.  Usually
 
     `configure' can determine that directory automatically.
 

	
 
`--prefix=DIR'
 
     Use DIR as the installation prefix.  *Note Installation Names::
 
     for more details, including other options available for fine-tuning
 
     the installation locations.
 

	
 
`--no-create'
 
`-n'
 
     Run the configure checks, but stop before creating any output
 
     files.
 

	
 
`configure' also accepts some other, not widely useful, options.  Run
 
`configure --help' for more details.
 

	
configure.ac
Show inline comments
 
# Copyright 2008 Nathan Phillip Brink, Ethan Zonca
 
#
 
# This file is a part of distren.
 
# This file is a part of DistRen.
 
#
 
# Distren is free software: you can redistribute it and/or modify
 
# it under the terms of the GNU Affero General Public License as published by
 
# the Free Software Foundation, either version 3 of the License, or
 
# (at your option) any later version.
 
#
 
# Distren is distributed in the hope that it will be useful,
 
# DistRen 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 Affero General Public License for more details.
 
#
 
# You should have received a copy of the GNU Affero General Public License
 
# along with distren.  If not, see <http://www.gnu.org/licenses/>.
 
# along with DistRen.  If not, see <http://www.gnu.org/licenses/>.
 

	
 
AC_PREREQ(2.61)
 
AC_INIT([distren],[0.0],[ohnobinki@ohnopublishing.net])
 
AC_CONFIG_SRCDIR([src/server/distrend.c])
 

	
 
AM_INIT_AUTOMAKE
src/client/distren.c
Show inline comments
 
/*
 
  Copyright 2008 Nathan Phillip Brink, Ethan Zonca
 

	
 
  This file is a part of distren.
 
  
 
  Distren is free software: you can redistribute it and/or modify
 
  This file is a part of DistRen.
 

	
 
  DistRen is free software: you can redistribute it and/or modify
 
  it under the terms of the GNU Affero General Public License as published by
 
  the Free Software Foundation, either version 3 of the License, or
 
  (at your option) any later version.
 
  
 
  Distren is distributed in the hope that it will be useful,
 

	
 
  DistRen 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 Affero General Public License for more details.
 
  
 

	
 
  You should have received a copy of the GNU Affero General Public License
 
  along with distren.  If not, see <http://www.gnu.org/licenses/>.
 
  along with DistRen.  If not, see <http://www.gnu.org/licenses/>.
 
*/
 

	
 
#include <stdio.h>
 

	
 
int main(int argc, char *argv[])
 
{
src/common/options.c
Show inline comments
 
/*
 
  Copyright 2008 Nathan Phillip Brink, Ethan Zonca
 

	
 
  This file is a part of distren.
 
  
 
  Distren is free software: you can redistribute it and/or modify
 
  This file is a part of DistRen.
 

	
 
  DistRen is free software: you can redistribute it and/or modify
 
  it under the terms of the GNU Affero General Public License as published by
 
  the Free Software Foundation, either version 3 of the License, or
 
  (at your option) any later version.
 
  
 
  Distren is distributed in the hope that it will be useful,
 

	
 
  DistRen 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 Affero General Public License for more details.
 
  
 

	
 
  You should have received a copy of the GNU Affero General Public License
 
  along with distren.  If not, see <http://www.gnu.org/licenses/>.
 
  along with DistRen.  If not, see <http://www.gnu.org/licenses/>.
 
*/
 

	
 
#include "options.h"
 

	
 
#include <confuse.h>
 

	
 
int genericfunc() 
 
int genericfunc()
 
{
 
  
 

	
 
  /* Conf File Parser */
 
    cfg_opt_t opts[] =
 
    {
 
        CFG_STR("test", "mneh", CFGF_NONE),
 
        CFG_END()
 
     };
 
@@ -34,19 +34,19 @@ int genericfunc()
 
       cfg = cfg_init(opts, CFGF_NONE);
 
       if(cfg_parse(cfg, "distren.conf") == CFG_PARSE_ERROR)
 
           return 1;
 
/* End Conf File Parser */
 

	
 

	
 
  cfg_free(cfg); 
 
  cfg_free(cfg);
 

	
 
       cfg = cfg_init(opts, CFGF_NONE);
 
       if(cfg_parse(cfg, "distrend.conf") == CFG_PARSE_ERROR)
 
           return 1;
 
/* End Conf File Parser */
 

	
 
printf("Conf File Test", cfg_getstr(cfg, "test"));
 

	
 

	
 
  cfg_free(cfg); 
 
  cfg_free(cfg);
 

	
 
}
src/server/distrend.c
Show inline comments
 
/*
 
  Copyright 2008 Nathan Phillip Brink, Ethan Zonca
 

	
 
  This file is a part of distren.
 
  
 
  Distren is free software: you can redistribute it and/or modify
 
  This file is a part of DistRen.
 

	
 
  DistRen is free software: you can redistribute it and/or modify
 
  it under the terms of the GNU Affero General Public License as published by
 
  the Free Software Foundation, either version 3 of the License, or
 
  (at your option) any later version.
 
  
 
  Distren is distributed in the hope that it will be useful,
 

	
 
  DistRen 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 Affero General Public License for more details.
 
  
 

	
 
  You should have received a copy of the GNU Affero General Public License
 
  along with distren.  If not, see <http://www.gnu.org/licenses/>.
 
  along with DistRen.  If not, see <http://www.gnu.org/licenses/>.
 
*/
 

	
 
#include <stdio.h>
 

	
 

	
 

	
0 comments (0 inline, 0 general)