File: copy-gemspec

package info (click to toggle)
ruby-github-markup 1.5.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 336 kB
  • ctags: 118
  • sloc: ruby: 373; python: 113; sh: 21; makefile: 15
file content (7 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download
1
2
3
4
5
6
7
#!/bin/sh
# provide github-markup
version=$(head -1 debian/changelog |cut -d'(' -f2|cut -d'-' -f1|cut -d+ -f1)
cp debian/ruby-github-markup/usr/share/rubygems-integration/all/specifications/gitlab-markup-${version}.gemspec \
debian/ruby-github-markup/usr/share/rubygems-integration/all/specifications/github-markup-${version}.gemspec
sed -i 's/"gitlab-markup"/"github-markup"/' debian/ruby-github-markup/usr/share/rubygems-integration/all/specifications/github-markup-${version}.gemspec
sed -i 's/stub: gitlab-markup/stub: github-markup/' debian/ruby-github-markup/usr/share/rubygems-integration/all/specifications/github-markup-${version}.gemspec