Make the .txt.orig downloader more generic.

As two examples - When looking at the release notes for the x200 laptop,
they have the same "uc" name as the cdrom image.  The release notes for
the x270 laptop also has the same name as the cdrom image, but they use
neither the "uc" nor the "us" suffixes.

So, it seemed simplest to be the least smart and just download whatever
matches the cdrom image name.

This has the drawback that we sometimes end up with text files that tell
you how to use the windows .exe installer - but I am hoping that the
people reading these release notes will be able to realise that not all
instructions should be followed...
pull/36/head
Hamish Coleman 7 years ago
parent 43506237f0
commit e5537cfdb0

@ -198,9 +198,11 @@ $(DEPSDIR)/slice.insert.deps: Makefile
# *.us.txt - the "us" ones contain instructions for using the .exe
# version of the bios update tool instead of the instructions for
# bootable cdrom image, but other than that they /should/ be identical
%uc.txt.orig:
# NOTE: we download the one with the same name as the ISO, even if that is
# wrong (it removes a bunch of edge cases)
%.txt.orig:
@echo -n "Downloading release notes for "
@scripts/describe $(subst uc.txt,us.iso,$@)
@scripts/describe $(subst .txt,.iso,$@)
wget -O $@ https://download.lenovo.com/pccbbs/mobiles/$(basename $@)
# For newer systems they have used names that match for the iso and the txt

Loading…
Cancel
Save