-
-
Save gschjetne/061a6ee5b47cecd69485 to your computer and use it in GitHub Desktop.
Utility makefile for downloading SICP lectures from MIT Open Courseware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2013 Grim Schjetne | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation files | |
# (the "Software"), to deal in the Software without restriction, | |
# including without limitation the rights to use, copy, modify, merge, | |
# publish, distribute, sublicense, and/or sell copies of the Software, | |
# and to permit persons to whom the Software is furnished to do so, | |
# subject to the following conditions: | |
# The above copyright notice and this permission notice shall be | |
# included in all copies or substantial portions of the Software. | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS | |
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN | |
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
# SOFTWARE. | |
all: | |
@echo "Usage: make [target]" ;\ | |
echo "Targets:" ;\ | |
echo " all Display this information" ;\ | |
echo " videos Download all video files" ;\ | |
echo " subtitles Download all subtitle files" ;\ | |
echo " [1-10][a|b].mp4 Download given video file" ;\ | |
echo " [1-10][a|b].srt Download given subtitle file" ;\ | |
echo "Bugs:" ;\ | |
echo " MPEG-4 is a patent-encumbered format. Please ask" ;\ | |
echo " your legislators to oppose software patents." ;\ | |
echo "" ;\ | |
echo " Resuming partially downloaded files not supported." | |
videos: 1a.mp4 1b.mp4 2a.mp4 2b.mp4 3a.mp4 3b.mp4 4a.mp4 4b.mp4 5a.mp4 5b.mp4 6a.mp4 6b.mp4 7a.mp4 7b.mp4 8a.mp4 8b.mp4 9a.mp4 9b.mp4 10a.mp4 10b.mp4 | |
subtitles: 1a.srt 1b.srt 2a.srt 2b.srt 3a.srt 3b.srt 4a.srt 4b.srt 5a.srt 5b.srt 6a.srt 6b.srt 7a.srt 7b.srt 8a.srt 8b.srt 9a.srt 9b.srt 10a.srt 10b.srt | |
.PHONY: videos subtitles | |
LICENSE.html: | |
wget -O LICENSE.html http://ocw.mit.edu/terms/ | |
1a.mp4: LICENSE.html | |
wget -O 1a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec1a_512kb.mp4 | |
1a.srt: LICENSE.html | |
wget -O 1a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/1a-overview-and-introduction-to-lisp/lec1a_512kb.srt | |
1b.mp4: LICENSE.html | |
wget -O 1b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec1b_512kb.mp4 | |
1b.srt: LICENSE.html | |
wget -O 1b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/1b-procedures-and-processes-substitution-model/lec1b_512kb.srt | |
2a.mp4: LICENSE.html | |
wget -O 2a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec2a_512kb.mp4 | |
2a.srt: LICENSE.html | |
wget -O 2a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/2a-higher-order-procedures/lec2a_512kb.srt | |
2b.mp4: LICENSE.html | |
wget -O 2b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec2b_512kb.mp4 | |
2b.srt: LICENSE.html | |
wget -O 2b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/2b-compound-data/lec2b_512kb.srt | |
3a.mp4: LICENSE.html | |
wget -O 3a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec3a_512kb.mp4 | |
3a.srt: LICENSE.html | |
wget -O 3a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/3a-henderson-escher-example/lec3a_512kb.srt | |
3b.mp4: LICENSE.html | |
wget -O 3b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec3b_512kb.mp4 | |
3b.srt: LICENSE.html | |
wget -O 3b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/3b-symbolic-differentiation-quotation/lec3b_512kb.srt | |
4a.mp4: LICENSE.html | |
wget -O 4a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec4a_512kb.mp4 | |
4a.srt: LICENSE.html | |
wget -O 4a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/4a-pattern-matching-and-rule-based-substitution/lec4a_512kb.srt | |
4b.mp4: LICENSE.html | |
wget -O 4b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec4b_512kb.mp4 | |
4b.srt: LICENSE.html | |
wget -O 4b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/4b-generic-operators/lec4b_512kb.srt | |
5a.mp4: LICENSE.html | |
wget -O 5a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec5a_512kb.mp4 | |
5a.srt: LICENSE.html | |
wget -O 5a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/5a-assignment-state-and-side-effects/lec5a_512kb.srt | |
5b.mp4: LICENSE.html | |
wget -O 5b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec5b_512kb.mp4 | |
5b.srt: LICENSE.html | |
wget -O 5b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/5b-computational-objects/lec5b_512kb.srt | |
6a.mp4: LICENSE.html | |
wget -O 6a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec6a_512kb.mp4 | |
6a.srt: LICENSE.html | |
wget -O 6a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/6a-streams-part-1/lec6a_512kb.srt | |
6b.mp4: LICENSE.html | |
wget -O 6b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/Lec6b_512kb.mp4 | |
6b.srt: LICENSE.html | |
wget -O 6b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/6b-streams-part-2/Lec6b_512kb.srt | |
7a.mp4: LICENSE.html | |
wget -O 7a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec7a_512kb.mp4 | |
7a.srt: LICENSE.html | |
wget -O 7a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/7a-metacircular-evaluator-part-1/lec7a_512kb.srt | |
7b.mp4: LICENSE.html | |
wget -O 7b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec7b_512kb.mp4 | |
7b.srt: LICENSE.html | |
wget -O 7b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/7b-metacircular-evaluator-part-2/lec7b_512kb.srt | |
8a.mp4: LICENSE.html | |
wget -O 8a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec8a_512kb.mp4 | |
8a.srt: LICENSE.html | |
wget -O 8a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/8a-logic-programming-part-1/lec8a_512kb.srt | |
8b.mp4: LICENSE.html | |
wget -O 8b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec8b_512kb.mp4 | |
8b.srt: LICENSE.html | |
wget -O 8b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/8b-logic-programming-part-2/lec8b_512kb.srt | |
9a.mp4: LICENSE.html | |
wget -O 9a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec9a_512kb.mp4 | |
9a.srt: LICENSE.html | |
wget -O 9a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/9a-register-machines/lec9a.srt | |
9b.mp4: LICENSE.html | |
wget -O 9b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec9b_512kb.mp4 | |
9b.srt: LICENSE.html | |
wget -O 9b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/9b-explicit-control-evaluator/lec9b.srt | |
10a.mp4: LICENSE.html | |
wget -O 10a.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/Lec10a_512kb.mp4 | |
10a.srt: LICENSE.html | |
wget -O 10a.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/10a-compilation/Lec10a_512kb.srt | |
10b.mp4: LICENSE.html | |
wget -O 10b.mp4 http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec10b_512kb.mp4 | |
10b.srt: LICENSE.html | |
wget -O 10b.srt http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/10b-storage-allocation-and-garbage-collection/lec10b_512kb.srt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment