From 39b32bb695b56b13f8caf550348294c877026b46 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 5 Apr 2012 00:38:44 +0200 Subject: [PATCH] Bug 7844 - plack shell helpers --- misc/plack/cpanm-install.sh | 8 ++++++++ misc/plack/debian-install.sh | 9 +++++++++ misc/plack/drop-cache.sh | 2 ++ 3 files changed, 19 insertions(+), 0 deletions(-) create mode 100755 misc/plack/cpanm-install.sh create mode 100755 misc/plack/debian-install.sh create mode 100755 misc/plack/drop-cache.sh diff --git a/misc/plack/cpanm-install.sh b/misc/plack/cpanm-install.sh new file mode 100755 index 0000000..589cb73 --- /dev/null +++ b/misc/plack/cpanm-install.sh @@ -0,0 +1,8 @@ +#!/bin/sh -xe + +sudo cpan App::cpanminus +cpanm --sudo Task::Plack \ + Plack::Middleware::Static::Minifier \ + Plack::Middleware::Debug::Profiler::NYTProf \ + Plack::Middleware::Debug::DBIProfile + diff --git a/misc/plack/debian-install.sh b/misc/plack/debian-install.sh new file mode 100755 index 0000000..d645d07 --- /dev/null +++ b/misc/plack/debian-install.sh @@ -0,0 +1,9 @@ +sudo apt-get install libplack-perl libcgi-emulate-psgi-perl libfile-pushd-perl libtext-microtemplate-perl libclass-method-modifiers-perl \ +libcss-minifier-xs-perl libjavascript-minifier-xs-perl + +sudo dh-make-perl --install --cpan CGI::Compile +sudo dh-make-perl --install --cpan Module::Versions +sudo dh-make-perl --install --cpan Plack::Middleware::Debug +sudo dh-make-perl --install --cpan Plack::Middleware::Static::Minifier +sudo dh-make-perl --build --cpan Plack::Middleware::Debug::DBIProfile + diff --git a/misc/plack/drop-cache.sh b/misc/plack/drop-cache.sh new file mode 100755 index 0000000..a83b111 --- /dev/null +++ b/misc/plack/drop-cache.sh @@ -0,0 +1,2 @@ +#!/bin/sh -x +sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' -- 1.7.2.5