gschjetne / Makefile secret
Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Utility makefile for downloading SICP lectures from MIT Open Courseware

View Makefile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
# 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
Something went wrong with that request. Please try again.