CLI: makefile: install/uninstall + docu
This commit is contained in:
parent
9cce25ff83
commit
c4d35b50f2
53
README.md
53
README.md
@ -1,20 +1,57 @@
|
|||||||
# tdm_ripper
|
# tdm_ripper
|
||||||
|
|
||||||
The tdm_ripper provides convenient access to the TDM/TDMS data format
|
The _tdm_ripper_ is a C++ based library that decodes the _technical data management_
|
||||||
(TDM = Technical data management) employed by
|
file format _TDM/TDX_ and is mainly employed for measurement data by
|
||||||
National Instruments LabView and DIAdem.
|
National Instruments, Labview and DIAdem.
|
||||||
|
|
||||||
## Data Format
|
## Data Format
|
||||||
|
|
||||||
Datasets encoded in the TDM/TDMS format come along in pairs comprised of a
|
Datasets encoded in the TDM/TDX format come along in pairs comprised of a
|
||||||
.tdm and .tdx file. While the .tdm file is a human-readable document providing
|
.tdm and .tdx file. While the .tdm file is a human-readable document providing
|
||||||
meta information about the dataset, the .tdx is a binary containing the actual data.
|
meta information about the dataset, the .tdx is a binary containing the actual
|
||||||
The .tdm is represented in XML format and basically reveals what data the .tdx
|
data. The .tdm is written in XML format and basically reveals what data the .tdx
|
||||||
contains and how to read it. The XML tree is usually made up of several groups,
|
contains and how to read it. The XML tree is usually made up of any number of
|
||||||
each containing an arbitrary amount of channels.
|
groups, each containing an arbitrary number of channels.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
The library can be used both as a _CLI_ based tool and as a _Python_ module.
|
||||||
|
|
||||||
|
### CLI tool
|
||||||
|
|
||||||
|
To install the CLI tool _tdmripper_ do
|
||||||
|
|
||||||
|
```Shell
|
||||||
|
make install
|
||||||
|
```
|
||||||
|
|
||||||
|
which uses `/usr/local/bin` as installation directory. On _macOSX_ please first
|
||||||
|
build the binary locally with `make` and install it to in your prefered location.
|
||||||
|
|
||||||
|
### Python
|
||||||
|
|
||||||
|
...tbc...
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
The usage of the CLI tool is sufficiently clarified by its help message displayed
|
||||||
|
by `tdmripper --help`. For instance, to extract the data decoded in the pair of
|
||||||
|
files `samples/SineData.tdm` and `samples/SineData.tdx` into the directory
|
||||||
|
`/home/jack/data/`:
|
||||||
|
|
||||||
|
```Shell
|
||||||
|
tdmripper --output /home/jack/data samples/SineData.tdm samples/SineData.tdx
|
||||||
|
```
|
||||||
|
|
||||||
|
### CLI tool
|
||||||
|
|
||||||
|
### Python
|
||||||
|
|
||||||
|
...tbc...
|
||||||
|
|
||||||
|
|
||||||
|
## !!! Deprecated !!!
|
||||||
|
|
||||||
The makefile provides targets for using the library both as native C++ extension
|
The makefile provides targets for using the library both as native C++ extension
|
||||||
and as Python module. The package supports usage on Linux and MacOSX.
|
and as Python module. The package supports usage on Linux and MacOSX.
|
||||||
The tdm_ripper module is built on these platforms by
|
The tdm_ripper module is built on these platforms by
|
||||||
|
8
makefile
8
makefile
@ -16,11 +16,17 @@ LIB = pugixml/
|
|||||||
GTAG := $(shell git tag | head -n1)
|
GTAG := $(shell git tag | head -n1)
|
||||||
GHSH := $(shell git rev-parse HEAD | head -c8)
|
GHSH := $(shell git rev-parse HEAD | head -c8)
|
||||||
|
|
||||||
|
# define install location
|
||||||
|
INST := /usr/local/bin
|
||||||
|
|
||||||
# --------------------------------------------------------------------------- #
|
# --------------------------------------------------------------------------- #
|
||||||
# CLI tool
|
# CLI tool
|
||||||
|
|
||||||
install : $(EXE)
|
install : $(EXE)
|
||||||
sudo cp $< /usr/local/bin
|
sudo cp $< $(INST)/
|
||||||
|
|
||||||
|
uninstall : $(INST)/$(EXE)
|
||||||
|
sudo rm $<
|
||||||
|
|
||||||
$(EXE) : main.o tdm_ripper.o
|
$(EXE) : main.o tdm_ripper.o
|
||||||
$(CC) $(OPT) $^ -o $@
|
$(CC) $(OPT) $^ -o $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user