~ubuntu-branches/ubuntu/wily/fitgcp/wily-proposed

« back to all changes in this revision

Viewing changes to debian/get-orig-source

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2014-02-07 11:38:38 UTC
  • Revision ID: package-import@ubuntu.com-20140207113838-3mjnlphy2x50o9pa
Tags: 0.0.20130418-1
Initial release (Closes: #739508)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# get source for fitgpc to obtain documentation source from SVN
 
3
 
 
4
set -e
 
5
# set -x
 
6
NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
 
7
COMPRESSION=xz
 
8
VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
 
9
 
 
10
mkdir -p ../tarballs
 
11
cd ../tarballs
 
12
TARDIR=${NAME}-${VERSION}
 
13
 
 
14
# fetch source from SVN
 
15
svn export svn://svn.code.sf.net/p/fitgcp/code/trunk $TARDIR
 
16
cd $TARDIR
 
17
recode ibmpc.. fitGCP.py
 
18
mv fitGCP.py fitGCP.py.bak
 
19
echo '#!/usr/bin/python' > fitGCP.py
 
20
cat fitGCP.py.bak >> fitGCP.py
 
21
touch -r fitGCP.py.bak fitGCP.py
 
22
rm fitGCP.py.bak
 
23
wget http://sourceforge.net/projects/fitgcp/files/README.txt
 
24
cd ..
 
25
 
 
26
GZIP="--best --no-name" XZ_OPT="-6v" tar --owner=root --group=root --mode=a+rX -a -cf ${NAME}_${VERSION}.orig.tar.${COMPRESSION} ${TARDIR}
 
27
rm -rf ${TARDIR}