File: get-orig-source

package info (click to toggle)
openigtlink 3.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,080 kB
  • sloc: cpp: 20,076; ansic: 6,704; sh: 227; perl: 74; makefile: 46
file content (22 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -ex

PACKAGE=openigtlink
HASH=5a50181

GIT_URL=git://github.com/openigtlink/OpenIGTLink.git
GIT_BRANCH=master
VERSION=1.11.0
#VERSION=1.10.5~git20131203+${HASH}

FOLDER=${PACKAGE}-${VERSION}

git clone "$GIT_URL" "$FOLDER"
cd $FOLDER
git checkout $HASH
rm -rf .git
cd -

GZIP=-9 tar czf ${PACKAGE}_${VERSION}.orig.tar.gz ${FOLDER}
rm -rf ${FOLDER}