зеркало из https://github.com/mislav/hub.git
standalone version in gh-pages gets a generic ruby shebang
This commit is contained in:
Родитель
4cdaff1426
Коммит
d8973bc87a
6
Rakefile
6
Rakefile
|
@ -124,8 +124,10 @@ desc "Copy files to gh-pages branch, but don't publish"
|
|||
task :gh_pages => [:check_dirty, "hub", "man/hub.1.html"] do
|
||||
cp "man/hub.1.html", "html"
|
||||
sh "git checkout gh-pages"
|
||||
sh "mv hub standalone"
|
||||
sh "mv html hub.1.html"
|
||||
# replace the specific shebang with a generic ruby one
|
||||
sh "echo '#!/usr/bin/env' ruby > standalone"
|
||||
sh "sed 1d hub >> standalone"
|
||||
mv "html", "hub.1.html"
|
||||
sh "git add standalone hub.1.html"
|
||||
sh "git commit -m 'update standalone'"
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче