UBUNTU: [debian] Initial debian and ubuntu directories

Based off Ubuntu-unstable-6.0.0-9.9.

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
This commit is contained in:
Leann Ogasawara
2010-03-12 17:13:25 -08:00
committed by Paolo Pisati
parent e8f897f4af
commit e68fec95c4
441 changed files with 283622 additions and 1 deletions
+40
View File
@@ -0,0 +1,40 @@
#!/bin/bash
. debian/debian.env
vars=$1
any_signed=$2
. $vars
[ "$provides" != '' ] && provides="$provides, "
if [ "$is_sub" = "" ]; then
flavour=$(basename $vars | sed 's/.*\.//')
stub="${DEBIAN}/control.d/flavour-control.stub debian/control.d/flavour-buildinfo.stub"
if [ "$any_signed" = 'true' ]; then
sign_me_pkg="-unsigned"
sign_me_txt=" unsigned"
sign_peer_pkg=""
else
sign_me_pkg=""
sign_me_txt=""
sign_peer_pkg="-unsigned"
fi
else
flavour=$(basename $vars .vars)
stub=${DEBIAN}/sub-flavours/control.stub
fi
cat $stub | grep -v '^#' | sed \
-e "s#FLAVOUR#$flavour#g" \
-e "s#DESC#$desc#g" \
-e "s#ARCH#$arch#g" \
-e "s#SUPPORTED#$supported#g" \
-e "s#TARGET#$target#g" \
-e "s#BOOTLOADER#$bootloader#g" \
-e "s#=PROVIDES=#$provides#g" \
-e "s#=CONFLICTS=#$conflicts#g" \
-e "s#=SIGN-ME-PKG=#$sign_me_pkg#g" \
-e "s#=SIGN-ME-TXT=#$sign_me_txt#g" \
-e "s#=SIGN-PEER-PKG=#$sign_peer_pkg#g"