File: new-upstream

package info (click to toggle)
libmatheval 1.1.11+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,376 kB
  • ctags: 682
  • sloc: sh: 15,152; ansic: 2,412; lex: 142; makefile: 86; yacc: 68
file content (24 lines) | stat: -rwxr-xr-x 498 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
set -e

version=$2
filename=`readlink -f $3`
targetdir=`dirname $filename`

dir=`mktemp -d`

curdir=`pwd`

origname="${targetdir}/libmatheval_${version}+dfsg.orig.tar.gz"

echo "Repacking libmatheval version $version from $filename"

cd "$dir"
tar xzf "$filename"
# remove non-free docs #708966
rm -f libmatheval-$version/doc/libmatheval.info
rm -f libmatheval-$version/doc/libmatheval.texi
tar czf "$origname" libmatheval-$version
echo "Repacked tarball is $origname"
cd -
rm -rf "$dir"