diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2024-05-21 01:21:34 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2024-05-21 01:21:34 +0200 |
commit | 0bbc18869720ad042b668742ca48e5cb8a37491a (patch) | |
tree | 55248d0a68679cf22fb7eac3a1a41ba6f0d039c7 /src/blogc-git-receiver | |
parent | f35e7ab6965d4da9779e948de71d23892954c1c7 (diff) | |
download | blogc-0bbc18869720ad042b668742ca48e5cb8a37491a.tar.gz blogc-0bbc18869720ad042b668742ca48e5cb8a37491a.tar.bz2 blogc-0bbc18869720ad042b668742ca48e5cb8a37491a.zip |
*: modernize file headers (spdx and include guards)
Diffstat (limited to 'src/blogc-git-receiver')
-rw-r--r-- | src/blogc-git-receiver/main.c | 9 | ||||
-rw-r--r-- | src/blogc-git-receiver/post-receive.c | 9 | ||||
-rw-r--r-- | src/blogc-git-receiver/post-receive.h | 14 | ||||
-rw-r--r-- | src/blogc-git-receiver/pre-receive-parser.c | 9 | ||||
-rw-r--r-- | src/blogc-git-receiver/pre-receive-parser.h | 14 | ||||
-rw-r--r-- | src/blogc-git-receiver/pre-receive.c | 9 | ||||
-rw-r--r-- | src/blogc-git-receiver/pre-receive.h | 14 | ||||
-rw-r--r-- | src/blogc-git-receiver/settings.c | 9 | ||||
-rw-r--r-- | src/blogc-git-receiver/settings.h | 14 | ||||
-rw-r--r-- | src/blogc-git-receiver/shell-command-parser.c | 9 | ||||
-rw-r--r-- | src/blogc-git-receiver/shell-command-parser.h | 14 | ||||
-rw-r--r-- | src/blogc-git-receiver/shell.c | 9 | ||||
-rw-r--r-- | src/blogc-git-receiver/shell.h | 14 |
13 files changed, 32 insertions, 115 deletions
diff --git a/src/blogc-git-receiver/main.c b/src/blogc-git-receiver/main.c index 13218dd..c899573 100644 --- a/src/blogc-git-receiver/main.c +++ b/src/blogc-git-receiver/main.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <stdio.h> #include <stdlib.h> diff --git a/src/blogc-git-receiver/post-receive.c b/src/blogc-git-receiver/post-receive.c index 17a8aa7..7e56b85 100644 --- a/src/blogc-git-receiver/post-receive.c +++ b/src/blogc-git-receiver/post-receive.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <errno.h> #include <string.h> diff --git a/src/blogc-git-receiver/post-receive.h b/src/blogc-git-receiver/post-receive.h index fc56dc3..756d9fc 100644 --- a/src/blogc-git-receiver/post-receive.h +++ b/src/blogc-git-receiver/post-receive.h @@ -1,14 +1,6 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause -#ifndef _POST_RECEIVE_H -#define _POST_RECEIVE_H +#pragma once int bgr_post_receive_hook(int argc, char *argv[]); - -#endif /* _POST_RECEIVE_H */ diff --git a/src/blogc-git-receiver/pre-receive-parser.c b/src/blogc-git-receiver/pre-receive-parser.c index 61a533c..4d2c205 100644 --- a/src/blogc-git-receiver/pre-receive-parser.c +++ b/src/blogc-git-receiver/pre-receive-parser.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <stddef.h> #include <stdlib.h> diff --git a/src/blogc-git-receiver/pre-receive-parser.h b/src/blogc-git-receiver/pre-receive-parser.h index 45a9da8..12d221f 100644 --- a/src/blogc-git-receiver/pre-receive-parser.h +++ b/src/blogc-git-receiver/pre-receive-parser.h @@ -1,17 +1,9 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause -#ifndef _PRE_RECEIVE_PARSER_H -#define _PRE_RECEIVE_PARSER_H +#pragma once #include <stddef.h> #include "../common/utils.h" bc_trie_t* bgr_pre_receive_parse(const char *input, size_t input_len); - -#endif /* _PRE_RECEIVE_PARSER_H */ diff --git a/src/blogc-git-receiver/pre-receive.c b/src/blogc-git-receiver/pre-receive.c index 12d29cf..b7235db 100644 --- a/src/blogc-git-receiver/pre-receive.c +++ b/src/blogc-git-receiver/pre-receive.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <stdio.h> #include <stdlib.h> diff --git a/src/blogc-git-receiver/pre-receive.h b/src/blogc-git-receiver/pre-receive.h index ab19c47..a7082e8 100644 --- a/src/blogc-git-receiver/pre-receive.h +++ b/src/blogc-git-receiver/pre-receive.h @@ -1,14 +1,6 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause -#ifndef _PRE_RECEIVE_H -#define _PRE_RECEIVE_H +#pragma once int bgr_pre_receive_hook(int argc, char *argv[]); - -#endif /* _PRE_RECEIVE_H */ diff --git a/src/blogc-git-receiver/settings.c b/src/blogc-git-receiver/settings.c index db29b18..8c28370 100644 --- a/src/blogc-git-receiver/settings.c +++ b/src/blogc-git-receiver/settings.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <stdio.h> #include <libgen.h> diff --git a/src/blogc-git-receiver/settings.h b/src/blogc-git-receiver/settings.h index 04c1a2b..f191cf6 100644 --- a/src/blogc-git-receiver/settings.h +++ b/src/blogc-git-receiver/settings.h @@ -1,13 +1,7 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause -#ifndef _SETTINGS_H -#define _SETTINGS_H +#pragma once #include "../common/config-parser.h" @@ -15,5 +9,3 @@ const char* bgr_settings_get_base_dir(void); char* bgr_settings_get_builds_dir(void); char* bgr_settings_get_section(bc_config_t *config, const char *repo_path); bc_config_t* bgr_settings_parse(void); - -#endif /* _SETTINGS_H */ diff --git a/src/blogc-git-receiver/shell-command-parser.c b/src/blogc-git-receiver/shell-command-parser.c index 0091e0b..7cf9fbf 100644 --- a/src/blogc-git-receiver/shell-command-parser.c +++ b/src/blogc-git-receiver/shell-command-parser.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <stdbool.h> #include <stdlib.h> diff --git a/src/blogc-git-receiver/shell-command-parser.h b/src/blogc-git-receiver/shell-command-parser.h index 818d098..a4f88a6 100644 --- a/src/blogc-git-receiver/shell-command-parser.h +++ b/src/blogc-git-receiver/shell-command-parser.h @@ -1,14 +1,6 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause -#ifndef _SHELL_COMMAND_PARSER_H -#define _SHELL_COMMAND_PARSER_H +#pragma once char* bgr_shell_command_parse(const char *command); - -#endif /* _SHELL_COMMAND_PARSER_H */ diff --git a/src/blogc-git-receiver/shell.c b/src/blogc-git-receiver/shell.c index a4c8a2d..0872a56 100644 --- a/src/blogc-git-receiver/shell.c +++ b/src/blogc-git-receiver/shell.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <stddef.h> #include <stdio.h> diff --git a/src/blogc-git-receiver/shell.h b/src/blogc-git-receiver/shell.h index b59ff40..fbd24a5 100644 --- a/src/blogc-git-receiver/shell.h +++ b/src/blogc-git-receiver/shell.h @@ -1,15 +1,7 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause -#ifndef _SHELL_H -#define _SHELL_H +#pragma once char* bgr_shell_get_repo(const char *command); int bgr_shell(int argc, char *argv[]); - -#endif /* _SHELL_H */ |