From d280eca2416b17bdefd77ddc89daf8e37b7b47c7 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Mon, 3 Oct 2022 13:46:55 +0200 Subject: [PATCH] vcmibuilder: remove references to deprecated (and disabled) core.zip download Closes: #1038 --- vcmibuilder | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/vcmibuilder b/vcmibuilder index cdd1b337f..919878814 100755 --- a/vcmibuilder +++ b/vcmibuilder @@ -29,7 +29,6 @@ do --data) data_dir=$2 ; shift 2 ;; --dest) dest_dir=$2 ; shift 2 ;; --convertMP3) useffmpeg=true; shift 1 ;; -# --download) download=true ; shift 1 ;; --validate) validate=true ; shift 1 ;; *) print_help=true ; shift 1 ;; esac @@ -53,9 +52,6 @@ then echo " --convertMP3 " "Convert all mp3 files into ogg/vorbis" echo " " "Requires ffmpeg or avconv" echo -# echo " --download " "Automatically download optional package using wget" -# echo " " "Requires wget and Internet connection" -# echo echo " --dest DIRECTORY " "Path where resulting data will be placed. Default is ~/.local/share/vcmi" echo echo " --validate " "Run basic validness checks" @@ -137,11 +133,6 @@ then test_utility "unshield" "-V" fi -if [[ -n "$download" ]] -then - test_utility "unzip" -fi - if [[ -z "$gog_file" ]] && [[ -z "$data_dir" ]] && ( [[ -z "$cd1_dir" ]] || [[ -z "$cd2_dir" ]] ) then warning "Warning: Selected options will not create complete Heroes 3 data!" @@ -236,18 +227,6 @@ then cp -r "$data_dir"/[Mm][Pp]3 "$dest_dir" fi -if [[ -n "$download" ]] -then - wget "http://download.vcmi.eu/core.zip" -O "$temp_dir"/core.zip || fail "Error: failed to download VCMI archive!" "rm -f core.zip" - vcmi_archive="$temp_dir"/core.zip -fi - -if [[ -n "$vcmi_archive" ]] -then - echo "decompressing $vcmi_archive" - unzip -qo "$vcmi_archive" -d "$dest_dir" || fail "Error: failed to extract VCMI archive!" -fi - if [[ -n "$useffmpeg" ]] then # now when all music files were installed convert them to ogg