fix lintian issues
[debian/mtx] / makedist
1 #!/bin/sh
2
3 # note -- this assumes 'bash' shell, GNU tar, 'gzip'. 
4
5 # pass a version number e.g. 1.4.3 as 1st parameter...
6 ME=`pwd`
7
8 # okay, now to create a spec file w/the proper version number:
9 sed -e "1,\$s/@@VERSION@@/${1}/g" <mtx.spec.in >mtx.spec
10
11 cd ..
12 if [ ! -s mtx-${1} ]
13 then
14    ln -s "${ME}" "mtx-${1}"
15 fi
16
17
18 tar --exclude CVS --exclude .svn -czvhf mtx-${1}.tar.gz mtx-${1}
19