|         |      1 Description: Upstream changes introduced in version 2011072500-14 | 
|         |      2  This patch has been created by dpkg-source during the package build. | 
|         |      3  Here's the last changelog entry, hopefully it gives details on why | 
|         |      4  those changes were made: | 
|         |      5  . | 
|         |      6  littlebird (2011072500-14) stable; urgency=low | 
|         |      7  . | 
|         |      8    * removed the meta package, the -core just provices littlebird-tc | 
|         |      9  . | 
|         |     10  The person named in the Author field signed this changelog entry. | 
|         |     11 Author: Heiko Schlittermann <hs@schlittermann.de> | 
|         |     12  | 
|         |     13 --- | 
|         |     14 The information above should follow the Patch Tagging Guidelines, please | 
|         |     15 checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here | 
|         |     16 are templates for supplementary fields that you might want to add: | 
|         |     17  | 
|         |     18 Origin: <vendor|upstream|other>, <url of original patch> | 
|         |     19 Bug: <url in upstream bugtracker> | 
|         |     20 Bug-Debian: http://bugs.debian.org/<bugnumber> | 
|         |     21 Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> | 
|         |     22 Forwarded: <no|not-needed|url proving that it has been forwarded> | 
|         |     23 Reviewed-By: <name and email of someone who approved the patch> | 
|         |     24 Last-Update: <YYYY-MM-DD> | 
|         |     25  | 
|         |     26 --- littlebird-2011072500.orig/LittleBird/encoded/LittleBird-Test/Database/install_test_iteration_2011-06.sh | 
|         |     27 +++ littlebird-2011072500/LittleBird/encoded/LittleBird-Test/Database/install_test_iteration_2011-06.sh | 
|         |     28 @@ -2,30 +2,67 @@ | 
|         |     29  # leichte Anpassungen durch hs@schlittermann.de | 
|         |     30  # Aufruf wie immer, dann werden die bisherigen Angaben *root* und das bisherige | 
|         |     31  # Passwort verwendet. Oder | 
|         |     32 -# install_test_iteration_2011-06.sh DB_HOST DB_NAME DB_ADMIN DB_ADMINPASS DB_USER DB_USERPASS | 
|         |     33 +# install_test_iteration_2011-06.sh DB_HOST DB_NAME DB_ADMINUSER DB_ADMINPASS DB_USER DB_PASS | 
|         |     34   | 
|         |     35  # ACHTUNG: DIE DATENBANK WIRD KOMPLETT GEERDET! | 
|         |     36   | 
|         |     37  #DB Update Dev - Test, | 
|         |     38  #Iteration Mai, Juni | 
|         |     39   | 
|         |     40 -#Test Stand vor der Iteration | 
|         |     41 -DB_HOST=${1-localhost}; shift | 
|         |     42 -DB_NAME=${1-trustcenter_history_test}; shift | 
|         |     43 - | 
|         |     44 -DB_ADMIN=${1-root}; shift | 
|         |     45 -DB_ADMINPASS=${1-Pa55w0rd}; shift | 
|         |     46 +fix_db_name()	 { sed "s/trustcenter_history_test/$DB_NAME/g"; } | 
|         |     47 +mysql()		 { fix_db_name | command mysql "$@" -h"$DB_HOST" -D"$DB_NAME" --default-character-set=utf8; } | 
|         |     48 +mysql_as_admin() { echo "as admin: $1"; <"$DIR/$1" mysql -u "$DB_ADMINUSER" -p"$DB_ADMINPASS"; } | 
|         |     49 +mysql_as_user()  { echo "as user:  $1"; <"$DIR/$1" mysql -u "$DB_USER"  -p"$DB_PASS"; } | 
|         |     50   | 
|         |     51 -DB_USER=${1-$DB_ADMIN}; shift | 
|         |     52 -DB_USERPASS=${1-$DB_ADMINPASS}; shift | 
|         |     53 +#Test Stand vor der Iteration | 
|         |     54 +DIR=$(dirname $0) | 
|         |     55 +DB_HOST=localhost | 
|         |     56 +DB_NAME=trustcenter_history_test | 
|         |     57 +DB_ADMINUSER=root | 
|         |     58 +DB_ADMINPASS=Pa55w0rd | 
|         |     59 +DB_USER="$DB_ADMINUSER" | 
|         |     60 +DB_PASS="$DB_ADMINPASS" | 
|         |     61 +REPLACING= | 
|         |     62 + | 
|         |     63 +tmp=$(getopt --name $0 --options "" \ | 
|         |     64 +    --long help,replacing:,host:,db:,adminuser:,adminpass:,user:,pass: \ | 
|         |     65 +    -- "$@") || exit 2 | 
|         |     66 +eval set -- "$tmp" | 
|         |     67 +echo "$@" | 
|         |     68 +while true; do | 
|         |     69 +    opt="$1"; shift | 
|         |     70 +    case "$opt" in | 
|         |     71 +	--replacing)  REPLACING="$1"; shift;; | 
|         |     72 +	--adminuser)  DB_ADMINUSER="$1"; shift;; | 
|         |     73 +	--adminpass)  DB_ADMINPASS="$1"; shift;; | 
|         |     74 +	--user)	    DB_USER="$1"; shift;; | 
|         |     75 +	--pass)	    DB_PASS="$1"; shift;; | 
|         |     76 +	--host)	    DB_HOST="$1"; shift;; | 
|         |     77 +	--db)	    DB_NAME="$1"; shift;; | 
|         |     78 +	--help)	    cat <<_HELP | 
|         |     79 +Usage: $0 [options] | 
|         |     80 +       Options are | 
|         |     81 +       --host=s        The address of the database host ($DB_HOST). | 
|         |     82 +       --db=s          The name of the database to be used ($DB_NAME). | 
|         |     83 +       --adminuser=s   The name of the SUPER user on the db server ($DB_ADMINUSER). | 
|         |     84 +       --adminpass=s   The password for the user above ($DB_ADMINPASS). | 
|         |     85 +       --user=s        The name of the user for NORMAL db operations ($DB_USER). | 
|         |     86 +       --pass=s        The password for the user above ($DB_PASS). | 
|         |     87 +       --replacing=s   The version of the package being replaced ($REPLACING). | 
|         |     88 +_HELP | 
|         |     89 +		    exit;; | 
|         |     90 +	*)	    echo "$0: bad usage" >&2; exit 2;; | 
|         |     91 +    esac | 
|         |     92 +done | 
|         |     93 + | 
|         |     94 +# for v in ${!DB_*}; do echo $v ${!v}; done | 
|         |     95 + | 
|         |     96 +if test -n "$REPLACING"; then | 
|         |     97 +    echo "This is an update, I'll do noting!" >&2 | 
|         |     98 +    exit 0 | 
|         |     99 +fi | 
|         |    100   | 
|         |    101 -#echo "$DB_ADMIN $DB_ADMINPASS $DB_NAME" | 
|         |    102 -#echo "$DB_USER $DB_USERPASS $DB_NAME" | 
|         |    103 - | 
|         |    104 -fix_db_name() { sed "s/trustcenter_history_test/$DB_NAME/g"; } | 
|         |    105 -mysql() { fix_db_name | command mysql "$@" -h"$DB_HOST" -D"$DB_NAME" --default-character-set=utf8; } | 
|         |    106 -mysql_as_admin() { echo "as admin: $1"; <"$1" mysql -u "$DB_ADMIN" -p"$DB_ADMINPASS"; } | 
|         |    107 -mysql_as_user()  { echo "as user:  $1"; <"$1" mysql -u "$DB_USER"  -p"$DB_USERPASS"; } | 
|         |    108 +# The filenames here get the name of the scripts directory prepended! | 
|         |    109   | 
|         |    110  mysql_as_admin install_dev_tc_2011-04-30_023.sql | 
|         |    111  mysql_as_admin update_install_dev_tc_2011-04-30_023.sql |