[Secure Coding] master: Add support for shell snippets (0026cc0)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Repository : http://git.fedorahosted.org/git/?p=secure-coding.git

On branch  : master

>---------------------------------------------------------------

commit 0026cc05cf2568357e2d8d91aa8da1f1e4b84bfa
Author: Florian Weimer <fweimer@xxxxxxxxxx>
Date:   Mon Oct 13 09:49:48 2014 +0200

    Add support for shell snippets


>---------------------------------------------------------------

 defensive-coding/Makefile                  |    2 +-
 defensive-coding/scripts/split-snippets.py |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/defensive-coding/Makefile b/defensive-coding/Makefile
index 2090dad..f57f808 100644
--- a/defensive-coding/Makefile
+++ b/defensive-coding/Makefile
@@ -9,7 +9,7 @@ build: build-src build-manual
 build-snippets:
 	mkdir -p en-US/snippets
 	python scripts/split-snippets.py . \
-	  src/*.c src/*.cpp src/*.java src/*.py src/*.go
+	  src/*.c src/*.cpp src/*.java src/*.py src/*.go src/*.sh
 
 build-manual: build-snippets
 	publican build --formats=html,epub,pdf --langs=en-US
diff --git a/defensive-coding/scripts/split-snippets.py b/defensive-coding/scripts/split-snippets.py
index 7244ced..6f87b6e 100644
--- a/defensive-coding/scripts/split-snippets.py
+++ b/defensive-coding/scripts/split-snippets.py
@@ -34,6 +34,7 @@ def extension_to_language(path, map={
         'c' : 'C',
         'py' : 'Python',
         'java' : 'Java',
+        'sh' : 'Bash',
         }):
     return map.get(path.split('.')[-1], 'C')
 

--
security mailing list
security@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/security





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Coolkey]

  Powered by Linux