Skip to content

Commit d9823dc

Browse files
committed
Improved DESCRIPTION generation for octave-api
* Use version number from C++ api * Use current date for release date * Shortened package description
1 parent 8fc3f95 commit d9823dc

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

client-api/Octave/DESCRIPTION

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
Name: vibes
2-
Version: 0.2.0
3-
Date: 2015-11-12
2+
Version: %VERSION%
3+
Date: %DATE%
44
Author: Oliver Heimlich <[email protected]>
55
Maintainer: ENSTA Bretagne Robotics
66
Title: Interface to VIBes, Visualizer for Intervals and Boxes
7-
Description: VIBes is a visualization system that aims at providing people
8-
working with interval methods a way to display results (boxes, pavings),
9-
without worrying with GUI programming. It provides drawing functions
10-
accessible from a lot of programming languages, without complex installation
11-
and library dependencies. The main design goal of VIBes is to be
12-
cross-platform, available from different programming languages, simple to
13-
set-up, easy to port to a new language.
7+
Description: The VIBes API allows one to easily display results (boxes, pavings)
8+
from interval methods.
149

1510
VIBes consists in two parts: (1) the VIBes application that features viewing,
1611
annotating and exporting figures, and (2) the VIBes API that enables your
1712
program to communicate with the viewer in order to draw figures.
1813

1914
This package integrates the VIBes API into Octave. The VIBes application
2015
is required for operation and must be installed seperately. Data types from
21-
third-party interval arithmetic libraries for Octave are also supportd.
16+
third-party interval arithmetic libraries for Octave are also supported.
2217
Depends: octave (>= 4.0.0)
2318
License: GPLv3+

client-api/Octave/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ SHELL = /bin/sh
2020

2121
CUT ?= cut
2222
PACKAGE = $(shell grep "^Name: " DESCRIPTION | $(CUT) -f2 -d" ")
23-
VERSION = $(shell grep "^Version: " DESCRIPTION | $(CUT) -f2 -d" ")
24-
DATE = $(shell grep "^Date: " DESCRIPTION | $(CUT) -f2 -d" ")
23+
VERSION = $(shell grep "^/// \\\\version " ../C++/src/vibes.h | $(CUT) -f3 -d" " | sed -e "s/[^0-9.]//g")
24+
DATE = $(shell date "+%Y-%m-%d")
2525

2626
##
2727
## Release Process
@@ -44,6 +44,7 @@ $(RELEASE_TARBALL): ../../.git/index
4444
(cd "$(PACKAGE)-bundle" && tar xf -)
4545
@(cd ../C++/; git archive --format=tar --prefix="$(PACKAGE)-$(VERSION)/" HEAD src) | \
4646
(cd "$(PACKAGE)-bundle" && tar xf -)
47+
@sed -e "s/%VERSION%/$(VERSION)/" -e "s/%DATE%/$(DATE)/" -i "$(PACKAGE)-bundle/$(PACKAGE)-$(VERSION)/DESCRIPTION"
4748
@(cd "$(PACKAGE)-bundle" && tar czf "../$@" "$(PACKAGE)-$(VERSION)")
4849

4950
##

0 commit comments

Comments
 (0)