mirror of
https://github.com/ISpillMyDrink/OpenSuperClone.git
synced 2026-05-04 05:50:51 +00:00
Get rid of unused helper program.
This commit is contained in:
+4
-2
@@ -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)
|
||||
add_subdirectory(oscviewer)
|
||||
@@ -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 <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
|
||||
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 <dirent.h>
|
||||
#include <stdio.h>
|
||||
|
||||
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);
|
||||
}
|
||||
*/
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user