File: get-orig-source

package info (click to toggle)
looptools 2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 1,840 kB
  • ctags: 2,787
  • sloc: fortran: 24,537; ansic: 3,190; sh: 640; f90: 579; makefile: 344; csh: 6
file content (27 lines) | stat: -rwxr-xr-x 449 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
25
26
27
#!/bin/bash

set -e

[ $# == 3 ]

url="http://www.feynarts.de/looptools"
ver="$2"

pkgdir="looptools-$ver.orig"
pkg="looptools_$ver.orig.tar.gz"

uppkgdir="LoopTools-$ver"
uppkg="LoopTools-$ver.tar.gz"

[ ! -f "../$uppkg" ] && wget "$url/$uppkg" -O "../$uppkg"

[ -d "$uppkgdir" ] && rm -rf "$uppkgdir"
tar xf "../$uppkg"

[ -d "$pkgdir" ] && rm -rf "$pkgdir"

mv "$uppkgdir" "$pkgdir"
rm -f "../$pkg"
tar -zcf "../$pkg" "$pkgdir"

rm -rf "$pkgdir"