Explorar o código

vcmibuilder: remove references to deprecated (and disabled) core.zip download

Closes: #1038
Johannes Schauer Marin Rodrigues %!s(int64=3) %!d(string=hai) anos
pai
achega
d280eca241
Modificáronse 1 ficheiros con 0 adicións e 21 borrados
  1. 0 21
      vcmibuilder

+ 0 - 21
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