diff -r --new-file -u debian-old/control debian/control --- debian-old/control 2016-11-22 11:50:08.000000000 -0500 +++ debian/control 2016-11-22 11:50:08.000000000 -0500 @@ -4,7 +4,7 @@ Maintainer: Maksim Orlovich Build-Depends: debhelper (>= 9), pkg-config, libapr1-dev, apache2-dev, dh-apache2, libpng-dev, libicu-dev, gperf, libjpeg9-dev, zlib1g-dev, protobuf-compiler, libprotobuf-dev, libwebp-dev, - libre2-dev, googletest, libgif-dev, libjsoncpp-dev, libgflags-dev + libre2-dev, googletest, libgif-dev, libjsoncpp-dev, libgflags-dev, dh-exec Standards-Version: 3.9.8 Homepage: https://developers.google.com/speed/pagespeed/module/ Vcs-Git: https://github.com/pagespeed/mod_pagespeed.git @@ -18,3 +18,13 @@ server, saving its optimizations in a cache. Core optimizations include longcaching, minifying, combining, and inlining, which it can apply to JavaScript, CSS, and images. + +Package: pagespeed-js-minify +Architecture: i386 amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Command-line JS minifier from mod_pagespeed + This utility will let you stand-alone minification of + JavaScript files from the command-line. + . + It can also be used to generate library detection + configuration for mod_pagespeed. diff -r --new-file -u debian-old/copyright debian/copyright --- debian-old/copyright 2016-11-22 11:50:08.000000000 -0500 +++ debian/copyright 2016-11-22 11:50:08.000000000 -0500 @@ -60,6 +60,10 @@ Copyright: 2006-2013 The Closure Library Authors License: Apache-2.0 +Files: src/third_party/closure/extra/* +Copyright: 2012 The Closure Compiler Authors +License: Apache-2.0 + Files: src/third_party/domain_registry_provider/* Copyright: 2011 Google Inc. License: Apache-2.0 diff -r --new-file -u debian-old/pagespeed_js_minify.1 debian/pagespeed_js_minify.1 --- debian-old/pagespeed_js_minify.1 1969-12-31 19:00:00.000000000 -0500 +++ debian/pagespeed_js_minify.1 2016-11-22 11:50:08.000000000 -0500 @@ -0,0 +1,25 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" (C) Copyright 2016 Google Inc. +.\" +.TH pagespeed_js_minify 1 "15 Dec 2016" "mod_pagespeed" +.SH NAME +pagespeed_js_minify \- simple JavaScript minifier +.SH SYNOPSIS +.B pagespeed_js_minify [\fI -print_size_and_hash \fR] [\fI file \fR] +.SH DESCRIPTION +\fBpagespeed_js_minify\fP is a simple JavaScript minifier that +removes whitespace where it's safe to do so, but does not +do any variable renaming. +.PP +It can also be used to generate \fIModPagespeedLibrary\fR directives +for use with \fBmod_pagespeed\fP. + +.SH OPTIONS +If a filename is included, it will be used as the input. If not, +the input source code will be read from standard input instead. +.PP +If \fI-print_size_and_hash\fR is included, rather than printing +the minified sourcecode, the arguments appropriate for detecting +the input with the \fIModPagespeedLibrary\fR configuration directive +of \fBmod_pagespeed\fP will be produced. + diff -r --new-file -u debian-old/pagespeed-js-minify.install debian/pagespeed-js-minify.install --- debian-old/pagespeed-js-minify.install 1969-12-31 19:00:00.000000000 -0500 +++ debian/pagespeed-js-minify.install 2016-11-22 11:50:08.000000000 -0500 @@ -0,0 +1,3 @@ +src/out/Release/pagespeed_js_minify /usr/bin/ + + diff -r --new-file -u debian-old/pagespeed-js-minify.manpages debian/pagespeed-js-minify.manpages --- debian-old/pagespeed-js-minify.manpages 1969-12-31 19:00:00.000000000 -0500 +++ debian/pagespeed-js-minify.manpages 2016-11-22 11:50:08.000000000 -0500 @@ -0,0 +1 @@ +debian/pagespeed_js_minify.1 diff -r --new-file -u debian-old/rules debian/rules --- debian-old/rules 2016-11-22 11:50:08.000000000 -0500 +++ debian/rules 2016-11-22 11:50:08.000000000 -0500 @@ -29,6 +29,7 @@ | sed s#@@SSL_CERT_DIR@@#/etc/ssl/certs# \ > ./src/out/Release/install/common/pagespeed.conf cp ./src/out/Release/libmod_pagespeed.so ./src/out/Release/mod_pagespeed.so + cp ./src/out/Release/js_minify ./src/out/Release/pagespeed_js_minify override_dh_auto_clean: -rm -rf src/out/