#!/usr/bin/env perl # # vim: set ts=4:noet # # sboclean # script to clean stuff left around from sbotools. # # author: Jacob Pipkin # date: Boomtime, the 6th day of Confusion in the YOLD 3178 # license: WTFPL use 5.16.0; use SBO::Lib; use File::Basename; use Getopt::Std; use File::Path qw(remove_tree); use strict; use warnings FATAL => 'all'; my %config = %SBO::Lib::config; my $self = basename ($0); sub show_usage () { print < =~ /^[Yy]/; } unlink $full if -f $full; remove_tree ($full) if -d $full; } } remove_stuff $config{SBO_HOME} .'/distfiles' if $clean_dist; remove_stuff '/tmp/SBo' if $clean_work; exit 0;