~ubuntu-branches/ubuntu/intrepid/xscreensaver/intrepid

« back to all changes in this revision

Viewing changes to hacks/vidwhacker

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2007-12-06 09:53:12 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206095312-fkzcwe4vqm50z208
Tags: 5.04-1ubuntu1
* Merge from debian unstable, remaining changes:
  - split xscreensaver into xscreensaver, xscreensaver-data (hacks we ship),
    xscreensaver-data-extra (hacks in universe). split out gl hacks for
    universe to xscreensaver-gl-extra
  - use fridge for rss screensavers
  - create and install .desktop files for gnome-screensaver

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/perl -w
2
 
# vidwhacker, for xscreensaver.  Copyright (c) 1998-2005 Jamie Zawinski.
 
2
# vidwhacker, for xscreensaver.  Copyright (c) 1998-2006 Jamie Zawinski.
3
3
#
4
4
# Permission to use, copy, modify, distribute, and sell this software and its
5
5
# documentation for any purpose is hereby granted without fee, provided that
21
21
use strict;
22
22
 
23
23
my $progname = $0; $progname =~ s@.*/@@g;
24
 
my $version = q{ $Revision: 1.28 $ }; $version =~ s/^[^0-9]+([0-9.]+).*$/$1/;
 
24
my $version = q{ $Revision: 1.29 $ }; $version =~ s/^[^0-9]+([0-9.]+).*$/$1/;
25
25
 
26
26
my $verbose = 0;
27
27
my $use_stdin = 0;
479
479
 
480
480
  read_config;
481
481
 
 
482
  # sanity checking - is pbm installed?
 
483
  # (this is a non-exhaustive but representative list)
 
484
  foreach ("ppmtopgm", "pgmenhance", "pnminvert", "pnmarith", "pnmdepth") {
 
485
    which ($_) || error "$_ not found on \$PATH.";
 
486
  }
 
487
 
482
488
  if (!$use_stdout) {
483
489
    $_ = `xdpyinfo 2>&-`;
484
490
    ($screen_width) =~ m/ dimensions: +(\d+)x(\d+) pixels/;