Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
b7726496
Unverified
Commit
b7726496
authored
Jan 25, 2022
by
Niels Lohmann
Committed by
GitHub
Jan 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add maintainer targets to create source archive (#3289)
*
🔨
add script to create xz archive
parent
293f67f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
Makefile
Makefile
+22
-14
No files found.
Makefile
View file @
b7726496
...
@@ -4,9 +4,6 @@
...
@@ -4,9 +4,6 @@
# configuration
# configuration
##########################################################################
##########################################################################
# directory to recent compiler binaries
COMPILER_DIR
=
/usr/local/opt/llvm/bin
# find GNU sed to use `-i` parameter
# find GNU sed to use `-i` parameter
SED
:=
$(
shell
command
-v
gsed
||
which
sed
)
SED
:=
$(
shell
command
-v
gsed
||
which
sed
)
...
@@ -62,6 +59,7 @@ run_benchmarks:
...
@@ -62,6 +59,7 @@ run_benchmarks:
cd
cmake-build-benchmarks
;
ninja
cd
cmake-build-benchmarks
;
ninja
cd
cmake-build-benchmarks
;
./json_benchmarks
cd
cmake-build-benchmarks
;
./json_benchmarks
##########################################################################
##########################################################################
# fuzzing
# fuzzing
##########################################################################
##########################################################################
...
@@ -135,6 +133,7 @@ pvs_studio:
...
@@ -135,6 +133,7 @@ pvs_studio:
cd
cmake-build-pvs-studio
;
plog-converter
-a
'GA:1,2;64:1;CS'
-t
fullhtml PVS-Studio.log
-o
pvs
cd
cmake-build-pvs-studio
;
plog-converter
-a
'GA:1,2;64:1;CS'
-t
fullhtml PVS-Studio.log
-o
pvs
open cmake-build-pvs-studio/pvs/index.html
open cmake-build-pvs-studio/pvs/index.html
##########################################################################
##########################################################################
# Code format and source amalgamation
# Code format and source amalgamation
##########################################################################
##########################################################################
...
@@ -203,20 +202,29 @@ ChangeLog.md:
...
@@ -203,20 +202,29 @@ ChangeLog.md:
# Release files
# Release files
##########################################################################
##########################################################################
# Create the files for a release and add signatures and hashes. We use `-X` to make the resulting ZIP file
# Create a tar.gz archive that contains sufficient files to be used as CMake project (e.g., using FetchContent). The
# reproducible, see <https://content.pivotal.io/blog/barriers-to-deterministic-reproducible-zip-files>.
# archive is created according to the advices of <https://reproducible-builds.org/docs/archives/>.
json.tar.xz
:
mkdir
json
rsync
-R
$(
shell
find LICENSE.MIT nlohmann_json.natvis CMakeLists.txt cmake/
*
.in include single_include
-type
f
)
json
gtar
--sort
=
name
--mtime
=
"@
$(
shell
git log -1 --pretty=%ct
)
"
--owner
=
0
--group
=
0
--numeric-owner
--pax-option
=
exthdr.name
=
%d/PaxHeaders/%f,delete
=
atime,delete
=
ctime
--create
--file
- json | xz
--compress
-9e
--threads
=
2 -
>
json.tar.xz
rm
-fr
json
release
:
# We use `-X` to make the resulting ZIP file reproducible, see
# <https://content.pivotal.io/blog/barriers-to-deterministic-reproducible-zip-files>.
include.zip
:
zip
-9
--recurse-paths
-X
include.zip
$(SRCS)
$(AMALGAMATED_FILE)
meson.build LICENSE.MIT
# Create the files for a release and add signatures and hashes.
release
:
include.zip json.tar.xz
rm
-fr
release_files
rm
-fr
release_files
mkdir
release_files
mkdir
release_files
zip
-9
--recurse-paths
-X
include.zip
$(SRCS)
$(AMALGAMATED_FILE)
meson.build LICENSE.MIT
gpg
--armor
--detach-sig
include.zip
gpg
--armor
--detach-sig
include.zip
mv
include.zip include.zip.asc release_files
gpg
--armor
--detach-sig
$(AMALGAMATED_FILE)
gpg
--armor
--detach-sig
$(AMALGAMATED_FILE)
gpg
--armor
--detach-sig
json.tar.xz
cp
$(AMALGAMATED_FILE)
release_files
cp
$(AMALGAMATED_FILE)
release_files
mv
$(AMALGAMATED_FILE)
.asc release_files
mv
$(AMALGAMATED_FILE)
.asc json.tar.xz json.tar.xz.asc include.zip include.zip.asc release_files
cd
release_files
;
shasum
-a
256 json.hpp
>
hashes.txt
cd
release_files
;
shasum
-a
256 json.hpp include.zip json.tar.xz
>
hashes.txt
cd
release_files
;
shasum
-a
256 include.zip
>>
hashes.txt
##########################################################################
##########################################################################
...
@@ -225,12 +233,12 @@ release:
...
@@ -225,12 +233,12 @@ release:
# clean up
# clean up
clean
:
clean
:
rm
-fr
json_unit json_benchmarks fuzz fuzz-testing
*
.dSYM
test
/
*
.dSYM oclint_report.html
rm
-fr
fuzz fuzz-testing
*
.dSYM
test
/
*
.dSYM
rm
-fr
benchmarks/files/numbers/
*
.json
rm
-fr
benchmarks/files/numbers/
*
.json
rm
-fr
cmake-3.1.0-Darwin64.tar.gz cmake-3.1.0-Darwin64
rm
-fr
cmake-build-benchmarks fuzz-testing cmake-build-pvs-studio release_files
rm
-fr
cmake-build-benchmarks cmake-build-pedantic fuzz-testing cmake-build-clang-analyze cmake-build-pvs-studio cmake-build-infer cmake_build
$(MAKE)
clean
-Cdoc
$(MAKE)
clean
-Cdoc
##########################################################################
##########################################################################
# Thirdparty code
# Thirdparty code
##########################################################################
##########################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment