-
Notifications
You must be signed in to change notification settings - Fork 20
/
install_cat2.sh
executable file
·36 lines (29 loc) · 1.05 KB
/
install_cat2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# install nebulae catalog data
function InstCat {
pkg=$1.tgz
ddir=$2
pkgz=BaseData/$pkg
if [ ! -e $pkgz ]; then
wget http://sourceforge.net/projects/skychart/files/4-source_data/$pkg -O $pkgz
fi
tar xvzf $pkgz -C $ddir
}
destdir=$1
if [ -z "$destdir" ]; then
export destdir=/tmp/skychart
fi
echo Install nebulae catalog data to $destdir
install -m 755 -d $destdir
install -m 755 -d $destdir/share
install -m 755 -d $destdir/share/metainfo
install -m 755 -d $destdir/share/skychart
install -v -m 644 system_integration/Linux/skychart-data-dso/share/metainfo/net.ap_i.skychart.skychart_data_dso.metainfo.xml $destdir/share/metainfo/net.ap_i.skychart.skychart_data_dso.metainfo.xml
InstCat catalog_gcm $destdir/share/skychart
InstCat catalog_gpn $destdir/share/skychart
InstCat catalog_lbn $destdir/share/skychart
InstCat catalog_ocl $destdir/share/skychart
InstCat catalog_leda $destdir/share/skychart
InstCat catalog_barnard $destdir/share/skychart
InstCat catalog_sh2 $destdir/share/skychart
InstCat catalog_vdb $destdir/share/skychart