mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-26 08:55:18 +03:00
tree-wide: add spdx header on all scripts and helpers
Even though many of those scripts are very simple, it is easier to include the header than to try to say whether each of those files is trivial enough not to require one.
This commit is contained in:
parent
cb1f01a5f8
commit
9ee03516df
2
Makefile
2
Makefile
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
all:
|
all:
|
||||||
ninja -C build
|
ninja -C build
|
||||||
|
|
||||||
|
1
configure
vendored
1
configure
vendored
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cflags=CFLAGS="$CFLAGS"
|
cflags=CFLAGS="$CFLAGS"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
BEGIN{
|
BEGIN{
|
||||||
print "static const char* const af_names[] = { "
|
print "static const char* const af_names[] = { "
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
BEGIN{
|
BEGIN{
|
||||||
print "const char *arphrd_to_name(int id) {"
|
print "const char *arphrd_to_name(int id) {"
|
||||||
print " switch(id) {"
|
print " switch(id) {"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
BEGIN{
|
BEGIN{
|
||||||
print "static const char* const capability_names[] = { "
|
print "static const char* const capability_names[] = { "
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
BEGIN{
|
BEGIN{
|
||||||
print "static const char* const errno_names[] = { "
|
print "static const char* const errno_names[] = { "
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
$1 -E -dM -include sys/socket.h -include "$2" -include "$3" - </dev/null | \
|
$1 -E -dM -include sys/socket.h -include "$2" -include "$3" - </dev/null | \
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
$1 -dM -include linux/if_arp.h -include "$2" - </dev/null | \
|
$1 -dM -include linux/if_arp.h -include "$2" - </dev/null | \
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
$1 -dM -include linux/capability.h -include "$2" -include "$3" - </dev/null | \
|
$1 -dM -include linux/capability.h -include "$2" -include "$3" - </dev/null | \
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
$1 -dM -include errno.h - </dev/null | \
|
$1 -dM -include errno.h - </dev/null | \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
for i in *.h */*.h; do
|
for i in *.h */*.h; do
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
if nm -D -u "$1" | grep ' U '; then
|
if nm -D -u "$1" | grep ' U '; then
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
BEGIN{
|
BEGIN{
|
||||||
keywords=0 ; FS="," ;
|
keywords=0 ; FS="," ;
|
||||||
print "extern const char load_fragment_gperf_nulstr[];" ;
|
print "extern const char load_fragment_gperf_nulstr[];" ;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
m4_dnl SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
BEGIN{
|
BEGIN{
|
||||||
print "const char *audit_type_to_string(int type) {\n\tswitch(type) {"
|
print "const char *audit_type_to_string(int type) {\n\tswitch(type) {"
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
cpp="$1"
|
cpp="$1"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
[[ -f /dev/loop-control ]] || exit 77
|
[[ -f /dev/loop-control ]] || exit 77
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
BEGIN{
|
BEGIN{
|
||||||
print "const char *dns_type_to_string(int type) {\n\tswitch(type) {"
|
print "const char *dns_type_to_string(int type) {\n\tswitch(type) {"
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
"Generate %-from-name.gperf from %-list.txt"
|
"Generate %-from-name.gperf from %-list.txt"
|
||||||
|
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
s/.* DNS_TYPE_(\w+).*/\1/p
|
s/.* DNS_TYPE_(\w+).*/\1/p
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "conf-parser.h"
|
#include "conf-parser.h"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
$1 -dM -include netinet/in.h - </dev/null | \
|
$1 -dM -include netinet/in.h - </dev/null | \
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
BEGIN{
|
BEGIN{
|
||||||
print "static const char* const ip_protocol_names[] = { "
|
print "static const char* const ip_protocol_names[] = { "
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
import sys, re
|
import sys, re
|
||||||
|
|
||||||
print('#include <stdio.h>')
|
print('#include <stdio.h>')
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
BEGIN {
|
BEGIN {
|
||||||
print "/* GENERATED FILE */";
|
print "/* GENERATED FILE */";
|
||||||
print "#define ORDERED"
|
print "#define ORDERED"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
awk '
|
awk '
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
$1 -dM -include linux/input.h - </dev/null | awk '
|
$1 -dM -include linux/input.h - </dev/null | awk '
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
%{
|
%{
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
cd "$MESON_SOURCE_ROOT"
|
cd "$MESON_SOURCE_ROOT"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
sd_good=0
|
sd_good=0
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
"$@" '-' -o/dev/null </dev/null
|
"$@" '-' -o/dev/null </dev/null
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
which perl &>/dev/null || exit 77
|
which perl &>/dev/null || exit 77
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
export SYSTEMD_LOG_LEVEL=info
|
export SYSTEMD_LOG_LEVEL=info
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Fedora uses C.utf8 but Debian uses C.UTF-8
|
# Fedora uses C.utf8 but Debian uses C.UTF-8
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
# The official unmodified version of the script can be found at
|
# The official unmodified version of the script can be found at
|
||||||
# https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh
|
# https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Try to guess the build directory:
|
# Try to guess the build directory:
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
# Download and extract coverity tool
|
# Download and extract coverity tool
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
git shortlog -s `git describe --abbrev=0 --match 'v[0-9][0-9][0-9]'`.. | \
|
git shortlog -s `git describe --abbrev=0 --match 'v[0-9][0-9][0-9]'`.. | \
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
CONFIG=$1
|
CONFIG=$1
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
src="$1"
|
src="$1"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
if [ "${MESON_INSTALL_QUIET:-0}" = 1 ] ; then
|
if [ "${MESON_INSTALL_QUIET:-0}" = 1 ] ; then
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
cd "$1" && shift
|
cd "$1" && shift
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
cd "$1"
|
cd "$1"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
cd "$1"
|
cd "$1"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
i=1
|
i=1
|
||||||
|
Loading…
Reference in New Issue
Block a user