r1795 - in packages/trunk/vdrift/debian: . tools
Gonéri Le Bouder
goneri-guest at costa.debian.org
Fri Oct 6 17:16:06 UTC 2006
Author: goneri-guest
Date: 2006-10-06 17:16:05 +0000 (Fri, 06 Oct 2006)
New Revision: 1795
Added:
packages/trunk/vdrift/debian/tools/
packages/trunk/vdrift/debian/tools/make-vdrift-install-files.pl
Log:
the patch to create the .install files
Added: packages/trunk/vdrift/debian/tools/make-vdrift-install-files.pl
===================================================================
--- packages/trunk/vdrift/debian/tools/make-vdrift-install-files.pl (rev 0)
+++ packages/trunk/vdrift/debian/tools/make-vdrift-install-files.pl 2006-10-06 17:16:05 UTC (rev 1795)
@@ -0,0 +1,64 @@
+#!/usr/bin/perl
+# Copyright (C) 2006 Gonéri Le Bouder <goneri at rulezlan.org>
+#
+# Author: Gonéri Le Bouder <goneri at rulezlan.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#
+# this script create the vdrift-full.install and the vdrift-minimal.install
+# for original tarballs:
+# e.g:
+# ./make-vdrift-install-files.pl vdrift-2006-10-06-data-minimal.tar.bz2 vdrift-2006-10-06-data-full.tar.bz2
+use strict;
+use warnings;
+my $minimal = shift;
+my $full = shift;
+
+my $datadir = "debian/tmp/usr/share/games/vdrift/data/";
+
+if (!( -f $minimal && -f $full)) {
+ print "Usage: make-vdrift-install-files.pl minimal.tar.bz2 full.tar.bz2\n";
+}
+
+
+my %fullfiles;
+my %minimalfiles;
+foreach (`tar tf $full`) {
+ chomp;
+ next if /(SConscript|~|\/)$/;
+ s!.*/data/!!;
+ $fullfiles{$_} = 1;
+}
+
+
+foreach (`tar tf $minimal`) {
+ chomp;
+ next if /(SConscript|~|\/)$/;
+ next if /\/$/;
+ s!.*/data/!!;
+ if (!(defined $fullfiles{$_} && $fullfiles{$_})) {
+ print "File $_ is present in minimal but NOT in full!\n";
+ die;
+ }
+ delete $fullfiles{$_};
+ $minimalfiles{$_} = 1;
+}
+
+open FULL, ">vdrift-full.install" or die;
+print FULL $datadir.$_."\n" foreach (keys %fullfiles);
+close FULL;
+open MINI, ">vdrift-minimal.install" or die;
+print MINI $datadir.$_."\n" foreach (keys %minimalfiles);
+close MINI;
Property changes on: packages/trunk/vdrift/debian/tools/make-vdrift-install-files.pl
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-games-commits
mailing list