Explicitly reference all additional files.

Not referencing them caused them to be missing from the source packages.

This also moves all files that were in different dirs under the common
additional-files dir.
This commit is contained in:
Michael Lotz
2015-12-20 18:24:53 +01:00
parent 947c7b0ce2
commit a43c394c4d
47 changed files with 80 additions and 60 deletions

View File

@@ -0,0 +1,24 @@
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
int main(int argc, char* argv[])
{
if (argc < 2) {
system("alert --stop \"Java: Please specify a Jarfile.\" >/dev/null");
return 1;
}
char command[PATH_MAX];
snprintf(command, sizeof(command), "%s -jar \"%s\"", JAVA_BINARY, argv[1]);
FILE* fd = popen(command, "r");
if (fd != NULL) {
char buffer[512];
fgets(buffer, 512, fd);
return pclose(fd);
} else
system("alert --stop \"Java: popen failed!\" >/dev/null");
return 1;
}