3 use Shell
qw(mv cp mkdir rm) ;
11 if (@ARGV && $ARGV[0] eq 'cleanup') {
13 if (-d
"debian/tmp/usr/share/config") {
14 if (! -d
"debian/tmp/$kde_confdir") {
15 system("mv debian/tmp/usr/share/config debian/tmp/$kde_confdir");
18 system("rm -f `find debian/ -name \".anchors\"`");
19 system("chmod 755 debian/*preinst debian/*postinst");
24 $QTDIR="/usr/share/qt";
26 $kde_htmldir="$kde_prefix/share/doc/kde/HTML";
27 $kde_icondir="$kde_prefix/share/icons";
28 $kde_sounddir="$kde_prefix/share/sounds";
29 $kde_datadir="$kde_prefix/share/apps";
30 $kde_locale="$kde_prefix/share/locale";
31 $kde_confdir="/etc/kde2";
32 $kde_cgidir="$kde_prefix/lib/cgi-bin";
33 $kde_appsdir="$kde_prefix/share/applnk";
34 $kde_mimedir="$kde_prefix/share/mimelnk";
35 $kde_wallpaperdir="$kde_prefix/share/wallpapers";
36 $kde_bindir="$kde_prefix/bin";
37 $kde_servicesdir="$kde_prefix/share/services";
38 $kde_servicetypesdir="$kde_prefix/share/servicetypes";
39 $kde_includedir="$kde_prefix/include/kde";
40 $kde_libdir="$kde_prefix/lib";
41 $mandir="$kde_prefix/share/man";
42 $infodir="$kde_prefix/share/info";
43 $IDL="$kde_bindir/cuteidl";
44 $DCOPIDL="$kde_bindir/dcopidl";
45 $DCOPIDL2CPP="$kde_bindir/dcopidl2cpp";
46 $KDB2HTML="$kde_bindir/kdb2html";
47 $MCOPIDL="$kde_bindir/mcopidl";
48 $ARTSCCONFIG="$kde_bindir/artsc-config";
50 if (@ARGV && $ARGV[0] eq 'echodirs') {
51 print STDOUT
"export kde_htmldir=$kde_htmldir\n";
52 print STDOUT
"export kde_appsdir=$kde_appsdir\n";
53 print STDOUT
"export kde_icondir=$kde_icondir\n";
54 print STDOUT
"export kde_sounddir=$kde_sounddir\n";
55 print STDOUT
"export kde_datadir=$kde_datadir\n";
56 print STDOUT
"export kde_cgidir=$kde_cgidir\n";
57 print STDOUT
"export kde_locale=$kde_locale\n";
58 print STDOUT
"export kde_confdir=$kde_confdir\n";
59 print STDOUT
"export kde_mimedir=$kde_mimedir\n";
60 print STDOUT
"export kde_wallpaperdir=$kde_wallpaperdir\n";
61 print STDOUT
"export kde_bindir=$kde_bindir\n";
62 print STDOUT
"export kde_servicesdir=$kde_servicesdir\n";
63 print STDOUT
"export kde_servicetypesdir=$kde_servicetypesdir\n";
64 print STDOUT
"export kde_includedir=$kde_includedir\n";
65 print STDOUT
"export kde_libdir=$kde_libdir\n";
66 print STDOUT
"export mandir=$mandir\n";
67 print STDOUT
"export infodir=$infodir\n";
68 print STDOUT
"export QTDIR=$QTDIR\n";
69 print STDOUT
"export kde_prefix=$kde_prefix\n";
70 print STDOUT
"export INSTALL_DATA=install -p -c -m 644\n";
71 print STDOUT
"export IDL=$IDL\n";
72 print STDOUT
"export DCOPIDL=$DCOPIDL\n";
73 print STDOUT
"export DCOPIDL2CPP=$DCOPIDL2CPP\n";
74 print STDOUT
"export KDB2HTML=$KDB2HTML\n";
75 print STDOUT
"export MCOPIDL=$MCOPIDL\n";
76 print STDOUT
"export ARTSCCONFIG=$ARTSCCONFIG\n";
77 print STDOUT
"configkde=--disable-rpath --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n";
78 print STDOUT
"configkdevelop=--enable-docbase --enable-kdoc2 --disable-rpath --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --with-kdelibsdoc-dir=/usr/share/doc/kdelibs3-doc/html\n";
79 print STDOUT
"configkdepim=--with-extra-includes=/usr/include/libpisock --enable-shared --disable-rpath --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n";