File: get-orig-source.sh

package info (click to toggle)
ruby-wikicloth 0.8.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 624 kB
  • ctags: 294
  • sloc: ruby: 2,545; makefile: 16; sh: 11
file content (16 lines) | stat: -rwxr-xr-x 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

package="ruby-wikicloth"

file=$(uscan --verbose | \
        sed -n '/Successfully downloaded updated package/ {s/.*updated package \(.*\)$/\1/; p}')
version="$(echo $file | sed 's/^v\(.*\)\.tar\.gz/\1/')+dfsg"
path=../$file

gzip -d < $path | \
    tar --delete --wildcards -f - '*/sample_documents/wiki.png' | \
    gzip > ../$package-$version.tar.gz
rm $path
echo "Repackaged ../$package-$version.tar.gz"