mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
Initial revision
This commit is contained in:
27
lib/totgz.pl
Normal file
27
lib/totgz.pl
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/perl
|
||||
#
|
||||
# Package for converting to .tgz file.
|
||||
|
||||
sub Convert { my ($workdir,%fields)=@_;
|
||||
# Nothing to do.
|
||||
}
|
||||
|
||||
# Passed the available info about the package in a hash, return the name of
|
||||
# the tgz package that will be made.
|
||||
sub GetPackageName { my %fields=@_;
|
||||
return "$fields{NAME}.tgz";
|
||||
}
|
||||
|
||||
# Build a tgz file.
|
||||
sub Build { my (%fields)=@_;
|
||||
SafeSystem("tar czf ../".GetPackageName(%fields)." .");
|
||||
}
|
||||
|
||||
# Install the passed tgz file.
|
||||
sub Install { my $package=shift;
|
||||
# Not yet supported. (I really don't like unpacking tgz files into the
|
||||
# root directory. :-)
|
||||
print STDERR "Sorry, installing generated .tgz files in not yet supported.\n";
|
||||
}
|
||||
|
||||
1
|
||||
Reference in New Issue
Block a user