File: makedist

package info (click to toggle)
mtx 1.3.12-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,148 kB
  • sloc: ansic: 7,121; sh: 3,199; python: 203; perl: 117; makefile: 113
file content (19 lines) | stat: -rwxr-xr-x 384 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# note -- this assumes 'bash' shell, GNU tar, 'gzip'. 

# pass a version number e.g. 1.4.3 as 1st parameter...
ME=`pwd`

# okay, now to create a spec file w/the proper version number:
sed -e "1,\$s/@@VERSION@@/${1}/g" <mtx.spec.in >mtx.spec

cd ..
if [ ! -s mtx-${1} ]
then
   ln -s "${ME}" "mtx-${1}"
fi


tar --exclude CVS --exclude .svn -czvhf mtx-${1}.tar.gz mtx-${1}