File indexing completed on 2024-05-12 04:19:59
0001 #!/bin/bash 0002 # This script detects if there is one of wget/curl downloaders availabe and downloads 0003 # three raw files from the digikam's store. 0004 # If there is none of the two present in the system, the script suggests manual download. 0005 0006 DOWNLOADER="" 0007 0008 which wget &>/dev/null && DOWNLOADER="wget -O " 0009 [ "$DOWNLOADER" == "" ] && which curl &>/dev/null && DOWNLOADER="curl -o " 0010 0011 if [ "$DOWNLOADER" != "" ] ; then 0012 echo "Fetching CANON-EOS350D-02.CR2 (1/3)" 0013 $DOWNLOADER CANON-EOS350D-02.CR2 http://digikam3rdparty.free.fr/TEST_IMAGES/RAW/HORIZONTAL/CANON-EOS350D-02.CR2 0014 echo "Fetching dsc_0093.nef (2/3)" 0015 $DOWNLOADER dsc_0093.nef http://digikam3rdparty.free.fr/TEST_IMAGES/RAW/HORIZONTAL/dsc_0093.nef 0016 echo "Fetching dsd_1838.nef (3/3)" 0017 $DOWNLOADER dsd_1838.nef http://digikam3rdparty.free.fr/TEST_IMAGES/RAW/VERTICAL/dsd_1838.nef 0018 else 0019 echo "Unable to detect downloader. Please install one of wget/curl and try again or" 0020 echo "fetch manually the following files:" 0021 echo " http://digikam3rdparty.free.fr/TEST_IMAGES/RAW/HORIZONTAL/CANON-EOS350D-02.CR2" 0022 echo " http://digikam3rdparty.free.fr/TEST_IMAGES/RAW/HORIZONTAL/dsc_0093.nef" 0023 echo " http://digikam3rdparty.free.fr/TEST_IMAGES/RAW/VERTICAL/dsd_1838.nef" 0024 echo "in the tests/data directory." 0025 exit 1 0026 fi