2_bin/gitadd script to do a make clean before an add
authorThomas Walker Lynch <thomas.lynch@reasoningtechnology.com>
Sat, 23 Feb 2019 23:24:09 +0000 (00:24 +0100)
committerThomas Walker Lynch <thomas.lynch@reasoningtechnology.com>
Sat, 23 Feb 2019 23:24:09 +0000 (00:24 +0100)
12 files changed:
bin/gitadd [new file with mode: 0755]
makefile
src/5_scratch/common.lib.h [new file with mode: 0644]
src/5_scratch/dbprintf.lib.h [new file with mode: 0644]
src/5_scratch/dispatch_exec.lib.h [new file with mode: 0644]
src/5_scratch/dispatch_f.lib.h [new file with mode: 0644]
src/5_scratch/dispatch_useradd.lib.h [new file with mode: 0644]
src/5_scratch/subu-config.lib.h [new file with mode: 0644]
src/5_scratch/subu-init.cli.h [new file with mode: 0644]
src/5_scratch/subu-mk-0.cli.h [new file with mode: 0644]
src/5_scratch/subu-mk-0.lib.h [new file with mode: 0644]
src/5_scratch/subu-number.cli.h [new file with mode: 0644]

diff --git a/bin/gitadd b/bin/gitadd
new file mode 100755 (executable)
index 0000000..7097d77
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -x
+make clean
+git add "$@"
+
index f5487c9..f77a99c 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -3,14 +3,14 @@ subdirectories=src
 
 all :
        $(foreach dir, $(subdirectories), \
-               if [ -f $(dir)/Makefile ]; then \
+               if [ -f $(dir)/makefile ]; then \
                        make -C $(dir) all && make -C $(dir) install; \
                fi;\
        )
 
 clean :
        $(foreach dir, $(subdirectories), \
-               if [ -f ./$(dir)/Makefile ]; then \
+               if [ -f ./$(dir)/makefile ]; then \
                        make -C $(dir) clean; \
                fi;\
        )
