From: Stefano Stabellini Subject: Re: [PATCH 5/8] Allow the user's config to live outside of git Date: Fri, 10 Apr 2015 15:30:00 +0100 Message-ID: References: <1428607792-13418-1-git-send-email-george.dunlap@eu.citrix.com> <1428607792-13418-6-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1428607792-13418-6-git-send-email-george.dunlap@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Stefano Stabellini , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 9 Apr 2015, George Dunlap wrote: > Move the default config to "defconfig" and add config to .gitignore. > If config doesn't exist, then copy defconfig to it in common_init. > > Signed-off-by: George Dunlap Acked-by: Stefano Stabellini but you also need to update the files copied by mkdeb and mkrpm > CC: Stefano Stabellini > --- > .gitignore | 1 + > config => defconfig | 0 > raise | 13 ++++++++----- > 3 files changed, 9 insertions(+), 5 deletions(-) > rename config => defconfig (100%) > > diff --git a/.gitignore b/.gitignore > index 47e9874..35a46c6 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -28,6 +28,7 @@ cscope.in.out > cscope.out > cscope.po.out > .config > +config > > xen-dir > xen-dir-remote > diff --git a/config b/defconfig > similarity index 100% > rename from config > rename to defconfig > diff --git a/raise b/raise > index 142956d..ae435d9 100755 > --- a/raise > +++ b/raise > @@ -1,10 +1,5 @@ > #!/usr/bin/env bash > > -# Include your defaults > -if [[ -e "./config" ]] ; then > - . ./config > -fi > - > # To use this as a library, set RAISIN_PATH appropriately > [[ -z "$RAISIN_PATH" ]] && RAISIN_PATH="$PWD/lib" > > @@ -14,6 +9,14 @@ fi > . ${RAISIN_PATH}/git-checkout.sh > . ${RAISIN_PATH}/build.sh > > +# Include your defaults > +if [[ ! -e "./config" ]] ; then > + echo "No config file found, copying default config" > + cp defconfig config > +fi > + > +. ./config > + > # Set up basic functionality > common_init > > -- > 1.9.1 >