From 6065e27a134cf7366c86ba98cbab6d94b298300d Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister <phihag@phihag.de> Date: Sun, 16 Dec 2012 13:39:45 +0100 Subject: [PATCH] Add wget installation instructions --- download.html | 7 ++++++- download.html.in | 7 ++++++- update-copyright | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/download.html b/download.html index f7602c7fa..544bb434e 100644 --- a/download.html +++ b/download.html @@ -18,6 +18,11 @@ <h2><a href="https://github.com/downloads/rg3/youtube-dl/youtube-dl">2012.12.11</a></h2> +<p>To install it right away for all users, type: +<code style="display:block; margin-top: 0.4em; padding: 0.7em; background: #ccc; background: rgba(200, 200, 200, 0.4); white-space: pre;">sudo wget https://github.com/downloads/rg3/youtube-dl/youtube-dl -O /usr/local/bin/youtube-dl +sudo chmod a+x /usr/local/bin/youtube-dl</code> +</p> + <ul> <li><strong>MD5</strong>: a73e1d6f59e34d1231cf5788b31fa177</li> <li><strong>SHA1</strong>: aa45f8e32c637a2342674f32d1ca9e8f70bf695c</li> @@ -28,6 +33,6 @@ <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/"> <img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br /> -Copyright © 2006-2011 Ricardo Garcia Gonzalez</div> +Copyright © 2006-2012 Ricardo Garcia Gonzalez</div> </body> </html> diff --git a/download.html.in b/download.html.in index 386b8676e..06f3810e5 100644 --- a/download.html.in +++ b/download.html.in @@ -18,6 +18,11 @@ <h2><a href="@PROGRAM_URL@">@PROGRAM_VERSION@</a></h2> +<p>To install it right away for all users, type: +<code style="display:block; margin-top: 0.4em; padding: 0.7em; background: #ccc; background: rgba(200, 200, 200, 0.4); white-space: pre;">sudo wget @PROGRAM_URL@ -O /usr/local/bin/youtube-dl +sudo chmod a+x /usr/local/bin/youtube-dl</code> +</p> + <ul> <li><strong>MD5</strong>: @PROGRAM_MD5SUM@</li> <li><strong>SHA1</strong>: @PROGRAM_SHA1SUM@</li> @@ -28,6 +33,6 @@ <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/"> <img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br /> -Copyright © 2006-2011 Ricardo Garcia Gonzalez</div> +Copyright © 2006-2012 Ricardo Garcia Gonzalez</div> </body> </html> diff --git a/update-copyright b/update-copyright index 95a3a3ba3..12c2a9194 100644 --- a/update-copyright +++ b/update-copyright @@ -10,7 +10,7 @@ import os import re year = str(datetime.datetime.now().year) -for fn in glob.glob('*.html'): +for fn in glob.glob('*.html*'): with io.open(fn, encoding='utf-8') as f: content = f.read() newc = re.sub(u'(?P<copyright>Copyright © 2006-)(?P<year>[0-9]{4})', u'Copyright © 2006-' + year, content)