File: installtemplates.sh

package info (click to toggle)
egenix-mx-base 2.0.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,028 kB
  • ctags: 4,762
  • sloc: ansic: 14,965; python: 11,739; sh: 313; makefile: 117
file content (23 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

set -e

VERSIONS="$*"
PACKAGES="DateTime Queue Proxy Stack TextTools Tools"

for ver in $VERSIONS; do
    for pkg in $PACKAGES; do
        debpkg=python$ver-egenix-mx$(echo -n $pkg | tr '[:upper:]' '[:lower:]')

        install -d debian/$debpkg/usr/share/doc-base
        sed -e "s/@PKGNAME@/$debpkg/g" \
            -e "s/@FULLNAME@/eGenix mx$pkg/g" \
            -e "s/@PKG@/mx$pkg/g" \
            <debian/docbase.template >debian/$debpkg.doc-base

        sed -e "s/@DEBPKG@/$debpkg/g" <debian/prerm.template >debian/$debpkg.prerm
        sed -e "s/@DEBPKG@/$debpkg/g" \
            -e "s/@VERSION@/$ver/g" \
            <debian/postinst.template >debian/$debpkg.postinst
    done
done