Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] bootstrap: remove development/debug files
@ 2015-01-12 20:23 Yegor Yefremov
  2015-01-12 21:00 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Yegor Yefremov @ 2015-01-12 20:23 UTC (permalink / raw)
  To: buildroot

*.min.* files are sufficient for a production system, so
remove other files, that will be used during development
stage.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/bootstrap/bootstrap.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/bootstrap/bootstrap.mk b/package/bootstrap/bootstrap.mk
index 1bf8aa2..f79a00f 100644
--- a/package/bootstrap/bootstrap.mk
+++ b/package/bootstrap/bootstrap.mk
@@ -16,6 +16,11 @@ endef
 define BOOTSTRAP_INSTALL_TARGET_CMDS
 	mkdir -p $(TARGET_DIR)/var/www/bootstrap
 	cp -dpfr $(@D)/dist/* $(TARGET_DIR)/var/www/bootstrap
+
+	rm $(TARGET_DIR)/var/www/bootstrap/css/bootstrap-theme.css*
+	rm $(TARGET_DIR)/var/www/bootstrap/css/bootstrap.css*
+	rm $(TARGET_DIR)/var/www/bootstrap/js/npm.js
+	rm $(TARGET_DIR)/var/www/bootstrap/js/bootstrap.js
 endef
 
 $(eval $(generic-package))
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] bootstrap: remove development/debug files
  2015-01-12 20:23 [Buildroot] [PATCH] bootstrap: remove development/debug files Yegor Yefremov
@ 2015-01-12 21:00 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-01-12 21:00 UTC (permalink / raw)
  To: buildroot

Dear Yegor Yefremov,

On Mon, 12 Jan 2015 21:23:38 +0100, Yegor Yefremov wrote:
> *.min.* files are sufficient for a production system, so
> remove other files, that will be used during development
> stage.
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  package/bootstrap/bootstrap.mk | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/package/bootstrap/bootstrap.mk b/package/bootstrap/bootstrap.mk
> index 1bf8aa2..f79a00f 100644
> --- a/package/bootstrap/bootstrap.mk
> +++ b/package/bootstrap/bootstrap.mk
> @@ -16,6 +16,11 @@ endef
>  define BOOTSTRAP_INSTALL_TARGET_CMDS
>  	mkdir -p $(TARGET_DIR)/var/www/bootstrap
>  	cp -dpfr $(@D)/dist/* $(TARGET_DIR)/var/www/bootstrap
> +
> +	rm $(TARGET_DIR)/var/www/bootstrap/css/bootstrap-theme.css*
> +	rm $(TARGET_DIR)/var/www/bootstrap/css/bootstrap.css*
> +	rm $(TARGET_DIR)/var/www/bootstrap/js/npm.js
> +	rm $(TARGET_DIR)/var/www/bootstrap/js/bootstrap.js
>  endef
>  
>  $(eval $(generic-package))

At this point, I am wondering if it is not simpler/shorter to install
only the necessary files, rather than install everything and remove
what's unneeded. Can you compare the two options?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-12 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-12 20:23 [Buildroot] [PATCH] bootstrap: remove development/debug files Yegor Yefremov
2015-01-12 21:00 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox