File: cpl-plugin-calib.postinst.in

package info (click to toggle)
cpl-plugin-kmos 1.3.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,460 kB
  • ctags: 3,024
  • sloc: ansic: 86,479; sh: 14,074; perl: 3,117; python: 863; makefile: 680
file content (22 lines) | stat: -rw-r--r-- 489 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

PIPELINE=__PIPELINE__
VERSION=__VERSION__

KIT=${PIPELINE}-kit-${VERSION}
CALIB=${PIPELINE}-calib-${VERSION}
URL=ftp://ftp.eso.org/pub/dfs/pipelines/${PIPELINE}/${KIT}.tar.gz
TAR=${KIT}/${CALIB}.tar.gz
COMPONENTS="${CALIB}/cal"
TARGETDIR="/usr/share/cpl-plugins/${PIPELINE}-${VERSION}"

if [ "$1" = "configure" ] ; then
    mkdir -p ${TARGETDIR}
    wget -O- ${URL} | \
    tar xzO ${TAR} | \
    tar xzC ${TARGETDIR} ${COMPONENTS}  --strip-components=1
fi

#DEBHELPER#