File: install-pkg

package info (click to toggle)
octave-pkg-dev 1.4.4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 104 kB
  • ctags: 36
  • sloc: perl: 176; sh: 88; makefile: 7
file content (20 lines) | stat: -rwxr-xr-x 656 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

[ -e PKG_ADD ] && mv PKG_ADD PKG_ADD.bak

$octave $octave_options --eval					\
    "pkg ('prefix', [pwd(),'/$debpkg/$mpath'],			\
         [pwd(),'/$debpkg/$bpath']);				\
    pkg ('local_list', [pwd(),'/$local_list']);			\
    pkg ('global_list', [pwd(),'/$global_list']);		\
    save_header_format_string(					\
     '# Generated by Octave during Debian package build');	\
    if (exist ('PKG_ADD.bak') == 2),				\
        movefile ('PKG_ADD.bak', 'PKG_ADD');			\
    endif;							\
    pkg -verbose -nodeps install ."				\
    | sed 's:/tmp/oct-[a-zA-Z0-9]\{6\}:[tmp-build-dir]:g'

$shrpkg/dh/octave-pkg-helper

dh_install --package=$package