From 570c9c555f076e74f46141bb42b5d1d7ac89f632 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 28 May 2009 14:24:10 +0930 Subject: [PATCH] Rename _info.c to _info: this means we can simple compile *.c. --- Makefile | 18 ++++---- Makefile-ccan | 8 ++-- Makefile-web | 4 +- ccan/alignof/{_info.c => _info} | 0 ccan/alloc/{_info.c => _info} | 0 ccan/antithread/{_info.c => _info} | 0 ccan/array/{_info.c => _info} | 0 ccan/array_size/{_info.c => _info} | 0 ccan/build_assert/{_info.c => _info} | 0 ccan/check_type/{_info.c => _info} | 0 ccan/ciniparser/{_info.c => _info} | 0 ccan/container_of/{_info.c => _info} | 0 ccan/crc/{_info.c => _info} | 0 ccan/crcsync/{_info.c => _info} | 0 ccan/daemonize/{_info.c => _info} | 0 ccan/endian/{_info.c => _info} | 0 ccan/grab_file/{_info.c => _info} | 0 ccan/hash/{_info.c => _info} | 0 ccan/ilog/{_info.c => _info} | 0 ccan/isaac/{_info.c => _info} | 0 ccan/list/{_info.c => _info} | 0 ccan/md4/{_info.c => _info} | 0 ccan/noerr/{_info.c => _info} | 0 ccan/ogg_to_pcm/{_info.c => _info} | 0 ccan/read_write_all/{_info.c => _info} | 0 ccan/str/{_info.c => _info} | 0 ccan/str_talloc/{_info.c => _info} | 0 ccan/talloc/{_info.c => _info} | 0 ccan/tap/{_info.c => _info} | 0 ccan/typesafe_cb/{_info.c => _info} | 0 ccan/wwviaudio/{_info.c => _info} | 0 tools/ccanlint/compulsory_tests/has_info.c | 16 +++---- tools/ccanlint/file_analysis.c | 2 +- tools/ccanlint/tests/has_info_documentation.c | 42 +++++++++---------- tools/depends.c | 6 +-- tools/namespacize.c | 6 +-- tools/tools.h | 4 +- web/configuration | 2 +- web/static-configuration | 4 +- web/staticall.php | 2 +- web/staticupload.php | 2 +- web/upload.php | 2 +- 42 files changed, 59 insertions(+), 59 deletions(-) rename ccan/alignof/{_info.c => _info} (100%) rename ccan/alloc/{_info.c => _info} (100%) rename ccan/antithread/{_info.c => _info} (100%) rename ccan/array/{_info.c => _info} (100%) rename ccan/array_size/{_info.c => _info} (100%) rename ccan/build_assert/{_info.c => _info} (100%) rename ccan/check_type/{_info.c => _info} (100%) rename ccan/ciniparser/{_info.c => _info} (100%) rename ccan/container_of/{_info.c => _info} (100%) rename ccan/crc/{_info.c => _info} (100%) rename ccan/crcsync/{_info.c => _info} (100%) rename ccan/daemonize/{_info.c => _info} (100%) rename ccan/endian/{_info.c => _info} (100%) rename ccan/grab_file/{_info.c => _info} (100%) rename ccan/hash/{_info.c => _info} (100%) rename ccan/ilog/{_info.c => _info} (100%) rename ccan/isaac/{_info.c => _info} (100%) rename ccan/list/{_info.c => _info} (100%) rename ccan/md4/{_info.c => _info} (100%) rename ccan/noerr/{_info.c => _info} (100%) rename ccan/ogg_to_pcm/{_info.c => _info} (100%) rename ccan/read_write_all/{_info.c => _info} (100%) rename ccan/str/{_info.c => _info} (100%) rename ccan/str_talloc/{_info.c => _info} (100%) rename ccan/talloc/{_info.c => _info} (100%) rename ccan/tap/{_info.c => _info} (100%) rename ccan/typesafe_cb/{_info.c => _info} (100%) rename ccan/wwviaudio/{_info.c => _info} (100%) diff --git a/Makefile b/Makefile index 409c4b4a..8d53cbc6 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,8 @@ # Especially tools/ccanlint/ccanlint and tools/namespacize. # distclean: destroy everything back to pristine state -# Anything with an _info.c file is a module. -ALL=$(patsubst ccan/%/_info.c, %, $(wildcard ccan/*/_info.c)) +# Anything with an _info file is a module. +ALL=$(patsubst ccan/%/_info, %, $(wildcard ccan/*/_info)) ALL_DEPENDS=$(patsubst %, ccan/%/.depends, $(ALL)) # Not all modules have tests. ALL_TESTS=$(patsubst ccan/%/test/, %, $(wildcard ccan/*/test/)) @@ -25,27 +25,27 @@ check: $(ALL_TESTS:%=check-%) distclean: clean rm -f $(ALL_DEPENDS) -$(ALL_DEPENDS): %/.depends: %/_info.c tools/ccan_depends +$(ALL_DEPENDS): %/.depends: %/_info tools/ccan_depends @tools/ccan_depends $* > $@ || ( rm -f $@; exit 1 ) # Actual dependencies are created in inter-depends -check-%: tools/run_tests ccan/%/_info +check-%: tools/run_tests ccan/%/info @echo Testing $*... - @if tools/run_tests $(V) $$(for f in `ccan/$*/_info libs`; do echo --lib=$$f; done) `[ ! -f ccan/$*.o ] || echo --apiobj=ccan/$*.o` ccan/$* $(filter-out ccan/$*.o, $(filter %.o, $^)) | grep ^'not ok'; then exit 1; else exit 0; fi + @if tools/run_tests $(V) $$(for f in `ccan/$*/info libs`; do echo --lib=$$f; done) `[ ! -f ccan/$*.o ] || echo --apiobj=ccan/$*.o` ccan/$* $(filter-out ccan/$*.o, $(filter %.o, $^)) | grep ^'not ok'; then exit 1; else exit 0; fi -ccan/%/_info: ccan/%/_info.c - $(CC) $(CFLAGS) -o $@ $< +ccan/%/info: ccan/%/_info + $(CC) $(CFLAGS) -o $@ -x c $< libccan.a(%.o): ccan/%.o $(AR) r $@ $< clean: tools-clean - $(RM) `find . -name '*.o'` `find . -name '.depends'` `find . -name '*.a'` `find . -name _info` `find . -name '*.d'` + $(RM) `find . -name '*.o'` `find . -name '.depends'` `find . -name '*.a'` `find . -name info` `find . -name '*.d'` $(RM) inter-depends lib-depends test-depends # Creates a dependency from the tests to the object files which it needs. inter-depends: $(ALL_DEPENDS) Makefile - @for f in $(ALL_DEPENDS); do echo check-$$(basename $$(dirname $$f) ): $$(for dir in $$(cat $$f) $$(dirname $$f); do [ "$$(echo $$dir/[a-z]*.c)" = "$$dir/[a-z]*.c" ] || echo ccan/"$$(basename $$dir)".o; done); done > $@ + @for f in $(ALL_DEPENDS); do echo check-$$(basename $$(dirname $$f) ): $$(for dir in $$(cat $$f) $$(dirname $$f); do [ "$$(echo $$dir/*.c)" = "$$dir/*.c" ] || echo ccan/"$$(basename $$dir)".o; done); done > $@ # Creates dependencies between tests, so if foo depends on bar, bar is tested # first diff --git a/Makefile-ccan b/Makefile-ccan index 5d04109e..2e802dd5 100644 --- a/Makefile-ccan +++ b/Makefile-ccan @@ -1,6 +1,6 @@ # Example makefile which makes a "libccan.a" of everything under ccan/. # For simple projects you could just do: -# SRCFILES += $(wildcard ccan/*/[a-z]*.c) +# SRCFILES += $(wildcard ccan/*/*.c) CFLAGS=-g -O3 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -I. $(DEPGEN) @@ -8,8 +8,8 @@ CFLAGS=-g -O3 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototy DEPGEN=-MD -include ccan/*/*.d -# Every directory with .c files (other than _info.c) is included. -DIRS=$(patsubst %/, %, $(sort $(dir $(wildcard ccan/*/[a-z]*.c)))) +# Every directory with .c files is included. +DIRS=$(patsubst %/, %, $(sort $(dir $(wildcard ccan/*/*.c)))) # We compile all the ccan/foo/*.o files together into ccan/foo.o OBJFILES=$(DIRS:=.o) @@ -20,5 +20,5 @@ libccan.a: $(OBJFILES) # Dependencies are autogenerated in the .d files. # We create all the .o files and link them together. $(OBJFILES): %.o: - cd $* && $(CC) -I../.. $(CFLAGS) -c [a-z]*.c && cd ../.. && $(LD) -r -o $@ `echo $*/[a-z]*.c ' ' | sed 's/\.c /.o /g'` + cd $* && $(CC) -I../.. $(CFLAGS) -c *.c && cd ../.. && $(LD) -r -o $@ `echo $*/*.c ' ' | sed 's/\.c /.o /g'` diff --git a/Makefile-web b/Makefile-web index 4a180eca..a0f16efa 100644 --- a/Makefile-web +++ b/Makefile-web @@ -56,10 +56,10 @@ $(WEBDIR)/ccan.jpg: web/ccan.jpg $(WEBDIR)/info/%.html: $(WEBDIR)/tarballs/%.tar.bz2 $(WEBDIR)/tarballs/with-deps/%.tar.bz2 @URLPREFIX=../ php5 web/staticmoduleinfo.php ccan/$* > $@ -$(WEBDIR)/tarballs/%.tar.bz2: ccan/%/_info.c +$(WEBDIR)/tarballs/%.tar.bz2: ccan/%/_info tar -c -j -f $@ `bzr ls --versioned --kind=file ccan/$*` -$(WEBDIR)/tarballs/with-deps/%.tar.bz2: ccan/%/_info.c tools/ccan_depends +$(WEBDIR)/tarballs/with-deps/%.tar.bz2: ccan/%/_info tools/ccan_depends tar cfj $@ $$(echo ccan/$* $$(tools/ccan_depends ccan/$*) | xargs -n 1 bzr ls --versioned --kind=file) distclean: distclean-web diff --git a/ccan/alignof/_info.c b/ccan/alignof/_info similarity index 100% rename from ccan/alignof/_info.c rename to ccan/alignof/_info diff --git a/ccan/alloc/_info.c b/ccan/alloc/_info similarity index 100% rename from ccan/alloc/_info.c rename to ccan/alloc/_info diff --git a/ccan/antithread/_info.c b/ccan/antithread/_info similarity index 100% rename from ccan/antithread/_info.c rename to ccan/antithread/_info diff --git a/ccan/array/_info.c b/ccan/array/_info similarity index 100% rename from ccan/array/_info.c rename to ccan/array/_info diff --git a/ccan/array_size/_info.c b/ccan/array_size/_info similarity index 100% rename from ccan/array_size/_info.c rename to ccan/array_size/_info diff --git a/ccan/build_assert/_info.c b/ccan/build_assert/_info similarity index 100% rename from ccan/build_assert/_info.c rename to ccan/build_assert/_info diff --git a/ccan/check_type/_info.c b/ccan/check_type/_info similarity index 100% rename from ccan/check_type/_info.c rename to ccan/check_type/_info diff --git a/ccan/ciniparser/_info.c b/ccan/ciniparser/_info similarity index 100% rename from ccan/ciniparser/_info.c rename to ccan/ciniparser/_info diff --git a/ccan/container_of/_info.c b/ccan/container_of/_info similarity index 100% rename from ccan/container_of/_info.c rename to ccan/container_of/_info diff --git a/ccan/crc/_info.c b/ccan/crc/_info similarity index 100% rename from ccan/crc/_info.c rename to ccan/crc/_info diff --git a/ccan/crcsync/_info.c b/ccan/crcsync/_info similarity index 100% rename from ccan/crcsync/_info.c rename to ccan/crcsync/_info diff --git a/ccan/daemonize/_info.c b/ccan/daemonize/_info similarity index 100% rename from ccan/daemonize/_info.c rename to ccan/daemonize/_info diff --git a/ccan/endian/_info.c b/ccan/endian/_info similarity index 100% rename from ccan/endian/_info.c rename to ccan/endian/_info diff --git a/ccan/grab_file/_info.c b/ccan/grab_file/_info similarity index 100% rename from ccan/grab_file/_info.c rename to ccan/grab_file/_info diff --git a/ccan/hash/_info.c b/ccan/hash/_info similarity index 100% rename from ccan/hash/_info.c rename to ccan/hash/_info diff --git a/ccan/ilog/_info.c b/ccan/ilog/_info similarity index 100% rename from ccan/ilog/_info.c rename to ccan/ilog/_info diff --git a/ccan/isaac/_info.c b/ccan/isaac/_info similarity index 100% rename from ccan/isaac/_info.c rename to ccan/isaac/_info diff --git a/ccan/list/_info.c b/ccan/list/_info similarity index 100% rename from ccan/list/_info.c rename to ccan/list/_info diff --git a/ccan/md4/_info.c b/ccan/md4/_info similarity index 100% rename from ccan/md4/_info.c rename to ccan/md4/_info diff --git a/ccan/noerr/_info.c b/ccan/noerr/_info similarity index 100% rename from ccan/noerr/_info.c rename to ccan/noerr/_info diff --git a/ccan/ogg_to_pcm/_info.c b/ccan/ogg_to_pcm/_info similarity index 100% rename from ccan/ogg_to_pcm/_info.c rename to ccan/ogg_to_pcm/_info diff --git a/ccan/read_write_all/_info.c b/ccan/read_write_all/_info similarity index 100% rename from ccan/read_write_all/_info.c rename to ccan/read_write_all/_info diff --git a/ccan/str/_info.c b/ccan/str/_info similarity index 100% rename from ccan/str/_info.c rename to ccan/str/_info diff --git a/ccan/str_talloc/_info.c b/ccan/str_talloc/_info similarity index 100% rename from ccan/str_talloc/_info.c rename to ccan/str_talloc/_info diff --git a/ccan/talloc/_info.c b/ccan/talloc/_info similarity index 100% rename from ccan/talloc/_info.c rename to ccan/talloc/_info diff --git a/ccan/tap/_info.c b/ccan/tap/_info similarity index 100% rename from ccan/tap/_info.c rename to ccan/tap/_info diff --git a/ccan/typesafe_cb/_info.c b/ccan/typesafe_cb/_info similarity index 100% rename from ccan/typesafe_cb/_info.c rename to ccan/typesafe_cb/_info diff --git a/ccan/wwviaudio/_info.c b/ccan/wwviaudio/_info similarity index 100% rename from ccan/wwviaudio/_info.c rename to ccan/wwviaudio/_info diff --git a/tools/ccanlint/compulsory_tests/has_info.c b/tools/ccanlint/compulsory_tests/has_info.c index e7f2622d..ed2d4c81 100644 --- a/tools/ccanlint/compulsory_tests/has_info.c +++ b/tools/ccanlint/compulsory_tests/has_info.c @@ -20,8 +20,8 @@ static void *check_has_info(struct manifest *m) static const char *describe_has_info(struct manifest *m, void *check_result) { - return "You have no _info.c file.\n\n" - "The file _info.c contains the metadata for a ccan package: things\n" + return "You have no _info file.\n\n" + "The file _info contains the metadata for a ccan package: things\n" "like the dependencies, the documentation for the package as a whole\n" "and license information.\n"; } @@ -56,22 +56,22 @@ static void create_info_template(struct manifest *m, void *check_result) { FILE *info; - if (!ask("Should I create a template _info.c file for you?")) + if (!ask("Should I create a template _info file for you?")) return; - info = fopen("_info.c", "w"); + info = fopen("_info", "w"); if (!info) - err(1, "Trying to create a template _info.c"); + err(1, "Trying to create a template _info"); if (fprintf(info, template, m->basename) < 0) { - unlink_noerr("_info.c"); - err(1, "Writing template into _info.c"); + unlink_noerr("_info"); + err(1, "Writing template into _info"); } fclose(info); } struct ccanlint has_info = { - .name = "Has _info.c file", + .name = "Has _info file", .check = check_has_info, .describe = describe_has_info, .handle = create_info_template, diff --git a/tools/ccanlint/file_analysis.c b/tools/ccanlint/file_analysis.c index 62e4a13a..2a66a545 100644 --- a/tools/ccanlint/file_analysis.c +++ b/tools/ccanlint/file_analysis.c @@ -71,7 +71,7 @@ static void add_files(struct manifest *m, const char *dir) continue; } - if (streq(f->name, "_info.c")) { + if (streq(f->name, "_info")) { m->info_file = f; f->contents = grab_file(f, f->name, &f->contents_size); if (!f->contents) diff --git a/tools/ccanlint/tests/has_info_documentation.c b/tools/ccanlint/tests/has_info_documentation.c index 4202880e..8a506aba 100644 --- a/tools/ccanlint/tests/has_info_documentation.c +++ b/tools/ccanlint/tests/has_info_documentation.c @@ -48,12 +48,12 @@ extern struct ccanlint has_info_documentation; static void create_info_template_doc(struct manifest *m, void *check_result) { - int fd = open("_info.c.new", O_WRONLY|O_CREAT|O_EXCL, 0666); + int fd = open("_info.new", O_WRONLY|O_CREAT|O_EXCL, 0666); FILE *new; char *oldcontents; if (fd < 0 || !(new = fdopen(fd, "w"))) - err(1, "Creating _info.c.new to insert documentation"); + err(1, "Creating _info.new to insert documentation"); if (fprintf(new, "/**\n" @@ -64,26 +64,26 @@ static void create_info_template_doc(struct manifest *m, void *check_result) " * Followed by an Example: section with a standalone\n" " * (trivial and usually useless) program\n" " */\n", m->basename, m->basename) < 0) { - unlink_noerr("_info.c.new"); - err(1, "Writing to _info.c.new to insert documentation"); + unlink_noerr("_info.new"); + err(1, "Writing to _info.new to insert documentation"); } - oldcontents = grab_file(m, "_info.c", NULL); + oldcontents = grab_file(m, "_info", NULL); if (!oldcontents) { - unlink_noerr("_info.c.new"); - err(1, "Reading _info.c"); + unlink_noerr("_info.new"); + err(1, "Reading _info"); } if (fprintf(new, "%s", oldcontents) < 0) { - unlink_noerr("_info.c.new"); - err(1, "Appending _info.c to _info.c.new"); + unlink_noerr("_info.new"); + err(1, "Appending _info to _info.new"); } if (fclose(new) != 0) { - unlink_noerr("_info.c.new"); - err(1, "Closing _info.c.new"); + unlink_noerr("_info.new"); + err(1, "Closing _info.new"); } - if (rename("_info.c.new", "_info.c") != 0) { - unlink_noerr("_info.c.new"); - err(1, "Renaming _info.c.new to _info.c"); + if (rename("_info.new", "_info") != 0) { + unlink_noerr("_info.new"); + err(1, "Renaming _info.new to _info"); } } @@ -96,20 +96,20 @@ static const char *describe_has_info_documentation(struct manifest *m, if (!id->summary) { has_info_documentation.handle = create_info_template_doc; reason = talloc_asprintf_append(reason, - "Your _info.c has no module documentation.\n\n" + "Your _info file has no module documentation.\n\n" "CCAN modules use /**-style comments for documentation: the\n" - "overall documentation belongs in the _info.c metafile.\n"); + "overall documentation belongs in the _info metafile.\n"); } if (!id->description) reason = talloc_asprintf_append(reason, - "Your _info.c has no module description.\n\n" - "The lines after the first summary line in the _info.c file\n" + "Your _info file has no module description.\n\n" + "The lines after the first summary line in the _info file\n" "documentation should describe the purpose and use of the\n" "overall package\n"); if (!id->example) reason = talloc_asprintf_append(reason, - "Your _info.c has no module example.\n\n" - "There should be an Example: section of the _info.c documentation\n" + "Your _info file has no module example.\n\n" + "There should be an Example: section of the _info documentation\n" "which provides a concise toy program which uses your module\n"); return reason; } @@ -122,7 +122,7 @@ static unsigned int has_info_documentation_score(struct manifest *m, } struct ccanlint has_info_documentation = { - .name = "Documentation in _info.c", + .name = "Documentation in _info file", .total_score = 3, .score = has_info_documentation_score, .check = check_has_info_documentation, diff --git a/tools/depends.c b/tools/depends.c index 2bf11415..c9cf8816 100644 --- a/tools/depends.c +++ b/tools/depends.c @@ -39,8 +39,8 @@ static int unlink_info(char *infofile) /* Be careful about trying to compile over running programs (parallel make) */ static char *compile_info(const void *ctx, const char *dir) { - char *infofile = talloc_asprintf(ctx, "%s/_info.%u", dir, getpid()); - char *cmd = talloc_asprintf(ctx, "cc " CFLAGS " -o %s %s/_info.c", + char *infofile = talloc_asprintf(ctx, "%s/info.%u", dir, getpid()); + char *cmd = talloc_asprintf(ctx, "cc " CFLAGS " -o %s -x c %s/_info", infofile, dir); talloc_set_destructor(infofile, unlink_info); if (system(cmd) != 0) @@ -98,7 +98,7 @@ static char **get_one_safe_deps(const void *ctx, char **deps, **lines, *raw, *fname; unsigned int i, n = 0; - fname = talloc_asprintf(ctx, "%s/_info.c", dir); + fname = talloc_asprintf(ctx, "%s/_info", dir); raw = grab_file(fname, fname, NULL); if (!raw) errx(1, "Could not open %s", fname); diff --git a/tools/namespacize.c b/tools/namespacize.c index f5dced5d..0ed36aa6 100644 --- a/tools/namespacize.c +++ b/tools/namespacize.c @@ -507,14 +507,14 @@ static void adjust_dependents(const char *dir) verbose("Looking for dependents in %s\n", parent); verbose_indent(); for (file = get_dir(parent); *file; file++) { - char *infoc, **deps; + char *info, **deps; bool isdep = false; if (basename(*file, *file)[0] == '.') continue; - infoc = talloc_asprintf(*file, "%s/_info.c", *file); - if (access(infoc, R_OK) != 0) + info = talloc_asprintf(*file, "%s/_info", *file); + if (access(info, R_OK) != 0) continue; for (deps = get_deps(*file, *file, false); *deps; deps++) { diff --git a/tools/tools.h b/tools/tools.h index 84b1fb8a..4bdb8077 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -10,10 +10,10 @@ #define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan/ -I." -/* This actually compiles and runs the _info.c file to get dependencies. */ +/* This actually compiles and runs the info file to get dependencies. */ char **get_deps(const void *ctx, const char *dir, bool recurse); -/* This is safer: just looks for ccan/ strings in _info.c */ +/* This is safer: just looks for ccan/ strings in info */ char **get_safe_ccan_deps(const void *ctx, const char *dir, bool recurse); #endif /* CCAN_TOOLS_H */ diff --git a/web/configuration b/web/configuration index fcb38358..aeeca274 100644 --- a/web/configuration +++ b/web/configuration @@ -21,7 +21,7 @@ $junkcode = "junkcode/"; $tempfolder = "temp/"; //infofile -$infofile = '/_info.c'; +$infofile = '/_info'; //temp repo $temprepo = "temprepo/"; diff --git a/web/static-configuration b/web/static-configuration index f0fcb89e..0e9d0169 100644 --- a/web/static-configuration +++ b/web/static-configuration @@ -6,7 +6,7 @@ $tempfolder = "/home/ccan/upload-temp/"; $uploadscript = "http://ccan.ozlabs.org/uploader.php"; //infofile -$infofile = '/_info.c'; +$infofile = '/_info'; //ccan admin $ccanadmin = "rusty@rustcorp.com.au"; @@ -22,7 +22,7 @@ $repo_base = 'http://ccan.ozlabs.org/repo/?cmd=inventory;path='; function extract_field($field,$module) { - return htmlspecialchars(shell_exec('tools/doc_extract '.$field.' '.$module.'/_info.c')); + return htmlspecialchars(shell_exec('tools/doc_extract '.$field.' '.$module.'/_info')); } // Convert double line breaks into paragraphs, and blank spaces into preformat. diff --git a/web/staticall.php b/web/staticall.php index ac39eddc..1998e147 100644 --- a/web/staticall.php +++ b/web/staticall.php @@ -28,7 +28,7 @@ Or you can just download the tarball of everything includ $d = dir($argv[1]); $modules = array(); while (false !== ($entry = $d->read())) { - if ($entry[0] != '.' && is_file($argv[1].$entry."/_info.c")) { + if ($entry[0] != '.' && is_file($argv[1].$entry."/_info")) { array_push($modules, $entry); } } diff --git a/web/staticupload.php b/web/staticupload.php index 998ca21c..7cbb64f1 100644 --- a/web/staticupload.php +++ b/web/staticupload.php @@ -16,7 +16,7 @@ Got C code sitting around which might help someone? Put it to work by uploading here; .tar.gz, .zip or even single C files.

-

If it has a valid _info.c file and a testsuite (see the module creation guide), it'll go into the +

If it has a valid _info file and a testsuite (see the module creation guide), it'll go into the main repository. Otherwise, it'll go into our "junkcode" area where people can browse and download it.

diff --git a/web/upload.php b/web/upload.php index 2c208b47..2972180d 100644 --- a/web/upload.php +++ b/web/upload.php @@ -12,7 +12,7 @@ include('configuration'); by uploading here; .tar.gz, .zip or even single C files.

-

If it has a valid _info.c file and a testsuite, it'll go into the +

If it has a valid _info file and a testsuite, it'll go into the main repository. Otherwise, it'll go into our "junkcode" area where people can browse and download it.

-- 2.39.2