[PATCH 2/2] [Fedora] Create output directory in case it doesn't exist (git doesn't support adding of empty dirs)

Shawn Wells shawn at redhat.com
Mon Oct 21 18:34:21 UTC 2013


On 10/21/13 2:31 PM, Jan Lieskovsky wrote:
> Create the Fedora/output directory in case
> it doesn't exist yet (so fedora_guide.xslt
> generation would succeed), since Git doesn't
> support empty directories, just files (also
> required to support SCAP content on multiple /
> different Fedora versions).
>
> Passed basic sanity && regression testing,
> pushed to master.
>
> Thank you && Regards, Jan.
> --
> Jan iankko Lieskovsky / Red Hat Security Technologies Team
>
> 0002-Fedora-Create-output-directory-in-case-it-doesn-t-ex.patch
>
>
>  From e54f05e0ef70ea60efd029317ec219f14cfd81cf Mon Sep 17 00:00:00 2001
> From: Jan Lieskovsky<jlieskov at redhat.com>
> Date: Mon, 21 Oct 2013 20:22:43 +0200
> Subject: [PATCH 2/2] [Fedora] Create output directory in case it doesn't exist
>   (git doesn't support adding of empty dirs)
>
> Signed-off-by: Jan Lieskovsky<jlieskov at redhat.com>
> ---
>   Fedora/Makefile | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/Fedora/Makefile b/Fedora/Makefile
> index 1bdb6fe..48e5db8 100644
> --- a/Fedora/Makefile
> +++ b/Fedora/Makefile
> @@ -13,6 +13,7 @@ FEDORA_GUIDE_XML = fedora_guide.xml
>   all: shorthand2xccdf guide content dist
>   
>   set-fedora-release:
> +	mkdir -p $(OUT)
>   #	obtain full Fedora release name and CPE from the system
>   	$(TRANS)/genguidexslt.py $(OUT)/$(FEDORA_GUIDE_XSLT)
>   #	update Fedora/input/guide.xml based on retrieved values
> -- 1.8.3.1

It can be annoying to have output/ showup within your git commit 
processes, so we created a persistent output/.gitignore file (which also 
persisted the output/ directory). Perhaps this could be an approach?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/scap-security-guide/attachments/20131021/2d24e732/attachment.html>


More information about the scap-security-guide mailing list