From 4de37be44808bdb9f47e03c792ea33b50fb597ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Frohm=C3=BCller?= Date: Sun, 4 Dec 2022 22:40:12 +0100 Subject: [PATCH] Get rid of unused helper program. --- src/CMakeLists.txt | 6 +- src/create_script_help/create_script_help.c | 133 -------------------- src/oscviewer/locale/de_DE/oscviewer.po | 4 +- 3 files changed, 6 insertions(+), 137 deletions(-) delete mode 100644 src/create_script_help/create_script_help.c diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8397cc5..ccd8243 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,7 @@ +# Find PkgConfig dependency find_package(PkgConfig REQUIRED) + +# Find Gettext dependency find_package(Gettext REQUIRED) # Find GTK dependency @@ -8,5 +11,4 @@ pkg_check_modules(GTK3 REQUIRED gtk+-3.0) pkg_check_modules(LIBUSB REQUIRED libusb) add_subdirectory(opensuperclone) -add_subdirectory(oscviewer) -#add_subdirectory(create_script_help) \ No newline at end of file +add_subdirectory(oscviewer) \ No newline at end of file diff --git a/src/create_script_help/create_script_help.c b/src/create_script_help/create_script_help.c deleted file mode 100644 index b90aac6..0000000 --- a/src/create_script_help/create_script_help.c +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (C) 2015-2022 Scott Dwyer and OpenSuperClone contributors. -// You may use/distribute/modify this freely, under the terms of -// the GNU General Public License version 2 or later version. -// This software is distributed WITHOUT ANY WARRANTY. - -#include -#include -#include -#include -#include -#include -#include - -char name[256][256]; - -int main(void) -{ - struct dirent **namelist; - int i, n; - int count = 0; - int index = 0; - char command[512]; - - n = scandir("oscscripts", &namelist, 0, alphasort); - if (n < 0) - { - perror("scandir"); - return (1); - } - else - { - for (i = 0; i < n; i++) - { - if (namelist[i]->d_name[0] != '.') - { - // printf("%s\n", namelist[i]->d_name); - strcpy(name[count], namelist[i]->d_name); - count++; - } - free(namelist[i]); - } - } - free(namelist); - - strcpy(command, "cat opensupertool-p1.texi > opensupertool.texi"); - system(command); - char *newdirectory = "oscscripts"; - chdir(newdirectory); - char *texifile = "../opensupertool.texi"; - FILE *texi_file = fopen(texifile, "a"); - if (texi_file == NULL) - { - fprintf(stderr, "Cannot open %s for writing (%s).\nAborting...\n", texifile, strerror(errno)); - exit(1); - } - while (count > 0) - { - // fprintf(stdout, "\n\n%s\n",name[index]); - // fprintf(stdout, "@example\n"); - fprintf(texi_file, "\n\n%s\n", name[index]); - fprintf(texi_file, "@example\n"); - strcpy(command, "../opensuperclone --tool -Q -t /dev/zero -f "); - strcat(command, name[index]); - strcat(command, " help=1 printhelp=1"); - fprintf(stdout, "%s\n", command); - - FILE *fp; - char path[1035]; - /* Open the command for reading. */ - fp = popen(command, "r"); - if (fp == NULL) - { - printf("Failed to run command\n"); - exit(1); - } - /* Read the output a line at a time - output it. */ - while (fgets(path, sizeof(path) - 1, fp) != NULL) - { - // fprintf(stdout, "%s", path); - fprintf(texi_file, "%s", path); - } - /* close */ - pclose(fp); - - // fprintf(stdout, "@end example\n"); - fprintf(texi_file, "@end example\n"); - - index++; - count--; - } - fclose(texi_file); - chdir(".."); - strcpy(command, "cat opensupertool-p2.texi >> opensupertool.texi"); - system(command); - - return (0); -} - -/* -#include -#include - -char name[256][256]; - -int main(void) -{ - DIR *d; - struct dirent *dir; - int count = 0; - int index = 0; - d = opendir("."); - if (d) - { - while ((dir = readdir(d)) != NULL) - { - printf("%s\n", dir->d_name); - strcpy(name[count],dir->d_name); - count++; - } - - closedir(d); - } - - while( count > 0 ) - { - printf("The directory list is %s\r\n",name[index]); - index++; - count--; - } - - return(0); -} -*/ diff --git a/src/oscviewer/locale/de_DE/oscviewer.po b/src/oscviewer/locale/de_DE/oscviewer.po index d5ac78a..c0ccef8 100644 --- a/src/oscviewer/locale/de_DE/oscviewer.po +++ b/src/oscviewer/locale/de_DE/oscviewer.po @@ -159,7 +159,7 @@ msgstr "Schlechter Kopf" #: src/oscviewer/oscviewer.c:446 msgid "Block Colors" -msgstr "" +msgstr "Block-Farben" #: src/oscviewer/oscviewer.c:440 src/oscviewer/oscviewer.c:728 msgid "Current" @@ -227,7 +227,7 @@ msgstr "Auflösung des Hauptpanels" #: src/oscviewer/oscviewer.c:447 msgid "Marker Colors" -msgstr "" +msgstr "Markierungs-Farben" #: src/oscviewer/oscviewer.c:436 src/oscviewer/oscviewer.c:653 #: src/oscviewer/oscviewer.c:2941