summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xccan/build_assert/_info.30342bin0 -> 6338 bytes
-rwxr-xr-xccan/build_assert/_info.30850bin0 -> 6338 bytes
-rw-r--r--ccan/string/test/run-grab.c35
-rw-r--r--ccan/string/test/run.c15
-rwxr-xr-xtools/create_dep_tarbin58419 -> 58411 bytes
-rw-r--r--tools/create_dep_tar.c2
-rw-r--r--web/configuration5
-rwxr-xr-xweb/db/ccan.dbbin32768 -> 32768 bytes
-rw-r--r--web/dispmoduleinfo.php4
-rw-r--r--web/functions.php4
-rw-r--r--web/requestid.php3
-rw-r--r--web/tarball/alignof.tarbin0 -> 20480 bytes
-rw-r--r--web/tarball/alignof_with_deps.tarbin0 -> 40960 bytes
-rw-r--r--web/tarball/alloc.tarbin0 -> 92160 bytes
-rw-r--r--web/tarball/alloc_with_deps.tarbin0 -> 112640 bytes
-rw-r--r--web/tarball/build_assert.tarbin0 -> 20480 bytes
-rw-r--r--web/tarball/build_assert_with_deps.tarbin0 -> 20480 bytes
-rw-r--r--web/tarball/check_type.tarbin0 -> 20480 bytes
-rw-r--r--web/tarball/check_type_with_deps.tarbin0 -> 20480 bytes
-rw-r--r--web/tarball/container_of.tarbin0 -> 20480 bytes
-rw-r--r--web/tarball/container_of_with_deps.tarbin0 -> 40960 bytes
-rw-r--r--web/tarball/hash.tarbin0 -> 81920 bytes
-rw-r--r--web/tarball/hash_with_deps.tarbin0 -> 92160 bytes
-rw-r--r--web/tarball/list.tarbin0 -> 30720 bytes
-rw-r--r--web/tarball/list_with_deps.tarbin0 -> 71680 bytes
-rw-r--r--web/tarball/noerr.tarbin0 -> 20480 bytes
-rw-r--r--web/tarball/noerr_with_deps.tarbin0 -> 30720 bytes
-rw-r--r--web/tarball/string.tarbin0 -> 30720 bytes
-rw-r--r--web/tarball/string_with_deps.tarbin0 -> 225280 bytes
-rw-r--r--web/tarball/talloc.tarbin0 -> 184320 bytes
-rw-r--r--web/tarball/talloc_with_deps.tarbin0 -> 215040 bytes
-rw-r--r--web/tarball/tap.tarbin0 -> 61440 bytes
-rw-r--r--web/tarball/tap_with_deps.tarbin0 -> 61440 bytes
-rw-r--r--web/tarball/typesafe_cb.tarbin0 -> 30720 bytes
-rw-r--r--web/tarball/typesafe_cb_with_deps.tarbin0 -> 40960 bytes
35 files changed, 41 insertions, 27 deletions
diff --git a/ccan/build_assert/_info.30342 b/ccan/build_assert/_info.30342
new file mode 100755
index 00000000..d1a638f8
--- /dev/null
+++ b/ccan/build_assert/_info.30342
Binary files differ
diff --git a/ccan/build_assert/_info.30850 b/ccan/build_assert/_info.30850
new file mode 100755
index 00000000..d1a638f8
--- /dev/null
+++ b/ccan/build_assert/_info.30850
Binary files differ
diff --git a/ccan/string/test/run-grab.c b/ccan/string/test/run-grab.c
index cfd8b9b4..96b9dac8 100644
--- a/ccan/string/test/run-grab.c
+++ b/ccan/string/test/run-grab.c
@@ -1,6 +1,5 @@
-/* This is test for grab_file() function */
-
-/*
+/* This is test for grab_file() function
+ *
* Example:
*
* void *grab_file(const void *ctx, const char *filename)
@@ -22,4 +21,34 @@
* }
*/
+#include <stdlib.h>
+#include <stdio.h>
+#include <err.h>
+#include <sys/stat.h>
+#include "string/string.h"
+#include "string/string.c"
+#include "tap/tap.h"
+
+int
+main(int argc, char *argv[])
+{
+ unsigned int i;
+ char **split, *str;
+ int length;
+ struct stat st;
+
+ str = grab_file(NULL, "ccan/string/test/run-grab.c");
+ split = strsplit(NULL, str, "\n", NULL);
+ length = strlen(split[0]);
+ ok1(streq(split[0], "/* This is test for grab_file() function"));
+ for (i = 1; split[i]; i++)
+ length += strlen(split[i]);
+ ok1(streq(split[i-1], "/* End of grab_file() test */"));
+ if (stat("ccan/string/test/run-grab.c", &st) != 0)
+ err(1, "Could not stat self");
+ ok1(st.st_size == length + i);
+
+ return 0;
+}
+
/* End of grab_file() test */
diff --git a/ccan/string/test/run.c b/ccan/string/test/run.c
index f68e7ec5..c50854ab 100644
--- a/ccan/string/test/run.c
+++ b/ccan/string/test/run.c
@@ -27,9 +27,7 @@ int main(int argc, char *argv[])
char **split, *str;
void *ctx;
char *strings[NUM_SUBSTRINGS * NUM_SUBSTRINGS];
- int length;
- struct stat st;
-
+
n = 0;
for (i = 0; i < NUM_SUBSTRINGS; i++) {
for (j = 0; j < NUM_SUBSTRINGS; j++) {
@@ -117,16 +115,5 @@ int main(int argc, char *argv[])
ok1(talloc_parent(str) == ctx);
talloc_free(ctx);
- str = grab_file(NULL, "ccan/string/test/run-grab.c");
- split = strsplit(NULL, str, "\n", NULL);
- length = strlen(split[0]);
- ok1(streq(split[0], "/* This is test for grab_file() function */"));
- for(i = 1; split[i]; i++)
- length += strlen(split[i]);
- ok1(streq(split[i-1], "/* End of grab_file() test */"));
- if (stat("ccan/string/test/run-grab.c", &st) != 0)
- err(1, "Could not stat self");
- ok1(st.st_size == length);
-
return exit_status();
}
diff --git a/tools/create_dep_tar b/tools/create_dep_tar
index 7920b0b0..715fb6ba 100755
--- a/tools/create_dep_tar
+++ b/tools/create_dep_tar
Binary files differ
diff --git a/tools/create_dep_tar.c b/tools/create_dep_tar.c
index 74fdb569..3a84f8d9 100644
--- a/tools/create_dep_tar.c
+++ b/tools/create_dep_tar.c
@@ -53,7 +53,7 @@ create_tar(char **deps, const char *dir, const char *targetdir)
if (deps != NULL) {
cmd_args = strjoin(NULL, deps, " ");
- cmd = talloc_asprintf(NULL, TAR_CMD "%s/%s_dependencies.tar %s %s", targetdir, module, cmd_args, dir);
+ cmd = talloc_asprintf(NULL, TAR_CMD "%s/%s_with_deps.tar %s %s", targetdir, module, cmd_args, dir);
} else
cmd = talloc_asprintf(NULL, TAR_CMD "%s/%s.tar %s", targetdir, module, dir);
diff --git a/web/configuration b/web/configuration
index d29bed87..fcb38358 100644
--- a/web/configuration
+++ b/web/configuration
@@ -29,9 +29,6 @@ $temprepo = "temprepo/";
//email from
$frommail = "ccan@ozlabs.org";
-//email for admins
-$ccan_admin = "g.dinesh.cse@gmail.com";
-
//ccan home
$ccan_home_dir = "ccan/";
@@ -43,4 +40,4 @@ $bzr_push = 'bzr push /home/dinesh/testwebsite/ ';
//tar home dir
$tar_dir = 'tarball/';
-?> \ No newline at end of file
+?>
diff --git a/web/db/ccan.db b/web/db/ccan.db
index 77ba6a01..503c7fcc 100755
--- a/web/db/ccan.db
+++ b/web/db/ccan.db
Binary files differ
diff --git a/web/dispmoduleinfo.php b/web/dispmoduleinfo.php
index b0aba20e..9c26f9ea 100644
--- a/web/dispmoduleinfo.php
+++ b/web/dispmoduleinfo.php
@@ -19,7 +19,7 @@ $row = sqlite3_fetch_array($result);
<td>
<?php
if(file_exists($tar_dir . $_GET['module']."_dependencies.tar"))
- echo '<a href='. $tar_dir . $_GET['module'] . '_dependencies.tar>Download Dependencies</a>';
+ echo '<a href='. $tar_dir . $_GET['module'] . '_with_deps.tar>Download Dependencies</a>';
?>
</td>
</tr>
@@ -54,4 +54,4 @@ function checkerror($status, $msg)
exit();
}
}
-?> \ No newline at end of file
+?>
diff --git a/web/functions.php b/web/functions.php
index 4228c3ae..4b89fa5a 100644
--- a/web/functions.php
+++ b/web/functions.php
@@ -36,7 +36,7 @@ function getccanadmin($db)
$result = sqlite3_query($handle, $query) or die("Error in query: ".sqlite3_error($handle));
while ($row = sqlite3_fetch_array($result))
- $admin = $admin.$row[0].",";
+ $admin = $admin.$row['email'].",";
return $admin;
}
-?> \ No newline at end of file
+?>
diff --git a/web/requestid.php b/web/requestid.php
index eedada53..3d293ddd 100644
--- a/web/requestid.php
+++ b/web/requestid.php
@@ -3,6 +3,7 @@ session_start();
include('logo.html');
include('menulist.html');
include('configuration');
+include('functions.php');
if(isset($_POST['submit'])) {
$name = $_REQUEST['name'];
@@ -80,7 +81,7 @@ $result = sqlite3_exec($handle, $query) or die("Error in query: ".sqlite3_error(
$subject = "Approval of ccan account";
$message = "There is new request for ccan account id.\n\n Please use the following link to approve http://ccan.ozlabs.org/dinesh/approval.php?accountid=".$accountid;
-mail($ccan_admin, $subject, $message, "From: $email");
+mail(getccanadmin($db), $subject, $message, "From: $email");
?>
</br><div>Thank you for registering with CCAN. You will get the password to your mail after approval.</div>
<?php
diff --git a/web/tarball/alignof.tar b/web/tarball/alignof.tar
new file mode 100644
index 00000000..bbb86307
--- /dev/null
+++ b/web/tarball/alignof.tar
Binary files differ
diff --git a/web/tarball/alignof_with_deps.tar b/web/tarball/alignof_with_deps.tar
new file mode 100644
index 00000000..22f8a71b
--- /dev/null
+++ b/web/tarball/alignof_with_deps.tar
Binary files differ
diff --git a/web/tarball/alloc.tar b/web/tarball/alloc.tar
new file mode 100644
index 00000000..f6accbde
--- /dev/null
+++ b/web/tarball/alloc.tar
Binary files differ
diff --git a/web/tarball/alloc_with_deps.tar b/web/tarball/alloc_with_deps.tar
new file mode 100644
index 00000000..e302074c
--- /dev/null
+++ b/web/tarball/alloc_with_deps.tar
Binary files differ
diff --git a/web/tarball/build_assert.tar b/web/tarball/build_assert.tar
new file mode 100644
index 00000000..a7fe39a3
--- /dev/null
+++ b/web/tarball/build_assert.tar
Binary files differ
diff --git a/web/tarball/build_assert_with_deps.tar b/web/tarball/build_assert_with_deps.tar
new file mode 100644
index 00000000..0e08d8a6
--- /dev/null
+++ b/web/tarball/build_assert_with_deps.tar
Binary files differ
diff --git a/web/tarball/check_type.tar b/web/tarball/check_type.tar
new file mode 100644
index 00000000..c5ae04c7
--- /dev/null
+++ b/web/tarball/check_type.tar
Binary files differ
diff --git a/web/tarball/check_type_with_deps.tar b/web/tarball/check_type_with_deps.tar
new file mode 100644
index 00000000..c0919cd6
--- /dev/null
+++ b/web/tarball/check_type_with_deps.tar
Binary files differ
diff --git a/web/tarball/container_of.tar b/web/tarball/container_of.tar
new file mode 100644
index 00000000..a0dae39f
--- /dev/null
+++ b/web/tarball/container_of.tar
Binary files differ
diff --git a/web/tarball/container_of_with_deps.tar b/web/tarball/container_of_with_deps.tar
new file mode 100644
index 00000000..15c8fdb1
--- /dev/null
+++ b/web/tarball/container_of_with_deps.tar
Binary files differ
diff --git a/web/tarball/hash.tar b/web/tarball/hash.tar
new file mode 100644
index 00000000..a51e899e
--- /dev/null
+++ b/web/tarball/hash.tar
Binary files differ
diff --git a/web/tarball/hash_with_deps.tar b/web/tarball/hash_with_deps.tar
new file mode 100644
index 00000000..e6c2f269
--- /dev/null
+++ b/web/tarball/hash_with_deps.tar
Binary files differ
diff --git a/web/tarball/list.tar b/web/tarball/list.tar
new file mode 100644
index 00000000..d58be442
--- /dev/null
+++ b/web/tarball/list.tar
Binary files differ
diff --git a/web/tarball/list_with_deps.tar b/web/tarball/list_with_deps.tar
new file mode 100644
index 00000000..3e371eae
--- /dev/null
+++ b/web/tarball/list_with_deps.tar
Binary files differ
diff --git a/web/tarball/noerr.tar b/web/tarball/noerr.tar
new file mode 100644
index 00000000..3eafdcf4
--- /dev/null
+++ b/web/tarball/noerr.tar
Binary files differ
diff --git a/web/tarball/noerr_with_deps.tar b/web/tarball/noerr_with_deps.tar
new file mode 100644
index 00000000..fb39eb6f
--- /dev/null
+++ b/web/tarball/noerr_with_deps.tar
Binary files differ
diff --git a/web/tarball/string.tar b/web/tarball/string.tar
new file mode 100644
index 00000000..deedf97e
--- /dev/null
+++ b/web/tarball/string.tar
Binary files differ
diff --git a/web/tarball/string_with_deps.tar b/web/tarball/string_with_deps.tar
new file mode 100644
index 00000000..f7cde076
--- /dev/null
+++ b/web/tarball/string_with_deps.tar
Binary files differ
diff --git a/web/tarball/talloc.tar b/web/tarball/talloc.tar
new file mode 100644
index 00000000..40bae0de
--- /dev/null
+++ b/web/tarball/talloc.tar
Binary files differ
diff --git a/web/tarball/talloc_with_deps.tar b/web/tarball/talloc_with_deps.tar
new file mode 100644
index 00000000..38c87d39
--- /dev/null
+++ b/web/tarball/talloc_with_deps.tar
Binary files differ
diff --git a/web/tarball/tap.tar b/web/tarball/tap.tar
new file mode 100644
index 00000000..5e37ad64
--- /dev/null
+++ b/web/tarball/tap.tar
Binary files differ
diff --git a/web/tarball/tap_with_deps.tar b/web/tarball/tap_with_deps.tar
new file mode 100644
index 00000000..42e7c788
--- /dev/null
+++ b/web/tarball/tap_with_deps.tar
Binary files differ
diff --git a/web/tarball/typesafe_cb.tar b/web/tarball/typesafe_cb.tar
new file mode 100644
index 00000000..937e7097
--- /dev/null
+++ b/web/tarball/typesafe_cb.tar
Binary files differ
diff --git a/web/tarball/typesafe_cb_with_deps.tar b/web/tarball/typesafe_cb_with_deps.tar
new file mode 100644
index 00000000..79b8e588
--- /dev/null
+++ b/web/tarball/typesafe_cb_with_deps.tar
Binary files differ