Merge branch 'ss/remote-bzr-hg-placeholder-wo-python'

There is no need for Python only to give a few messages to the
standard error stream, but we somehow did.

* ss/remote-bzr-hg-placeholder-wo-python:
  contrib: git-remote-{bzr,hg} placeholders don't need Python
This commit is contained in:
Junio C Hamano 2017-03-12 23:21:33 -07:00
Родитель ba37c92df9 b8686c661d
Коммит 271513cd54
2 изменённых файлов: 14 добавлений и 18 удалений

Просмотреть файл

@ -1,13 +1,11 @@
#!/usr/bin/env python #!/bin/sh
import sys cat >&2 <<'EOT'
WARNING: git-remote-bzr is now maintained independently.
sys.stderr.write('WARNING: git-remote-bzr is now maintained independently.\n') WARNING: For more information visit https://github.com/felipec/git-remote-bzr
sys.stderr.write('WARNING: For more information visit https://github.com/felipec/git-remote-bzr\n') WARNING:
sys.stderr.write('''WARNING:
WARNING: You can pick a directory on your $PATH and download it, e.g.: WARNING: You can pick a directory on your $PATH and download it, e.g.:
WARNING: $ wget -O $HOME/bin/git-remote-bzr \\ WARNING: $ wget -O $HOME/bin/git-remote-bzr \
WARNING: https://raw.github.com/felipec/git-remote-bzr/master/git-remote-bzr WARNING: https://raw.github.com/felipec/git-remote-bzr/master/git-remote-bzr
WARNING: $ chmod +x $HOME/bin/git-remote-bzr WARNING: $ chmod +x $HOME/bin/git-remote-bzr
''') EOT

Просмотреть файл

@ -1,13 +1,11 @@
#!/usr/bin/env python #!/bin/sh
import sys cat >&2 <<'EOT'
WARNING: git-remote-hg is now maintained independently.
sys.stderr.write('WARNING: git-remote-hg is now maintained independently.\n') WARNING: For more information visit https://github.com/felipec/git-remote-hg
sys.stderr.write('WARNING: For more information visit https://github.com/felipec/git-remote-hg\n') WARNING:
sys.stderr.write('''WARNING:
WARNING: You can pick a directory on your $PATH and download it, e.g.: WARNING: You can pick a directory on your $PATH and download it, e.g.:
WARNING: $ wget -O $HOME/bin/git-remote-hg \\ WARNING: $ wget -O $HOME/bin/git-remote-hg \
WARNING: https://raw.github.com/felipec/git-remote-hg/master/git-remote-hg WARNING: https://raw.github.com/felipec/git-remote-hg/master/git-remote-hg
WARNING: $ chmod +x $HOME/bin/git-remote-hg WARNING: $ chmod +x $HOME/bin/git-remote-hg
''') EOT