1cd9b93a22
- point to main Calamares site in the 'part of' headers instead of to github (this is the "this file is part of Calamares" opening line for most files). - remove boilerplate from all source files, CMake modules and completions, this is the 3-paragraph summary of the GPL-3.0-or-later, which has a meaning entirely covered by the SPDX tag.
32 lines
862 B
CMake
32 lines
862 B
CMake
# === This file is part of Calamares - <https://calamares.io> ===
|
|
#
|
|
# SPDX-FileCopyrightText: 2014 Teo Mrnjavac <teo@kde.org>
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
#
|
|
###
|
|
#
|
|
# Find today's date, for versioning purposes.
|
|
find_program(DATE_EXECUTABLE NAMES date)
|
|
mark_as_advanced(DATE_EXECUTABLE)
|
|
|
|
if(DATE_EXECUTABLE)
|
|
execute_process(
|
|
COMMAND ${DATE_EXECUTABLE} +%Y
|
|
OUTPUT_VARIABLE CMAKE_DATESTAMP_YEAR
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
)
|
|
execute_process(
|
|
COMMAND ${DATE_EXECUTABLE} +%m
|
|
OUTPUT_VARIABLE CMAKE_DATESTAMP_MONTH
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
)
|
|
execute_process(
|
|
COMMAND ${DATE_EXECUTABLE} +%d
|
|
OUTPUT_VARIABLE CMAKE_DATESTAMP_DAY
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
)
|
|
endif()
|