File: md.sh

package info (click to toggle)
casacore-data-jplde 2007.07.05%2Bds.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 56,856 kB
  • sloc: makefile: 18; sh: 15
file content (22 lines) | stat: -rwxr-xr-x 353 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
22
#!/bin/sh

set -e

if [ $# -gt 0 ] ; then
    type=$1
else
    type=ALL
fi

mkdir -p build/ephemerides

cd build

measuresdata type=$1

while grep -qe "^status:\\Wcont" measuresdata.rc ; do
    arg=$(grep "^arg:" measuresdata.rc | cut -d\  -f2-)
    file=$(grep "^file:" measuresdata.rc | cut -d\  -f2-)
    ln -sf ../$file .
    measuresdata $arg
done