ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Urlader/Urlader.pm
Revision: 1.1
Committed: Mon Jan 2 09:23:03 2012 UTC (12 years, 4 months ago) by root
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# Content
1 =head1 NAME
2
3 Urlader - installer-less single-file independent executables
4
5 =head1 SYNOPSIS
6
7 use Urlader;
8
9 =head1 DESCRIPTION
10
11 =over 4
12
13 =cut
14
15 package Urlader;
16
17 use common::sense;
18
19 BEGIN {
20 our $VERSION = '0.2';
21
22 use XSLoader;
23 XSLoader::load __PACKAGE__, $VERSION;
24 }
25
26 our $DATADIR;
27 our $EXE_ID;
28 our $EXE_VER;
29 our $EXE_DIR; # %AppData%/urlader/EXE_ID
30 our $EXECDIR; # %AppData%/urlader/EXE_ID/i-EXE_VER
31
32 sub _get_env {
33 $EXE_ID = getenv "URLADER_EXE_ID";
34 $EXE_VER = getenv "URLADER_EXE_VER";
35 $EXE_DIR = getenv "URLADER_EXE_DIR"; # %AppData%/urlader/EXE_ID
36 $EXECDIR = getenv "URLADER_EXECDIR"; # %AppData%/urlader/EXE_ID/i-EXE_VER
37 }
38
39 _set_datadir unless defined getenv "URLADER_DATADIR";
40 $DATADIR = getenv "URLADER_DATADIR";
41
42 _get_env;
43
44 sub set_exe_info($$) {
45 &_set_exe_info;
46 _get_env;
47 }
48
49
50 1;
51
52 =back
53
54 =head1 AUTHOR
55
56 Marc Lehmann <schmorp@schmorp.de>
57 http://home.schmorp.de/
58
59 =cut
60