File: prepare

package info (click to toggle)
python-igraph 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 27,056 kB
  • sloc: ansic: 253,917; cpp: 22,039; python: 19,545; xml: 2,734; yacc: 1,207; lex: 496; sh: 347; fortran: 215; sed: 45; makefile: 23; javascript: 20; lisp: 10
file content (15 lines) | stat: -rwxr-xr-x 384 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

DATE=`date -R`
VER=`sed -n -e "s/^[ \t]*version *= *'\\(.*\\)', *$/\1/p" setup.py`

if [ x$1 = xbzr -o x$1 = x--bzr ]; then
  VER="${VER}~bzr"`date +%Y%m%d`
fi

for i in copyright.in changelog.in control.in; do
  cat debian/$i | sed -e "s/@VERSION@/$VER/g" | sed -e "s/@DATE@/$DATE/g" >debian/`basename $i .in`
done

echo "Prepared Debian package files for version $VER."