Skip to content

Commit 2e95a51

Browse files
committed
Add date exception
1 parent f81e20f commit 2e95a51

26 files changed

+40
-29
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2023-2024 Intel Corporation
1+
# Copyright (C) 2022-2024 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

check_license/check-headers.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,27 @@ s/.*Copyright (C) \([0-9]\+\).*/\1/' "$src_path")
148148

149149
COMMIT_FIRST=`echo $FIRST | cut -d"-" -f1`
150150
COMMIT_LAST=` echo $LAST | cut -d"-" -f1`
151+
151152
if [ "$COMMIT_FIRST" != "" -a "$COMMIT_LAST" != "" ]; then
152153
if [[ -n "$COMMIT_FIRST" && -n "$COMMIT_LAST" ]]; then
154+
FL=0
153155
if [[ $HEADER_FIRST -lt $COMMIT_FIRST ]]; then
154-
HEADER_FIRST=$COMMIT_FIRST
156+
FL=1
155157
fi
158+
156159
COMMIT_LAST=`date +%G`
157-
if [[ $COMMIT_FIRST -eq $COMMIT_LAST ]]; then
158-
NEW=$COMMIT_LAST
160+
161+
if [[ $FL -eq 1 ]]; then
162+
NEW=$HEADER_FIRST-$COMMIT_LAST
159163
else
160-
NEW=$COMMIT_FIRST-$COMMIT_LAST
164+
165+
if [[ $COMMIT_FIRST -eq $COMMIT_LAST ]]; then
166+
NEW=$COMMIT_LAST
167+
else
168+
NEW=$COMMIT_FIRST-$COMMIT_LAST
169+
fi
161170
fi
171+
162172
if [[ "$YEARS" == "$NEW" ]]; then
163173
echo "No change needed: $YEARS"
164174
else
@@ -184,3 +194,4 @@ else
184194
echo "Error(s) in copyright headers found!" >&2
185195
fi
186196
exit $RV
197+

check_license/file-exceptions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

66
# You can add an exception file
7-
grep -v -E -e 'src\topology.c'
7+
grep -v -E -e '\src\uthash'

include/umf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2023 Intel Corporation
3+
* Copyright (C) 2023-2024 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

include/umf/memory_pool_ops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2023 Intel Corporation
3+
* Copyright (C) 2023-2024 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

include/umf/pools/pool_jemalloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2023 Intel Corporation
3+
* Copyright (C) 2023-2024 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

include/umf/pools/pool_scalable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2023 Intel Corporation
3+
* Copyright (C) 2023-2024 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

src/libumf.map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 Intel Corporation
1+
# Copyright (C) 2023-2024 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

src/memory_pool_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2023 Intel Corporation
3+
* Copyright (C) 2023-2024 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

src/memory_provider_get_last_failed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2023 Intel Corporation
3+
* Copyright (C) 2023-2024 Intel Corporation
44
*
55
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
66
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

0 commit comments

Comments
 (0)