Imported reiserfsprogs-3.6.9
This commit is contained in:
1 parent
99c89460c3
commit
cccefa4d84
86 files changed
+13393
-6954
No files matched your search
+86
-2
@@ -1,7 +1,7 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(version.h)
|
||||
|
||||
AM_INIT_AUTOMAKE(reiserfsprogs, 3.6.4)
|
||||
AM_INIT_AUTOMAKE(reiserfsprogs, 3.6.9)
|
||||
|
||||
dnl We install in /sbin, the utils are to be available on boot
|
||||
dnl AC_PREFIX(/)
|
||||
@@ -50,4 +50,88 @@ AC_ARG_ENABLE(io-failure-emulation,
|
||||
fi
|
||||
])
|
||||
|
||||
AC_OUTPUT(include/Makefile mkreiserfs/Makefile resize_reiserfs/Makefile fsck/Makefile lib/Makefile Makefile reiserfscore/Makefile debugreiserfs/Makefile tune/Makefile)
|
||||
AC_DEFUN(AC_PREPARE_CREDITS,
|
||||
[
|
||||
|
||||
AC_MSG_CHECKING(for CREDITS)
|
||||
|
||||
AC_TRY_RUN([
|
||||
#define _GNU_SOURSE
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
int main (void) {
|
||||
FILE *fin, *fout;
|
||||
char *line = NULL;
|
||||
unsigned int len = 0;
|
||||
int start, count;
|
||||
|
||||
if ((fin = fopen("CREDITS", "r")) == NULL) {
|
||||
fprintf(stderr, "Error occured while openning the file 'CREDITS': "
|
||||
"%s.\n", strerror(errno));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ((fout = fopen("include/credits.h", "w")) == NULL) {
|
||||
fprintf(stderr, "Error occured while openning the file 'credits.h': "
|
||||
"%s.\n", strerror(errno));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Replicate the header. */
|
||||
while (getline(&line, &len, fin) != -1) {
|
||||
fprintf(fout, line);
|
||||
|
||||
if (!strcmp(line, "\n"))
|
||||
break;
|
||||
}
|
||||
|
||||
fprintf(fout, "char *credits[] = {\n");
|
||||
|
||||
start = 2; count = 0;
|
||||
|
||||
while (getline(&line, &len, fin) != -1) {
|
||||
if (!strcmp(line, "\n") || strlen(line) < 1) {
|
||||
start = 1;
|
||||
count++;
|
||||
} else {
|
||||
if (!start)
|
||||
fprintf(fout, "\t\\\" "\n");
|
||||
else if (start == 1)
|
||||
fprintf(fout, ",\n\n");
|
||||
|
||||
line[strlen(line) - 1] = 0;
|
||||
fprintf(fout, "\t\"%s\\\n\"", line);
|
||||
start = 0;
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(fout, "\n};\n");
|
||||
fprintf(fout, "#define CREDITS_COUNT %d\n", count);
|
||||
|
||||
free(line);
|
||||
fclose(fin);
|
||||
fclose(fout);
|
||||
|
||||
return 0;
|
||||
}
|
||||
], AC_MSG_RESULT(yes), AC_MSG_RESULT(no) ; exit)
|
||||
])
|
||||
|
||||
AC_PREPARE_CREDITS()
|
||||
|
||||
AC_OUTPUT(
|
||||
include/Makefile
|
||||
mkreiserfs/Makefile
|
||||
resize_reiserfs/Makefile
|
||||
fsck/Makefile
|
||||
lib/Makefile
|
||||
Makefile
|
||||
reiserfscore/Makefile
|
||||
debugreiserfs/Makefile
|
||||
tune/Makefile
|
||||
tests/Makefile
|
||||
tests/PROGS/Makefile)
|
||||
Reference in new issue
Block a user