Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a8230651bb
Fetching contributors…

Cannot retrieve contributors at this time

83 lines (56 sloc) 1.641 kB
#! perl -w
################################################################################
# Copyright: 2005 The Perl Foundation. All Rights Reserved.
# $Id$
################################################################################
=head1 TITLE
tools/dev/mk_inno.pl - Create a script for Inno Setup
=head1 SYNOPSIS
% perl tools/dev/mk_inno.pl [options]
=head1 DESCRIPTION
=head2 Options
=over 4
=item C<prefix>
The install prefix.
=item C<version>
The parrot version.
=back
=head1 SEE ALSO
http://www.jrsoftware.org/
=cut
################################################################################
my %options = (
version => 'x.y.z',
prefix => '\usr\local\parrot',
);
foreach (@ARGV) {
if (/^--([^=]+)=(.*)/) {
$options{$1} = $2;
}
}
$options{prefix} =~ s/\//\\/g;
open OUT, "> parrot.iss" or die "Can't open parrot.iss";
print OUT qq{
; generated by tools/dev/mk_setup.pl for the Inno Setup Script Compiler.
[Setup]
AppName=parrot
AppVerName=parrot $options{version}
AppPublisher=The Perl Foundation
AppPublisherURL=http://www.parrotcode.org/
AppSupportURL=http://www.parrotcode.org/
AppUpdatesURL=http://www.parrotcode.org/
DefaultDirName={pf}\\parrot-$options{version}
DefaultGroupName=parrot
AllowNoIcons=yes
LicenseFile=$options{prefix}\\LICENSES\\Artistic
OutputDir=.\\
OutputBaseFilename=setup-parrot-$options{version}
Compression=lzma
SolidCompression=yes
ChangesAssociations=yes
[Files]
Source: "$options{prefix}\\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
[Icons]
Name: "{group}\\{cm:UninstallProgram,parrot}"; Filename: "{uninstallexe}"
};
close OUT;
Jump to Line
Something went wrong with that request. Please try again.