From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] package/python-web2py: cleaning for space savings
Date: Sat, 25 Jul 2015 21:02:19 +0200 [thread overview]
Message-ID: <20150725210219.2acba408@free-electrons.com> (raw)
In-Reply-To: <1437768317-9283-2-git-send-email-angelo.compagnucci@gmail.com>
Angelo,
On Fri, 24 Jul 2015 22:05:15 +0200, Angelo Compagnucci wrote:
> if BR2_PACKAGE_PYTHON_WEB2PY
>
> +if ! BR2_PACKAGE_PYTHON_WEB2PY_CLEAN_ADMIN
> +
> config BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD
> string "admin panel password"
> default web2py
> @@ -21,3 +23,11 @@ config BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD
> Set the admin panel password.
>
> endif
Then it's more logical for this option to be defined *after* the clean
admin option.
> +
> +config BR2_PACKAGE_PYTHON_WEB2PY_CLEAN_ADMIN
> + bool "clean admin panel application"
Instead of clean, I think you should use "remove".
> define PYTHON_WEB2PY_INSTALL_TARGET_CMDS
> - $(HOST_DIR)/usr/bin/python2 -c 'import os; \
> - os.chdir("$(@D)"); \
> - from gluon.main import save_password; \
> - save_password($(BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD),8000)'
> mkdir -p $(TARGET_DIR)/var/www/web2py
> cp -dpfr $(@D)/* $(TARGET_DIR)/var/www/web2py
> + rm -rf $(TARGET_DIR)/var/www/web2py/welcome.w2p
> + rm -rf $(TARGET_DIR)/var/www/web2py/applications/examples
> + rm -rf $(TARGET_DIR)/var/www/web2py/applications/welcome
> + if test -n "$(BR2_PACKAGE_PYTHON_WEB2PY_CLEAN_ADMIN)" ; then\
> + rm -rf $(TARGET_DIR)/var/www/web2py/applications/admin;\
> + else\
> + $(HOST_DIR)/usr/bin/python2 -c 'import os; \
> + os.chdir("$(@D)"); \
> + from gluon.main import save_password; \
> + save_password($(BR2_PACKAGE_PYTHON_WEB2PY_PASSWORD),8000)';\
> + fi
Please use a make based conditional rather than a shell one.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-07-25 19:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-24 20:05 [Buildroot] [PATCH 0/3] python-web2py improvements Angelo Compagnucci
2015-07-24 20:05 ` [Buildroot] [PATCH 1/3] package/python-web2py: cleaning for space savings Angelo Compagnucci
2015-07-25 19:02 ` Thomas Petazzoni [this message]
2015-07-24 20:05 ` [Buildroot] [PATCH 2/3] package/python-pydal: bump to version v15.07 Angelo Compagnucci
2015-07-26 16:34 ` Thomas Petazzoni
2015-07-24 20:05 ` [Buildroot] [PATCH 3/3] package/python-web2py: bump to version R-2.11.2 Angelo Compagnucci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150725210219.2acba408@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox