3
# This crappy script regenerates *.postinst & *.prerm from
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"
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)
15
POSTINST="libatlas3gf-template.postinst"
16
PRERM="libatlas3gf-template.prerm"
17
POSTINSTDEV="libatlas-template-dev.postinst"
18
PRERMDEV="libatlas-template-dev.prerm"
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
27
targetdev=$(echo $POSTINSTDEV|sed -e "s|template|$pkg|")
28
targetprermdev=$(echo $PRERMDEV|sed -e "s|template|$pkg|")
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