standalone version in gh-pages gets a generic ruby shebang

This commit is contained in:
Mislav Marohnić 2011-11-23 17:06:24 +01:00
Родитель 4cdaff1426
Коммит d8973bc87a
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -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