Commit 4b5eaef1 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

provides package

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2350
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent d8ab0b6b
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.7 2007-07-05 16:08:22 tforb Exp $
# $Id: Makefile,v 1.8 2007-07-05 16:26:35 tforb Exp $
#
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
#
......@@ -21,14 +21,57 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# ----
#
# This is a collection of tools that support SFF (Stuttgart File Format)
# header manipulation.
#
# You will find the following targets:
#
# sehefi sets the fields station, channel, auxid and instype in the WID2
# lines of an SFF data file to explicite values
# coma creates a table of equidistant receiver coordinates
# chaco uses a tabel produced by coma to set receiver and source
# coordinates in an SFF data file
# cooset this program sets receiver and source coordinates for global
# seismic data; receiver coordinates are obtained from a table of
# seismic stations
# epi prints a list of receiver offsets contained in an SFF file
# offli prints a list of receiver offsets contained in an SFF file
# this program provied different output formats to craete control
# files for refmet, chaco, or wolle info files
# merse combines all traces from several different SFF input data files
# within one single SFF data file (does no waveform stacking); use
# fidase if you want to manipulate the waveform to and if you want
# to stack data at identical offsets
# sesoc set the source coordinate in an SFF data file
# sesot set the source time in an SFF data file
#
# To compile this code with the rules given below, you need the f2c compiler
# from Netlib.
#
# To link the programs, you need libraries provided in packages that can be
# downloaded from the place, you obtained this package from. You will need the
# following additional packages:
#
# libsff provides libsff.a
# libtf provides libtf.a
# libsffu provides libsffu.a
# libtime provides libtime_trad.a and libtime++.a
# libgsexx provides libgsexx.a
# libsffxx provides libsffxx.a
# libtfxx provides libtfxx.a
# libaff provides libaff.a
#
# See README.compile for further information
#
# REVISIONS and CHANGES
# 14/03/2002 V1.0 Thomas Forbriger
# 05/07/2007 V1.1 prepared for package creation
#
# ============================================================================
#
all:
all: sehefi coma epi chaco sesoc offli sesot merse cooset
flist: Makefile $(wildcard *.f *.cc)
echo $^ | tr ' ' '\n' | sort > $@
......@@ -42,7 +85,6 @@ clean: ;
-/bin/rm -vf flist *.o
F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
LIBSFF=-lsff -L$(SERVERLIBDIR)
LIBTF=-ltf -L$(LOCLIBDIR)
CC=gcc
......@@ -71,4 +113,26 @@ cooset: %: %.o
-ltfxx -L$(LOCLIBDIR) $(CXXFLAGS) $(FLAGS)
newprog $@
#======================================================================
# create package
# --------------
VERSIONCODE=$(shell date +'%Y%m%d')
PACKAGE=sffutilhd$(VERSIONCODE)
PUBLICATIONPATH=$(HOME)/public_html/download/software
TMPPATH=$(HOME)/tmp/$(PACKAGE)
package:
/bin/rm -rfv $(TMPPATH); mkdir -pv $(TMPPATH)
cd $(TMPPATH)/..; cvs export -l -r HEAD \
-d $(PACKAGE) thof/src/conv/sff
cd $(TMPPATH)/..; cvs export -r HEAD -d $(PACKAGE) thof/src/LICENSE.GPL
cd $(TMPPATH)/..; cvs export -r HEAD \
-d $(PACKAGE) thof/src/README.compile
/bin/bash -c 'cd $(TMPPATH); \
export LOCBINDIR=bin; mkdir -v bin; \
make all; make clean'
cd $(TMPPATH)/..; tar cvf $(PUBLICATIONPATH)/$(PACKAGE).tar $(PACKAGE)
gzip --force -9 $(PUBLICATIONPATH)/$(PACKAGE).tar
cd $(TMPPATH)/..; tar cvf $(PUBLICATIONPATH)/$(PACKAGE).tar $(PACKAGE)
bzip2 -f $(PUBLICATIONPATH)/$(PACKAGE).tar
# ----- END OF Makefile -----
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: cooset.cc,v 1.3 2007-07-05 16:08:22 tforb Exp $
* $Id: cooset.cc,v 1.4 2007-07-05 16:26:35 tforb Exp $
* \author Thomas Forbriger
* \date 08/09/2004
*
......@@ -35,7 +35,7 @@
#define COOSET_VERSION \
"COOSET V1.0 set coordinates"
#define COOSET_CVSID \
"$Id: cooset.cc,v 1.3 2007-07-05 16:08:22 tforb Exp $"
"$Id: cooset.cc,v 1.4 2007-07-05 16:26:35 tforb Exp $"
#include <fstream>
#include <iostream>
......@@ -138,30 +138,6 @@ int main(int iargc, char* argv[])
exit(0);
}
/*
// dummy operation: print option settings
for (int iopt=0; iopt<2; iopt++)
{
cout << "option: '" << options[iopt].opt_string << "'" << endl;
if (cmdline.optset(iopt)) { cout << " option was set"; }
else { cout << "option was not set"; }
cout << endl;
cout << " argument (string): '" << cmdline.string_arg(iopt) << "'" << endl;
cout << " argument (int): '" << cmdline.int_arg(iopt) << "'" << endl;
cout << " argument (long): '" << cmdline.long_arg(iopt) << "'" << endl;
cout << " argument (float): '" << cmdline.float_arg(iopt) << "'" << endl;
cout << " argument (double): '" << cmdline.double_arg(iopt) << "'" << endl;
cout << " argument (bool): '";
if (cmdline.bool_arg(iopt))
{ cout << "true"; } else { cout << "false"; }
cout << "'" << endl;
}
while (cmdline.extra()) { cout << cmdline.next() << endl; }
// dummy operation: print rest of command line
while (cmdline.extra()) { cout << cmdline.next() << endl; }
*/
/*----------------------------------------------------------------------*/
// read command line
......
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