File: debianrules

package info (click to toggle)
kdelibs 4:3.5.5a.dfsg.1-8
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 86,260 kB
  • ctags: 72,369
  • sloc: cpp: 575,111; xml: 116,385; ansic: 27,951; sh: 10,565; perl: 6,241; java: 4,066; makefile: 3,775; yacc: 2,432; lex: 643; ruby: 329; asm: 166; jsp: 128; haskell: 116; f90: 99; ml: 75; awk: 71; tcl: 29; lisp: 24; php: 9
file content (43 lines) | stat: -rwxr-xr-x 1,299 bytes parent folder | download | duplicates (414)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/perl -w

use Shell qw(mv cp mkdir rm) ;
use File::Find;
use Cwd;

$origPwd = `pwd`;
chomp $origPwd;

$kde_prefix	=	"/usr";
$sysconfdir	=	"/etc";
$kde_includedir	=	"$kde_prefix/include/kde";
$infodir	=	"$kde_prefix/share/info";
$mandir		=	"$kde_prefix/share/man";
$qtdir		=	"/usr/share/qt3";

$kde_cgidir	=	"$kde_prefix/lib/cgi-bin";
$kde_confdir	=	"$sysconfdir/kde3";
$kde_htmldir	=	"$kde_prefix/share/doc/kde/HTML";

if (defined $ENV{DEB_BUILD_OPTIONS} &&
    $ENV{DEB_BUILD_OPTIONS} =~ /\bnostrip\b/) {
	$enable_debug="--enable-debug=full";
} else {
	$enable_debug="--disable-debug";
}

if (@ARGV && $ARGV[0] eq 'echodirs') {
  print STDOUT "export kde_prefix=$kde_prefix\n";
  print STDOUT "export sysconfdir=$sysconfdir\n";
  print STDOUT "export kde_includedir=$kde_includedir\n";
  print STDOUT "export infodir=$infodir\n";
  print STDOUT "export mandir=$mandir\n";
  print STDOUT "export qtdir=$qtdir\n";

  print STDOUT "export kde_cgidir=$kde_cgidir\n";
  print STDOUT "export kde_confdir=$kde_confdir\n";
  print STDOUT "export kde_htmldir=$kde_htmldir\n";

  print STDOUT "configkde=$enable_debug --disable-rpath --prefix=\$(kde_prefix) --sysconfdir=\$(sysconfdir) --includedir=\$(kde_includedir) --infodir=\$(infodir) --mandir=\$(mandir) --with-qt-dir=\$(qtdir)\n";

  exit
}