Skip to content

Commit

Permalink
Release 1.0.0, tested on Tiger, SLED10x86, BG/Lfen, BG/L
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/avp/tmp/svn.20121212/LHPC/aff/trunk@213 65d2813f-f11f-0410-b17b-8647a28db151
  • Loading branch information
avp committed Sep 11, 2007
1 parent 3a29364 commit 5cd36ad
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 72 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ else
include $(CONFIG)
all:
for d in $(subdirs); do \
make CC='$(CC)' CFLAGS='$(CFLAGS)' -C $$d $@; \
make CC='$(CC)' \
CFLAGS='$(CFLAGS)' \
AR='$(AR)' \
RANLIB='$(RANLIB)' \
-C $$d $@; \
done
install: all do.install
endif
Expand Down
52 changes: 0 additions & 52 deletions README
Original file line number Diff line number Diff line change
@@ -1,55 +1,3 @@
This project contains a library for accessing and manipulation of analysis files
in new binary format. The goal is to make it possible to work efficiently with
large amount of data.

Random thoughts:
---------------

Suggested directory structure:
./lib contains sources of the library
./include contains library header files
./utils xml2aff and aff sources
./docs file format specifications (in .tex to build .pdf for distribution)

Library:
liblhpc-aff.a

Header file
lhpc-aff.h

Config script:
lhpc-aff-config
--cc
--cflags
--ldflags
--libs
--version

Configure: no autoconf, but a simple script to generate Makefile and
lhcp-aff-config from CC and CFLAGS in environment and argument
--prefix= (defaulting to /usr/local).

Utilities:
xml2aff converts xml 2pt and 3pt files into aff. (? or is it a part of lhpc-aff)
lhpc-aff cmd [args]
cmd:
help - prints a list of commands
version - version of the code
cp f1 f2 ... fd - joins files f1 ... and places the result into fd
ls [-lR] f [path] - prints the contents of path in file f. Path defaults to /
-l long format (with data), -R recursive listing
xml f name - prints /name as xml (reverse of xml2aff)
chk [-vq] f - checks the structure of file f. Verbose/quiet flags.
(?) aff f xml [name] - place file xml under name into f, name defaults to the
name of the xml file. Aff f is created.


Useful prieces:

MD5 checksum routines are in <openssl/md5.h>. -- building it is a mess on BG/L,
get the reference implementation from RFC 1321.

Treap management routines are written.
Stable routines are written.
Tree routines are complete.
Aff interface is written.
13 changes: 1 addition & 12 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
[done] - The interface header building in lib/Makefile
[done] - Documentation (Sergey)
[done] -- add another level to the TOC, insert pagebreaks where needed.
- Configure
[done] - Restrict node names to an XML-compatible subset (in waff-mkdir).
[done] - Add node name checks into lhpc-aff check.
- Utilities
[done] -- extract
[done] -- join -- 'insert' instead of 'join'
-- xml
-- spectrum
-- 3point
-- more targets.
2 changes: 2 additions & 0 deletions aff-config.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh -f
#
# 2007/09/11 avp -- funal cut for v 1.0.0
cc='@CC@'
cflags='@CFLAGS@ -I@prefix_include@'
libs='@LIBS@ -llhpc-aff'
Expand Down
14 changes: 7 additions & 7 deletions config.bgl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is included into GNU Make file.
#
# Our build C compiler. It should support enough of C99.
CC=gcc -std=c99
CC=/bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc -std=c99
#
# To build applications on top of the AFF library, one calls the following
# compiler. It might be different from the build compiler.
Expand All @@ -12,10 +12,10 @@ install.CC=$(CC)
# _POSIX_C_SOURCE is needed to make gcc aware of some POSIX functions.
# _LARGEFILE_SOURCE is needed to work with files larger than 2GB.
# _FILE_OFFSET_BITS=64 is needed work with files larger than 2GB.
CFLAGS=-Wall -O2 -DHAS_INTEGRAL_OFF_T \
-D_POSIX_C_SOURCE \
-D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64
CFLAGS= -Wall -O2 -DHAS_INTEGRAL_OFF_T \
-D_POSIX_C_SOURCE \
-D_LARGEFILE_SOURCE \
-D_FILE_OFFSET_BITS=64
#
# To build applications on top of the AFF library, one needs to pass
# the following flags to the compiler.
Expand All @@ -30,10 +30,10 @@ install.LIBS=
install.LDFLAGS=
#
# The librarian.
AR=ar
AR=/bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-ar
#
# On some platform, a ranlib is required to make a library accessible.
RANLIB=ranlib
RANLIB=/bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-ranlib
#
# Where to install
prefix=$$HOME/lhpc
Expand Down
1 change: 1 addition & 0 deletions lib/aff-version.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/* This file should be modified with each release to make SVN change the Id
*
* 2007/08/21 avp -- working version, playing with format
* 2007/09/11 avp -- final cut for v 1.0.0
*/
const char *
aff_version(void)
Expand Down

0 comments on commit 5cd36ad

Please sign in to comment.