mirror of https://gitlab.com/rnger/amath
Debian build script
This commit is contained in:
parent
81ba8a83e2
commit
1551700ec1
|
@ -0,0 +1,29 @@
|
|||
Features
|
||||
========
|
||||
|
||||
* Case sensitive command line interface
|
||||
* Native IEEE 754 with 15 significant digits
|
||||
* Calculations with real and complex numbers
|
||||
* Variables and user defined functions
|
||||
* Logarithmic and exponential functions
|
||||
* Trigonometric and hyperbolic functions
|
||||
* Mathematical constants and rounding functions
|
||||
* Disk functions to load, save and view content
|
||||
* Comprehensive and easy to use built-in help
|
||||
* Full multi-lingual locale support
|
||||
* Freely distributable sources
|
||||
|
||||
Example of usage
|
||||
================
|
||||
|
||||
Get an interactive prompt in shell:
|
||||
> amath
|
||||
|
||||
Do a calculation in shell:
|
||||
> amath 1.2+1.4
|
||||
|
||||
Show version string:
|
||||
> amath version
|
||||
|
||||
Run regression tests:
|
||||
> amath test
|
|
@ -0,0 +1,17 @@
|
|||
Package: amath
|
||||
Version: 1.6.2
|
||||
Architecture: i386
|
||||
Maintainer: Carsten Larsen <cs@innolan.dk>
|
||||
Installed-Size: 265640
|
||||
Depends: libc6
|
||||
Section: math
|
||||
Essential: no
|
||||
Priority: optional
|
||||
Homepage: http://amath.innolan.net
|
||||
Built-Using: gcc-5.4
|
||||
Description: Simple command line calculator
|
||||
Features a case sensitive command line interface, internal IEEE 754
|
||||
calculations with 15 significant digits, calculations with real and
|
||||
complex numbers, variables and user defined functions, logarithmic
|
||||
and exponential functions, trigonometric and hyperbolic function
|
||||
and selected mathematical constants and rounding functions.
|
|
@ -0,0 +1,38 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Build a debian package for i386
|
||||
|
||||
rm -Rf amath
|
||||
|
||||
# Build
|
||||
sh configure
|
||||
make clean
|
||||
make
|
||||
mv amath amath.tmp
|
||||
make clean
|
||||
|
||||
# Create filesystem layout
|
||||
rm -Rf amath
|
||||
|
||||
mkdir -p amath/DEBIAN
|
||||
mkdir -p amath/usr/bin
|
||||
mkdir -p amath/usr/share/doc/amath
|
||||
mkdir -p amath/usr/local/share/amath
|
||||
|
||||
mv amath.tmp amath/usr/bin/amath
|
||||
|
||||
# Copy documentation
|
||||
cp LICENSE amath/usr/share/doc/amath/
|
||||
cp HISTORY amath/usr/share/doc/amath/
|
||||
cp build/debian/README amath/usr/share/doc/amath/
|
||||
|
||||
# Copy scripts
|
||||
cp script/* amath/usr/local/share/amath/
|
||||
|
||||
# Make the package
|
||||
cp build/debian/control amath/DEBIAN/
|
||||
dpkg-deb --build amath
|
||||
mv amath.deb amath-1.6.2_i386.deb
|
||||
|
||||
# Cleanup
|
||||
rm -Rf amath
|
Loading…
Reference in New Issue