Attach to Process dialog: Disallow OK if no process is selected.
[kdbg.git] / admin / debianrules
blob25897f2e39a98fc6907e4cda283eccb73452fcfe
1 #!/usr/bin/perl -w
3 use Shell qw(mv cp mkdir rm) ;
4 use File::Find;
5 use Cwd;
7 $origPwd = `pwd`;
8 chomp $origPwd;
10 $kde_prefix = "/usr";
11 $sysconfdir = "/etc";
12 $kde_includedir = "$kde_prefix/include/kde";
13 $infodir = "$kde_prefix/share/info";
14 $mandir = "$kde_prefix/share/man";
15 $qtdir = "/usr/share/qt3";
17 $kde_cgidir = "$kde_prefix/lib/cgi-bin";
18 $kde_confdir = "$sysconfdir/kde3";
19 $kde_htmldir = "$kde_prefix/share/doc/kde/HTML";
21 if (defined $ENV{DEB_BUILD_OPTIONS} &&
22 $ENV{DEB_BUILD_OPTIONS} =~ /\bnostrip\b/) {
23 $enable_debug="--enable-debug=full";
24 } else {
25 $enable_debug="--disable-debug";
28 if (@ARGV && $ARGV[0] eq 'echodirs') {
29 print STDOUT "export kde_prefix=$kde_prefix\n";
30 print STDOUT "export sysconfdir=$sysconfdir\n";
31 print STDOUT "export kde_includedir=$kde_includedir\n";
32 print STDOUT "export infodir=$infodir\n";
33 print STDOUT "export mandir=$mandir\n";
34 print STDOUT "export qtdir=$qtdir\n";
36 print STDOUT "export kde_cgidir=$kde_cgidir\n";
37 print STDOUT "export kde_confdir=$kde_confdir\n";
38 print STDOUT "export kde_htmldir=$kde_htmldir\n";
40 print STDOUT "configkde=$enable_debug --disable-rpath --prefix=\$(kde_prefix) --sysconfdir=\$(sysconfdir) --includedir=\$(kde_includedir) --infodir=\$(infodir) --mandir=\$(mandir) --with-qt-dir=\$(qtdir)\n";
42 exit