upload tizen1.0 source
[kernel/linux-2.6.36.git] / debian / templates / image.plain.bug / script
1 #!/bin/bash
2 set -e
3
4 PATH=/sbin:/bin:/usr/sbin:/usr/bin
5
6 dir="$(dirname $0)"
7
8 . "$dir"/info
9
10 for file in "$dir"/include-*; do
11   name="$(echo $file | sed -e 's,^.*/include-,,')"
12   hooks+=($name)
13   . "$file"
14 done
15
16 if [ "$RELEASE" == "$(uname -r)" ]; then
17   for hook in ${hooks[@]}; do
18     add_$hook
19   done
20 else
21   yesno "Does the bug you are reporting affect this computer? " yep
22   same_system=$REPLY
23   for hook in ${hooks[@]}; do
24     ask_$hook
25   done
26 fi