summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/Doxyfile0
-rw-r--r--scripts/email_issue.c5
2 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Doxyfile b/scripts/Doxyfile
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/scripts/Doxyfile
diff --git a/scripts/email_issue.c b/scripts/email_issue.c
index 6a47d6b..f4801d6 100644
--- a/scripts/email_issue.c
+++ b/scripts/email_issue.c
@@ -11,7 +11,7 @@ void make_template(bool verbose) {
char tmp_template[] = "/tmp/email_issue_XXXXXX";
int fd = mkstemp(tmp_template);
- const char *issue_template =
+ const char issue_template[] =
"# Lines beginning with hashtags (like this one) are generated by the template.\n"
"# They are not included in the issue.\n"
"# Leave a newline at the bottom\n"
@@ -40,6 +40,9 @@ void make_template(bool verbose) {
"[TYPE LEVEL] Issue title (doe)\n\n"
"Your issue description here...\n\n"
"@@END-OF-ISSUE@@\n";
+
+ char cmd[300];
+ snprintf(cmd, sizeof(cmd), "vim -f %s", tmpfile); // TODO: Make this use $EDITOR in the future. or not. vim works fine
}
int main (int argc, char *argv[])