xisofs

 view release on metacpan or  search on metacpan

defaults.pm  view on Meta::CPAN

#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

package defaults;

sub load
{
	my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home) = getpwuid($>);

	undef %defaults::item;

	if (-e "$home/.xisofsrc")
	{
		if (open(IN,"$home/.xisofsrc"))
		{
			while (<IN>)
			{
				chomp;

defaults.pm  view on Meta::CPAN

		}
		else
		{
			print "$home/.xisofsrc : $!\n";
		}
	}
}

sub save
{
	my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home) = getpwuid($>);

	if (open(OUT,">$home/.xisofsrc"))
	{
		while (($key,$val) = each %defaults::item)
		{
			print OUT "$key = $val\n";
		}
		close(OUT);
	}
	else

install.pl  view on Meta::CPAN

# Where the main binary is sym-linked to
$binDir = "/usr/local/bin";

# Where the perl executable is, leave blank for PATH
$perlPath = "";

#----------------------------------------------------------------------
# Nothing below here should need changing
#----------------------------------------------------------------------

($who) = getpwuid($>);

if ($who ne 'root')
{
	print "You need to be 'root' to run this script, not '$who'\n";
	exit 1;
}

if ($perlPath eq '')
{
	chomp($perlPath = `which perl`);

xisofs.pl  view on Meta::CPAN

{
	my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir);
	my ($cmd) = @_;

	if (length($ENV{'HOME'}) > 0)
	{
		$dir = $ENV{'HOME'};
	}
	else
	{
		($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir) = getpwuid($>);
	}
	my $filename = '';

	$dir = '' if ($dir eq '/');

	if (-r '.mkisofsrc')
	{
		$filename = '.mkisofsrc';
	}
	else



( run in 0.253 second using v1.01-cache-2.11-cpan-454fe037f31 )