Update Dutch translation
[pkg-k5-afs_openafs.git] / debian / ConfigUtils.pm
blob4d35047bc95b07f72704c8edd888d3032a3ce0d0
1 # This is -*- perl -*-
3 package Debian::OpenAFS::ConfigUtils;
5 use strict;
6 use vars qw( @ISA @EXPORT @unwinds);
7 @ISA = qw(Exporter);
8 require Exporter;
9 @EXPORT = qw(@unwinds run unwind);
11 sub run ($) {
12 print join(' ', @_);
13 print "\n";
14 system (@_) == 0
15 or die "Failed: $?\n";
18 # This subroutine takes a command to run in case of failure. After
19 # each succesful step, this routine should be run with a command to
20 # undo the successful step.
22 sub unwind($) {
23 push @unwinds, $_[0];