File: astrometry-data-2mass-03.postinst

package info (click to toggle)
astrometry-data-2mass 1.2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 148 kB
  • sloc: sh: 155; makefile: 22
file content (17 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

TARGETDIR=/usr/share/astrometry/
SERIES=42
STEP=03
BASE_URL=http://data.astrometry.net/${SERIES}00

if [ "$1" = "configure" ] ; then
    if [ ! -f "${TARGETDIR}/index-2mass-${STEP}-00.fits" ]; then
       curl --create-dirs -o "${TARGETDIR}/index-2mass-${STEP}-#1.fits" \
	    ${BASE_URL}/index-${SERIES}${STEP}-[00-47].fits
    fi
fi

#DEBHELPER#