Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

-w flag for EOSDIS options

Mike McGannf5e7bcab4cc3
diff --git a/wv-setup b/wv-setup
index 0bc20668f..2129f4534 100755
--- a/wv-setup
+++ b/wv-setup
@@ -22,10 +22,11 @@ Usage: $PROG [options]
Options:
-d Install apache configuration files and restart the web server
-h Prints this usage
+ -w Worldview EOSIS options
EOF
}
-while getopts dkh flag; do
+while getopts dhw flag; do
case "$flag" in
d)
DEVELOP=1
@@ -35,6 +36,10 @@ while getopts dkh flag; do
usage
exit 0
;;
+ w)
+ WORLDVIEW=1
+ shift;
+ ;;
?)
usage
exit 1
@@ -72,13 +77,17 @@ fi
if [ ! -d "$BASE_DIR/options" ] ; then
echo "$PROG: ***** Fetching options"
- git clone https://github.com/nasa-gibs/worldview-options-template options
- mkdir -p "$BASE_DIR/build"
- git clone https://github.com/nasa-gibs/worldview-options-eosdis \
- "$BASE_DIR/build/options-eosdis"
- cp "$BASE_DIR/build/options-eosdis/config.json" "$BASE_DIR/options"
- cp -r "$BASE_DIR/build/options-eosdis/config" "$BASE_DIR/options"
- cp -r "$BASE_DIR/build/options-eosdis/colormaps" "$BASE_DIR/options"
+ if [ "$WORLDVIEW" ] ; then
+ git clone https://github.com/nasa-gibs/worldview-options-eosdis options
+ else
+ git clone https://github.com/nasa-gibs/worldview-options-template options
+ mkdir -p "$BASE_DIR/build"
+ git clone https://github.com/nasa-gibs/worldview-options-eosdis \
+ "$BASE_DIR/build/options-eosdis"
+ cp "$BASE_DIR/build/options-eosdis/config.json" "$BASE_DIR/options"
+ cp -r "$BASE_DIR/build/options-eosdis/config" "$BASE_DIR/options"
+ cp -r "$BASE_DIR/build/options-eosdis/colormaps" "$BASE_DIR/options"
+ fi
fi
if [ ! -d "$BASE_DIR/dist" ] ; then