#!/usr/bin/env perl # # 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 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 <; next FIRST unless $test =~ /^[Yy]/; } unlink $full if -f $full; remove_tree $full if -d $full; } } sub clean_distfiles { remove_stuff ($config{SBO_HOME} .'/distfiles'); return; } sub clean_workdirs { remove_stuff ('/tmp/SBo'); return; } clean_distfiles () if $clean_dist eq 'TRUE'; clean_workdirs () if $clean_work eq 'TRUE'; exit 0;