mirror of
https://github.com/hamishcoleman/thinkpad-ec
synced 2024-11-04 06:00:12 +00:00
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...
This commit is contained in:
parent
43506237f0
commit
e5537cfdb0
6
Makefile
6
Makefile
@ -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…
Reference in New Issue
Block a user