# # # add_file "devl-install" # content [83cd2b82bf21b4767a1b6a5724b4e5487133f0bf] # # set "devl-install" # attr "mtn:execute" # value "true" # ============================================================ --- devl-install 83cd2b82bf21b4767a1b6a5724b4e5487133f0bf +++ devl-install 83cd2b82bf21b4767a1b6a5724b4e5487133f0bf @@ -0,0 +1,175 @@ +#!/usr/bin/perl +############################################################################## +# +# File Name - devl-install +# +# Description - Perl Linux development `installer' for mtn-browse +# +# Author - A.E.Cooper. +# +# Legal Stuff - Copyright (c) 2007 Anthony Edward Cooper +#
. +# +# This program is free software; you can redistribute it +# and/or modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; +# either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public +# License along with this software; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307 USA. +# +############################################################################## +# +############################################################################## +# +# Global Data For This Module +# +############################################################################## + + + +# ***** DIRECTIVES ***** + +require 5.008; + +use strict; +use warnings; + +# ***** REQUIRED PACKAGES ***** + +# Standard Perl and CPAN modules. + +use Cwd; +use File::Basename; +use IO::Dir; +use IO::File; +# +############################################################################## +# +# Routine - Main Body Of Code +# +# Description - This is the main body of code for the install script. +# +# Data - @_ : The command line arguments. +# Return Value : Unix exit code. +# +############################################################################## + + + +{ + + my($globs_file, + $infile, + $input, + $lib_dir, + $mas_dir, + $outfile, + $prefix_dir); + + print("Linux development in-place installer for mtn-browse\n\n"); + + $globs_file = "/usr/share/mime/globs"; + $prefix_dir = getcwd(); + while (1) + { + print("Where is your MIME globs file? [" . $globs_file . "]: "); + chomp($input =