Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
3811-erts-Remove-the-unused-mkver.c-file.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3811-erts-Remove-the-unused-mkver.c-file.patch of Package erlang
From 1df8f3694652ee75a801d3586f910fb990a6c698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20de=20Bretagne?= <jerome.debretagne@gmail.com> Date: Thu, 6 Jan 2022 23:31:58 +0100 Subject: [PATCH 1/3] erts: Remove the unused mkver.c file It was maybe used to generate erl_version.h in the past but it is not used in builds anymore, since replaced by the make_version script. --- erts/emulator/utils/mkver.c | 65 ------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 erts/emulator/utils/mkver.c diff --git a/erts/emulator/utils/mkver.c b/erts/emulator/utils/mkver.c deleted file mode 100644 index 6183246433..0000000000 --- a/erts/emulator/utils/mkver.c +++ /dev/null @@ -1,65 +0,0 @@ -/* - * %CopyrightBegin% - * - * Copyright Ericsson AB 1996-2016. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * %CopyrightEnd% - */ -/* - * Makes the file erl_version.h. - */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif -#include <stdio.h> -#include <stdlib.h> -#include <errno.h> -#include <time.h> - -int -main(argc, argv) -int argc; -char** argv; -{ - FILE *file; -#if ERTS_SAVED_COMPILE_TIME - time_t now; -#endif - char *cnow = ""; - - if (argc != 2) { - fprintf(stderr, "usage: mkver version\n"); - exit(1); - } - - if ((file = fopen("erl_version.h", "wb")) == NULL) { - fprintf(stderr, "Could not create file 'erl_version.h'!\n"); - exit(1); - } - -#if ERTS_SAVED_COMPILE_TIME - time(&now); - cnow = ctime(&now); - cnow[24] = '\0'; /* tidelipom */ -#endif - fprintf(file, "/* This file was created by mkver -- don't modify.*/\n"); - fprintf(file, "#define ERLANG_VERSION \"%s\"\n", argv[1]); - fprintf(file, "#define ERLANG_COMPILE_DATE \"%s\"\n", cnow); - fclose(file); - - exit(0); - return 0; -} -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor