diff options
author | Rogério Brito <rbrito@ime.usp.br> | 2013-10-23 21:24:02 -0200 |
---|---|---|
committer | Rogério Brito <rbrito@ime.usp.br> | 2013-10-23 21:24:02 -0200 |
commit | 9c8b63077a48f758bf0c9a7351669557071bbd74 (patch) | |
tree | c76693e55b017a65bf9add19e96dcaf5120a8380 /devscripts | |
parent | 685ad32bb6a8afcce0e261d42caf1a1d2bf16aa3 (diff) | |
download | youtube-dl-9c8b63077a48f758bf0c9a7351669557071bbd74.zip youtube-dl-9c8b63077a48f758bf0c9a7351669557071bbd74.tar.gz youtube-dl-9c8b63077a48f758bf0c9a7351669557071bbd74.tar.bz2 |
Imported Upstream version 2013.10.23
Diffstat (limited to 'devscripts')
-rw-r--r-- | devscripts/bash-completion.in | 4 | ||||
-rwxr-xr-x | devscripts/gh-pages/update-sites.py | 7 | ||||
-rwxr-xr-x | devscripts/release.sh | 4 |
3 files changed, 6 insertions, 9 deletions
diff --git a/devscripts/bash-completion.in b/devscripts/bash-completion.in index bd10f63..ce893fc 100644 --- a/devscripts/bash-completion.in +++ b/devscripts/bash-completion.in @@ -1,4 +1,4 @@ -__youtube-dl() +__youtube_dl() { local cur prev opts COMPREPLY=() @@ -15,4 +15,4 @@ __youtube-dl() fi } -complete -F __youtube-dl youtube-dl +complete -F __youtube_dl youtube-dl diff --git a/devscripts/gh-pages/update-sites.py b/devscripts/gh-pages/update-sites.py index 33f2424..153e15c 100755 --- a/devscripts/gh-pages/update-sites.py +++ b/devscripts/gh-pages/update-sites.py @@ -16,10 +16,11 @@ def main(): ie_htmls = [] for ie in sorted(youtube_dl.gen_extractors(), key=lambda i: i.IE_NAME.lower()): ie_html = '<b>{}</b>'.format(ie.IE_NAME) - try: + ie_desc = getattr(ie, 'IE_DESC', None) + if ie_desc is False: + continue + elif ie_desc is not None: ie_html += ': {}'.format(ie.IE_DESC) - except AttributeError: - pass if ie.working() == False: ie_html += ' (Currently broken)' ie_htmls.append('<li>{}</li>'.format(ie_html)) diff --git a/devscripts/release.sh b/devscripts/release.sh index 796468b..2766174 100755 --- a/devscripts/release.sh +++ b/devscripts/release.sh @@ -88,10 +88,6 @@ ROOT=$(pwd) "$ROOT/devscripts/gh-pages/update-sites.py" git add *.html *.html.in update git commit -m "release $version" - git show HEAD - read -p "Is it good, can I push? (y/n) " -n 1 - if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1; fi - echo git push "$ROOT" gh-pages git push "$ORIGIN_URL" gh-pages ) |