Skip to content

Commit

Permalink
Add header with licence to generated single includes
Browse files Browse the repository at this point in the history
  • Loading branch information
zemasoft committed Apr 20, 2018
1 parent c1fa208 commit 93b5d8c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions scripts/generate_header.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

echo "// THIS FILE HAS BEEN GENERATED AUTOMATICALLY. DO NOT EDIT DIRECTLY."
echo "// Generated: $(date -u '+%Y-%m-%d %H:%M:%S.%N')"
cat scripts/licence.txt
6 changes: 4 additions & 2 deletions scripts/generate_single_include.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/sh

scripts/GenSingleHeader.py -Iinclude include/cx.hpp > single_include/cx_tmp.hpp
gcc -fpreprocessed -dD -E -P single_include/cx_tmp.hpp > single_include/cx.hpp 2> /dev/null
scripts/generate_header.sh > single_include/cx.hpp
gcc -fpreprocessed -dD -E -P single_include/cx_tmp.hpp >> single_include/cx.hpp 2> /dev/null
rm -f single_include/cx_tmp.hpp

scripts/GenSingleHeader.py -Iinclude include/wildcards.hpp > single_include/wildcards_tmp.hpp
gcc -fpreprocessed -dD -E -P single_include/wildcards_tmp.hpp > single_include/wildcards.hpp 2> /dev/null
scripts/generate_header.sh > single_include/wildcards.hpp
gcc -fpreprocessed -dD -E -P single_include/wildcards_tmp.hpp >> single_include/wildcards.hpp 2> /dev/null
rm -f single_include/wildcards_tmp.hpp
4 changes: 4 additions & 0 deletions scripts/licence.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright Tomas Zeman 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
6 changes: 6 additions & 0 deletions single_include/cx.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// THIS FILE HAS BEEN GENERATED AUTOMATICALLY. DO NOT EDIT DIRECTLY.
// Generated: 2018-04-20 07:58:19.771749180
// Copyright Tomas Zeman 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef CX_HPP
#define CX_HPP
#define CX_VERSION_MAJOR 0
Expand Down
6 changes: 6 additions & 0 deletions single_include/wildcards.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// THIS FILE HAS BEEN GENERATED AUTOMATICALLY. DO NOT EDIT DIRECTLY.
// Generated: 2018-04-20 07:58:19.878033941
// Copyright Tomas Zeman 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef WILDCARDS_HPP
#define WILDCARDS_HPP
#define WILDCARDS_VERSION_MAJOR 0
Expand Down

0 comments on commit 93b5d8c

Please sign in to comment.