~ubuntu-branches/ubuntu/oneiric/atlas/oneiric

« back to all changes in this revision

Viewing changes to debian/generate.sh

  • Committer: Bazaar Package Importer
  • Author(s): Sylvestre Ledru
  • Date: 2011-03-19 09:47:02 UTC
  • Revision ID: james.westby@ubuntu.com-20110319094702-z7o0zp7ehuru96zw
Tags: 3.8.3-30
* Update of the README.Debian (typos, old stuff, etc)
* Some clean up and simplification of debian/rules
  (removed rules to build preoptimized packages)
* Remove Recommends on libblas3gf when installing libatlas
* Drop control.in (was used when we were build pre-optimized packages)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# This crappy script regenerates *.postinst & *.prerm from 
4
 
# some templates
5
 
 
6
 
# Generated by:
7
 
# $(grep Package: control|grep -v -E "(dev|-test|-doc)"|cut -d- -f2)
8
 
LIST="base sse sse2 sse3 core2sse3 amd64sse3 corei7sse3 altivec v9 ev6 2.0"
9
 
 
10
 
# The list of priority:
11
 
# http://wiki.debian.org/DebianScience/LinearAlgebraLibraries
12
 
LIST_PRIORITY=(30 35 40 45 50 55 60 60 60 60 60)
13
 
 
14
 
# Templates
15
 
POSTINST="libatlas3gf-template.postinst"
16
 
PRERM="libatlas3gf-template.prerm"
17
 
POSTINSTDEV="libatlas-template-dev.postinst"
18
 
PRERMDEV="libatlas-template-dev.prerm"
19
 
i=1
20
 
for pkg in $LIST; do
21
 
 
22
 
        target=$(echo $POSTINST|sed -e "s|template|$pkg|")
23
 
        targetprerm=$(echo $PRERM|sed -e "s|template|$pkg|")
24
 
        sed -e "s|PACKAGE|$pkg|g" -e "s|PRIORITY|${LIST_PRIORITY[${i}]}|g" $POSTINST > $target
25
 
        sed -e "s|PACKAGE|$pkg|g" $PRERM > $targetprerm
26
 
 
27
 
    targetdev=$(echo $POSTINSTDEV|sed -e "s|template|$pkg|")
28
 
    targetprermdev=$(echo $PRERMDEV|sed -e "s|template|$pkg|")
29
 
        
30
 
    sed -e "s|PACKAGE|$pkg|g" -e "s|PRIORITY|${LIST_PRIORITY[${i}]}|g" $POSTINSTDEV > $targetdev
31
 
    sed -e "s|PACKAGE|$pkg|g" $PRERMDEV > $targetprermdev
32
 
        i=$(($i + 1))
33
 
done