File: dynare-matlab.postinst

package info (click to toggle)
dynare 6.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 67,648 kB
  • sloc: cpp: 79,109; ansic: 28,917; objc: 12,430; yacc: 4,528; pascal: 1,993; lex: 1,441; sh: 1,129; python: 634; makefile: 628; lisp: 163; xml: 18
file content (21 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e

case "$1" in
    configure)
        debian-matlab-mexhelper dynare-matlab install \
            --build-cmd 'meson setup -Dbuildtype=release -Dmatlab_path=$(dirname $(dirname $(readlink -f $(command -v matlab)))) build-matlab && meson compile -C build-matlab -v' \
            --install-cmd 'mkdir -p /usr/lib/dynare/mex/matlab && install -m644 $(find /usr/src/matlab/dynare-matlab/build-matlab/ -type f -name *.mex*) /usr/lib/dynare/mex/matlab' \
            --clean-cmd 'rm -rf build-matlab'
        ;;

    abort-upgrade|abort-remove|abort-deconfigure)
        ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

#DEBHELPER#