File: build.sh

package info (click to toggle)
octave-level-set 0.3.1~git.2019.04.13-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 884 kB
  • sloc: cpp: 1,840; makefile: 34; sh: 20
file content (47 lines) | stat: -rwxr-xr-x 1,506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh

#   GNU Octave level-set package.
#   Copyright (C) 2013-2015  Daniel Kraft <d@domob.eu>
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Build the package as .tar.gz file.

name=level-set-0.3.1.tar.gz
dirname=level-set

set -e

./autogen.sh

rm -rf /tmp/$dirname
mkdir /tmp/$dirname
cp CITATION COPYING INDEX DESCRIPTION NEWS /tmp/$dirname
cp -r inst/ /tmp/$dirname
mkdir /tmp/$dirname/src
cp src/configure src/Makefile.in src/*.?pp /tmp/$dirname/src

# Also include autoconf-related files, even though they are not strictly
# necessary for installing the package.  It may be useful for others
# to hack on the code.
cp autogen.sh /tmp/$dirname
cp src/configure.ac /tmp/$dirname/src

# Clean up possible Vim swap files or something like that.
find /tmp/$dirname -type f -and -name .\* -exec rm -f {} \;

outfile=`pwd`/$name
(cd /tmp; tar zcvf $outfile $dirname)

rm -rf /tmp/$dirname