[Pkg-xfce-commits] r168 - scripts

Yves-Alexis Perez corsac-guest@costa.debian.org
Sun, 05 Jun 2005 12:13:20 +0000


Author: corsac-guest
Date: 2005-06-05 12:13:20 +0000 (Sun, 05 Jun 2005)
New Revision: 168

Added:
   scripts/build-sources.pl
   scripts/desktop-build.txt
   scripts/goodies-build.txt
Log:
Non working autobuild script...


Added: scripts/build-sources.pl
===================================================================
--- scripts/build-sources.pl	2005-05-27 19:34:35 UTC (rev 167)
+++ scripts/build-sources.pl	2005-06-05 12:13:20 UTC (rev 168)
@@ -0,0 +1,46 @@
+#!/usr/bin/perl
+# Copyright (C) 2005 Yves-Alexis Perez <corsac@corsac.net>
+# This code is released under the terms of the GNU GPL
+#
+# vim:textwidth=0 
+
+use strict;
+use warnings;
+use File::Basename;
+
+(!$ARGV[0] || $ARGV[0] !~ /goodies|desktop/) and print "Usage: $0 (goodies|desktop)\n" and exit 1;
+
+my $debug = 0;
+if ($debug) {
+	print "W: Debug mode. Change the \$debug variable to 0 if you want to really do something.\n";
+}
+
+my ($debian_dirs, $sources_file) = ("", "");
+
+if($ARGV[0] =~ /goodies/) {
+	$debian_dirs = "../goodies";
+	$sources_file = "goodies-build.txt";
+}
+elsif($ARGV[0] =~ /desktop/) {
+	$debian_dirs = "../desktop/trunk";
+	$sources_file = "desktop-build.txt";
+}
+else {
+	print STDERR "E: Something REALLY weird happened";
+	exit 1;
+}
+
+if (! -f $sources_file or ! open SOURCES, "< $sources_file") {
+	print STDERR "E: No sources file found. Exiting.\n";
+	exit 1;
+}
+
+my $basedir = `pwd`;
+while(<SOURCES>) {
+	chop;
+	my $pkg = $_;
+	chdir "$debian_dirs/$pkg";
+	system("svn-buildpackage -rfakeroot -us -uc --svn-ignore-new >/dev/null");
+	chdir("$basedir") or die "Can't chdir to $basedir";
+	system("sudo dpkg -i $debian_dirs/build_area/*$pkg*deb");
+}


Property changes on: scripts/build-sources.pl
___________________________________________________________________
Name: svn:executable
   + *

Added: scripts/desktop-build.txt
===================================================================
--- scripts/desktop-build.txt	2005-05-27 19:34:35 UTC (rev 167)
+++ scripts/desktop-build.txt	2005-06-05 12:13:20 UTC (rev 168)
@@ -0,0 +1,23 @@
+dbh
+gtk2-engines-xfce
+xfce4-icon-theme
+libxfce4util
+libxfcegui4
+libxfce4mcs
+xfce4-appfinder
+xfce-mcs-manager
+xfce4-session
+xfce-mcs-plugins
+xfce4-iconbox
+xfce4-utils
+xffm4
+xfprint4
+xfwm4
+xfwm4-themes
+xfce4-panel
+xfdesktop4
+xfce4-systray
+xfcalendar
+xfce4-mixer
+xfce4-toys
+xfce4-trigger-launcher

Added: scripts/goodies-build.txt
===================================================================
--- scripts/goodies-build.txt	2005-05-27 19:34:35 UTC (rev 167)
+++ scripts/goodies-build.txt	2005-06-05 12:13:20 UTC (rev 168)
@@ -0,0 +1,27 @@
+exo
+xfce4-artwork
+xfce4-battery-plugin
+xfce4-clipman-plugin
+xfce4-cpugraph-plugin
+xfce4-datetime-plugin
+xfce4-diskperf-plugin
+xfce4-fsguard-plugin
+xfce4-genmon-plugin
+xfce4-i8k-plugin
+xfce4-minicmd-plugin
+xfce4-netload-plugin
+xfce4-notes-plugin
+xfce4-sensors-plugin
+xfce4-showdesktop-plugin
+xfce4-systemload-plugin
+xfce4-taskbar-plugin
+xfce4-wavelan-plugin
+xfce4-weather-plugin
+xfce4-windowlist-plugin
+xfce4-xkb-plugin
+xfce4-xmms-plugin
+xfce4-terminal
+xfce4-mount-plugin
+xfce4-quicklauncher-plugin
+mousepad
+xfmedia