Move sizeme_graph.pl to bin and the static files into lib so they're installed.
Tim Bunce [Tue, 2 Oct 2012 21:38:58 +0000 (22:38 +0100)]
14 files changed:
Makefile.PL
bin/sizeme_graph.pl [moved from static/sizeme_graph.pl with 97% similarity]
lib/Devel/SizeMe/Graph.pm [new file with mode: 0644]
lib/Devel/SizeMe/Graph/static/css/Treemap.css [moved from static/public/css/Treemap.css with 100% similarity]
lib/Devel/SizeMe/Graph/static/css/base.css [moved from static/public/css/base.css with 100% similarity]
lib/Devel/SizeMe/Graph/static/excanvas.js [moved from static/public/excanvas.js with 100% similarity]
lib/Devel/SizeMe/Graph/static/jit-yc.js [moved from static/public/jit-yc.js with 100% similarity]
lib/Devel/SizeMe/Graph/static/jit.js [moved from static/public/jit.js with 100% similarity]
lib/Devel/SizeMe/Graph/static/jquery-1.8.1-min.js [moved from static/public/jquery-1.8.1-min.js with 100% similarity]
lib/Devel/SizeMe/Graph/static/sprintf.js [moved from static/public/sprintf.js with 100% similarity]
lib/Devel/SizeMe/Graph/static/treemap.js [moved from static/public/treemap.js with 100% similarity]
static/public/css/col1.png [deleted file]
static/public/css/col2.png [deleted file]
static/public/css/gradient.png [deleted file]

index 53de44f..913270c 100644 (file)
@@ -28,7 +28,7 @@ WriteMakefile(
         XSLoader => 0,
         ORLite => 0,
     },
-    EXE_FILES => [ 'bin/sizeme_store.pl' ],
+    EXE_FILES => [ 'bin/sizeme_store.pl', 'bin/sizeme_graph.pl' ],
     clean => {
         FILES => 'refcounted_he.h',
     },
similarity index 97%
rename from static/sizeme_graph.pl
rename to bin/sizeme_graph.pl
index 9199141..927e989 100755 (executable)
@@ -8,6 +8,7 @@ use JSON::XS;
 use Getopt::Long;
 use Storable qw(dclone);
 use Devel::Dwarn;
+use Devel::SizeMe::Graph;
 
 require ORLite;
 
@@ -52,6 +53,11 @@ ORLite->import({
     #unicode => 1, # XXX
 });
 
+my $static_dir = $INC{'Devel/SizeMe/Graph.pm'} or die 'panic';
+$static_dir =~ s:\.pm$:/static:;
+die "panic $static_dir" unless -d $static_dir;
+push @{ app->static->paths}, $static_dir;
+
 
 # Documentation browser under "/perldoc"
 plugin 'PODRenderer';
diff --git a/lib/Devel/SizeMe/Graph.pm b/lib/Devel/SizeMe/Graph.pm
new file mode 100644 (file)
index 0000000..c843363
--- /dev/null
@@ -0,0 +1,3 @@
+package Devel::SizeMe::Graph;
+
+1;
diff --git a/static/public/css/col1.png b/static/public/css/col1.png
deleted file mode 100644 (file)
index 7ab008f..0000000
Binary files a/static/public/css/col1.png and /dev/null differ
diff --git a/static/public/css/col2.png b/static/public/css/col2.png
deleted file mode 100644 (file)
index c0d3891..0000000
Binary files a/static/public/css/col2.png and /dev/null differ
diff --git a/static/public/css/gradient.png b/static/public/css/gradient.png
deleted file mode 100644 (file)
index e283966..0000000
Binary files a/static/public/css/gradient.png and /dev/null differ