File: plugin.sh

package info (click to toggle)
nova 2%3A32.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,404 kB
  • sloc: python: 419,076; pascal: 1,848; sh: 991; makefile: 163; xml: 83
file content (20 lines) | stat: -rw-r--r-- 490 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
NOVA_PLUGINDIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))

source $NOVA_PLUGINDIR/lib/mdev_samples

if [[ $1 == "stack" ]]; then
    case $2 in
    install)
        if [[ "$NOVA_COMPILE_MDEV_SAMPLES" == True ]]; then
            async_runfunc compile_mdev_samples
        fi
    ;;
    extra)
        if [[ "$NOVA_COMPILE_MDEV_SAMPLES" == True ]]; then
            async_wait compile_mdev_samples
        fi
    ;;
    esac
elif [[ $1 == "clean" ]]; then
    rm -Rf $NOVA_KERNEL_TEMP
fi