mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-04 00:02:01 -04:00
* Add SPDX-License-Identifier in src/common * Add SPDX-License-Identifier in FrodoKEM * Add SPDX-License-Identifier in SIKE * Add SPDX-License-Identifier in BIKE * Add SPDX-License-Identifier in OQS headers * Add SPDX-License-Identifier in files generated during copy-from-pqclean * Add SPDX-License-Identifier in Picnic * Add SPDX-License-Identifier in qTesla * Add SPDX-License-Identifier in CMake files * Update license info in README * Add SPDX-License-Identifier in scripts * Add SPDX-License-Info to CMakeLists * Add SPDX-License-Info in tests * Add SPDX-License-Info to various files * Prettyprint * Add test for SPDX-License-Identifier headers * Updated license identifiers for CPU extension detection code. * Use conjunction for SPDX in file with two licenses Co-authored-by: xvzcf <xvzcf@users.noreply.github.com>
18 lines
486 B
Bash
Executable File
18 lines
486 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Get the SHA-1 hash of the current git commit, if any
|
|
# based on https://stackoverflow.com/questions/8215785/how-can-i-use-ac-revision-with-git
|
|
|
|
changes=`git status -s 2>&1`
|
|
if [ $? -ne 0 ] ; then
|
|
# not a git repository
|
|
printf 'unknown'
|
|
elif [ "x$changes" == "x" ] ; then
|
|
# no changes since last commit
|
|
printf '%s' `git rev-parse HEAD`
|
|
else
|
|
# changes since last commit
|
|
printf '%s (+ local modifications)' `git rev-parse HEAD`
|
|
fi |