diff --git a/src/5_scratch/common.lib.h b/src/5_scratch/common.lib.h
new file mode 100644 (file)
index 0000000..6b7f7c9
--- /dev/null
@@ -0,0 +1,4 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+typedef unsigned int uint;
+#define INTERFACE 0
diff --git a/src/5_scratch/dbprintf.lib.h b/src/5_scratch/dbprintf.lib.h
new file mode 100644 (file)
index 0000000..3056cf6
--- /dev/null
@@ -0,0 +1,3 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+int dbprintf(const char *format,...);
diff --git a/src/5_scratch/dispatch_exec.lib.h b/src/5_scratch/dispatch_exec.lib.h
new file mode 100644 (file)
index 0000000..877a38e
--- /dev/null
@@ -0,0 +1,4 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+int dbprintf(const char *format,...);
+int dispatch_exec(char **argv,char **envp);
diff --git a/src/5_scratch/dispatch_f.lib.h b/src/5_scratch/dispatch_f.lib.h
new file mode 100644 (file)
index 0000000..994592d
--- /dev/null
@@ -0,0 +1,5 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+int dispatch_f_euid_egid(char *fname,int(*f)(void *arg),void *f_arg,uid_t euid,gid_t egid);
+int dbprintf(const char *format,...);
+int dispatch_f(char *fname,int(*f)(void *arg),void *f_arg);
diff --git a/src/5_scratch/dispatch_useradd.lib.h b/src/5_scratch/dispatch_useradd.lib.h
new file mode 100644 (file)
index 0000000..0ce7e9d
--- /dev/null
@@ -0,0 +1,16 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+int dispatch_exec(char **argv,char **envp);
+#include <sys/types.h>
+#include <pwd.h>
+typedef struct dispatch_useradd_ret_t dispatch_useradd_ret_t;
+typedef unsigned int uint;
+struct dispatch_useradd_ret_t {
+  uint error;
+  struct passwd *pw_record;  
+};
+struct dispatch_useradd_ret_t dispatch_useradd(char **argv,char **envp);
+#define ERR_DISPATCH_USERADD_PWREC 3
+#define ERR_DISPATCH_USERADD_DISPATCH 2
+#define ERR_DISPATCH_USERADD_ARGC 1
+#define INTERFACE 0
diff --git a/src/5_scratch/subu-config.lib.h b/src/5_scratch/subu-config.lib.h
new file mode 100644 (file)
index 0000000..c359b52
--- /dev/null
@@ -0,0 +1,9 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+#include <sqlite3.h>
+typedef unsigned int uint;
+int subu_number(sqlite3 *db,uint **subu_number);
+int schema(sqlite3 *db,uint max_subu_number);
+extern char config_file[];
+#define ERR_CONFIG_FILE -1
+#define INTERFACE 0
diff --git a/src/5_scratch/subu-init.cli.h b/src/5_scratch/subu-init.cli.h
new file mode 100644 (file)
index 0000000..46bfd20
--- /dev/null
@@ -0,0 +1,10 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+#include <sqlite3.h>
+#define ERR_CONFIG_FILE -1
+typedef unsigned int uint;
+int schema(sqlite3 *db,uint max_subu_number);
+extern char config_file[];
+int main();
+int main();
+int main(int argc,char **argv,char **env);
diff --git a/src/5_scratch/subu-mk-0.cli.h b/src/5_scratch/subu-mk-0.cli.h
new file mode 100644 (file)
index 0000000..075b350
--- /dev/null
@@ -0,0 +1,8 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+#include <sqlite3.h>
+extern char config_file[];
+int subu_mk_0(char *subuname,char *config_file);
+int main();
+int main();
+int main(int argc,char **argv,char **env);
diff --git a/src/5_scratch/subu-mk-0.lib.h b/src/5_scratch/subu-mk-0.lib.h
new file mode 100644 (file)
index 0000000..82c7e14
--- /dev/null
@@ -0,0 +1,29 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+int dispatch_exec(char **argv,char **envp);
+#include <sys/types.h>
+#include <pwd.h>
+typedef struct dispatch_useradd_ret_t dispatch_useradd_ret_t;
+typedef unsigned int uint;
+struct dispatch_useradd_ret_t {
+  uint error;
+  struct passwd *pw_record;  
+};
+struct dispatch_useradd_ret_t dispatch_useradd(char **argv,char **envp);
+int dispatch_f_euid_egid(char *fname,int(*f)(void *arg),void *f_arg,uid_t euid,gid_t egid);
+int dbprintf(const char *format,...);
+#include <sqlite3.h>
+extern char config_file[];
+int subu_mk_0(char *subuname,char *config_file);
+int masteru_makes_subuhome(void *arg);
+int allowed_subuname(char *subuname);
+#define ERR_SUBU_MK_0_SETFACL 9
+#define ERR_SUBU_MK_0_FAILED_USERADD 8
+#define ERR_SUBU_MK_0_BUG_SSS 7
+#define ERR_SUBU_MK_0_FAILED_MKDIR_SUBU 6
+#define ERR_SUBU_MK_0_MK_SUBUHOME 5
+#define ERR_SUBU_MK_0_MALLOC 4
+#define ERR_SUBU_MK_0_BAD_MASTERU_HOME 3
+#define ERR_SUBU_MK_0_SETUID_ROOT 2
+#define ERR_SUBU_MK_0_CONFIG_FILE 1
+#define INTERFACE 0
diff --git a/src/5_scratch/subu-number.cli.h b/src/5_scratch/subu-number.cli.h
new file mode 100644 (file)
index 0000000..759d808
--- /dev/null
@@ -0,0 +1,10 @@
+/* \aThis file was automatically generated.  Do not edit! */
+#undef INTERFACE
+#include <sqlite3.h>
+typedef unsigned int uint;
+int subu_number(sqlite3 *db,uint **subu_number);
+#define ERR_CONFIG_FILE -1
+extern char config_file[];
+int main();
+int main();
+int main(int argc,char **argv,char **env);