[RFC/PATCH 3/4] gitweb: Create Gitweb::HTML module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Create Gitweb::HTML module in 'gitweb/lib/Gitweb/HTML.pm'
to import all the Gitweb::HTML::* modules into it.

Update gitweb/Makefile to install Gitweb::HTML alongside gitweb.

Signed-off-by: Pavan Kumar Sunkara <pavan.sss1991@xxxxxxxxx>
---
 gitweb/Makefile           |    1 +
 gitweb/gitweb.perl        |    2 +-
 gitweb/lib/Gitweb/HTML.pm |   17 +++++++++++++++++
 3 files changed, 19 insertions(+), 1 deletions(-)
 create mode 100644 gitweb/lib/Gitweb/HTML.pm

diff --git a/gitweb/Makefile b/gitweb/Makefile
index 28f0858..5e44ace 100644
--- a/gitweb/Makefile
+++ b/gitweb/Makefile
@@ -116,6 +116,7 @@ GITWEB_LIB_GITWEB += lib/Gitweb/Config.pm
 GITWEB_LIB_GITWEB += lib/Gitweb/Request.pm
 GITWEB_LIB_GITWEB += lib/Gitweb/Escape.pm
 GITWEB_LIB_GITWEB += lib/Gitweb/Git.pm
+GITWEB_LIB_GITWEB += lib/Gitweb/HTML.pm
 # Files: gitweb/lib/Gitweb/HTML
 GITWEB_LIB_GITWEB_HTML += lib/Gitweb/HTML/Link.pm
 
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index bd11ae0..12646c0 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -28,7 +28,7 @@ use Gitweb::Git;
 use Gitweb::Config;
 use Gitweb::Request;
 use Gitweb::Escape;
-use Gitweb::HTML::Link;
+use Gitweb::HTML;
 
 BEGIN {
 	CGI->compile() if $ENV{'MOD_PERL'};
diff --git a/gitweb/lib/Gitweb/HTML.pm b/gitweb/lib/Gitweb/HTML.pm
new file mode 100644
index 0000000..a0a1606
--- /dev/null
+++ b/gitweb/lib/Gitweb/HTML.pm
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+#
+# Gitweb::HTML -- gitweb's HTML subs package
+#
+# This program is licensed under the GPLv2
+
+package Gitweb::HTML;
+
+use strict;
+use warnings;
+use Exporter qw(import);
+
+our @EXPORT = qw(href);
+
+use Gitweb::HTML::Link;
+
+1;
-- 
1.7.1.454.ga8c50c

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]