source: trunk/Taper/admin/debianrules@ 4416

Last change on this file since 4416 was 4307, checked in by merck, 20 years ago
new project
  • Property svn:executable set to *
File size: 4.9 KB
Line 
1#!/usr/bin/perl -w
2
3use Shell qw(mv cp mkdir rm) ;
4use File::Find;
5use Cwd;
6
7$origPwd = `pwd`;
8chomp $origPwd;
9
10$kde_confdir = "/etc/kde3";
11$kde_prefix = "/usr";
12$kde_bindir = "$kde_prefix/bin";
13$kde_includedir = "$kde_prefix/include/kde";
14$kde_libdir = "$kde_prefix/lib";
15$kde_cgidir = "$kde_prefix/lib/cgi-bin";
16$kde_moduledir = "$kde_prefix/lib/kde3";
17$kde_appsdir = "$kde_prefix/share/applnk";
18$kde_datadir = "$kde_prefix/share/apps";
19$kde_htmldir = "$kde_prefix/share/doc/kde/HTML";
20$kde_icondir = "$kde_prefix/share/icons";
21$kde_locale = "$kde_prefix/share/locale";
22$kde_mimedir = "$kde_prefix/share/mimelnk";
23$kde_servicesdir = "$kde_prefix/share/services";
24$kde_servicetypesdir = "$kde_prefix/share/servicetypes";
25$kde_sounddir = "$kde_prefix/share/sounds";
26$kde_templatesdir = "$kde_prefix/share/templates";
27$kde_wallpaperdir = "$kde_prefix/share/wallpapers";
28
29$mandir = "$kde_prefix/share/man";
30$infodir = "$kde_prefix/share/info";
31$sysconfdir = "/etc";
32
33$QTDIR = "/usr/share/qt3";
34$IDL = "$kde_bindir/cuteidl";
35$DCOPIDL = "$kde_bindir/dcopidl";
36$DCOPIDL2CPP = "$kde_bindir/dcopidl2cpp";
37$KDB2HTML = "$kde_bindir/kdb2html";
38$MCOPIDL = "$kde_bindir/mcopidl";
39$ARTSCCONFIG = "$kde_bindir/artsc-config";
40
41if (defined $ENV{DEB_BUILD_OPTIONS} &&
42 $ENV{DEB_BUILD_OPTIONS} =~ /\bdebug\b/) {
43 $enable_debug="--enable-debug=full";
44 $enable_final="";
45}
46else {
47 $enable_debug="--disable-debug";
48 if (defined $ENV{DEB_BUILD_OPTIONS} &&
49 $ENV{DEB_BUILD_OPTIONS} =~ /\bfinal\b/) {
50 $enable_final="--enable-final";
51 } else {
52 $enable_final="";
53 }
54}
55
56if (@ARGV && $ARGV[0] eq 'echodirs') {
57 print STDOUT "export kde_confdir=$kde_confdir\n";
58 print STDOUT "export kde_prefix=$kde_prefix\n";
59 print STDOUT "export kde_bindir=$kde_bindir\n";
60 print STDOUT "export kde_includedir=$kde_includedir\n";
61 print STDOUT "export kde_libdir=$kde_libdir\n";
62 print STDOUT "export kde_cgidir=$kde_cgidir\n";
63 print STDOUT "export kde_moduledir=$kde_moduledir\n";
64 print STDOUT "export kde_appsdir=$kde_appsdir\n";
65 print STDOUT "export kde_datadir=$kde_datadir\n";
66 print STDOUT "export kde_htmldir=$kde_htmldir\n";
67 print STDOUT "export kde_icondir=$kde_icondir\n";
68 print STDOUT "export kde_locale=$kde_locale\n";
69 print STDOUT "export kde_mimedir=$kde_mimedir\n";
70 print STDOUT "export kde_servicesdir=$kde_servicesdir\n";
71 print STDOUT "export kde_servicetypesdir=$kde_servicetypesdir\n";
72 print STDOUT "export kde_sounddir=$kde_sounddir\n";
73 print STDOUT "export kde_templatesdir=$kde_templatesdir\n";
74 print STDOUT "export kde_wallpaperdir=$kde_wallpaperdir\n";
75
76 print STDOUT "export mandir=$mandir\n";
77 print STDOUT "export infodir=$infodir\n";
78 print STDOUT "export sysconfdir=$sysconfdir\n";
79
80 print STDOUT "export QTDIR=$QTDIR\n";
81 print STDOUT "export IDL=$IDL\n";
82 print STDOUT "export DCOPIDL=$DCOPIDL\n";
83 print STDOUT "export DCOPIDL2CPP=$DCOPIDL2CPP\n";
84 print STDOUT "export KDB2HTML=$KDB2HTML\n";
85 print STDOUT "export MCOPIDL=$MCOPIDL\n";
86 print STDOUT "export ARTSCCONFIG=$ARTSCCONFIG\n";
87 print STDOUT "export INSTALL_DATA=install -p -c -m 644\n";
88
89 print STDOUT "configkde=$enable_debug $enable_final --disable-rpath --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --sysconfdir=\$(sysconfdir) --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt3 --mandir=\$(mandir) --infodir=\$(infodir) --with-xinerama\n";
90 print STDOUT "configkdevelop=$enable_debug $enable_final --disable-rpath --enable-docbase --enable-kdoc2 --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt3 --mandir=\$(mandir) --with-kdelibsdoc-dir=/usr/share/doc/kdelibs3-doc/html --with-xinerama\n";
91 print STDOUT "configkdepim=$enable_debug $enable_final --disable-rpath --with-extra-includes=/usr/include/libpisock --enable-shared --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --with-qt-includes=/usr/include/qt3 --mandir=\$(mandir) --infodir=\$(infodir) --with-xinerama\n";
92
93 exit
94}
95
96if (@ARGV && $ARGV[0] eq 'echoglobals') {
97 print STDOUT "[Directories]\n";
98 print STDOUT "dir_config=$kde_confdir\n";
99 print STDOUT "dir_tmp=/tmp\n";
100 print STDOUT "dir_socket=/tmp\n";
101 print STDOUT "dir_exe=$kde_bindir\n";
102 print STDOUT "dir_lib=$kde_libdir\n";
103 print STDOUT "dir_cgi=$kde_cgidir\n";
104 print STDOUT "dir_module=$kde_moduledir\n";
105 print STDOUT "dir_apps=$kde_appsdir\n";
106 print STDOUT "dir_data=$kde_datadir\n";
107 print STDOUT "dir_html=$kde_htmldir\n";
108 print STDOUT "dir_icon=$kde_icondir\n";
109 print STDOUT "dir_locale=$kde_locale\n";
110 print STDOUT "dir_mime=$kde_mimedir\n";
111 print STDOUT "dir_services=$kde_servicesdir\n";
112 print STDOUT "dir_servicetypes=$kde_servicetypesdir\n";
113 print STDOUT "dir_sound=$kde_sounddir\n";
114 print STDOUT "dir_templates=$kde_templatesdir\n";
115 print STDOUT "dir_wallpaper=$kde_wallpaperdir\n";
116 print STDOUT "[General]\n";
117 print STDOUT "TerminalApplication=x-terminal-emulator\n";
118 exit
119}
Note: See TracBrowser for help on using the repository browser.