Download this file
57 lines (45 with data), 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 | #include <windows.h>
#include <stdio.h>
void GitExecute(const char* command) {
system(command);
}
void GitAdd(const char* path) {
char buffer[512];
snprintf(buffer,512,"git add --ignore-removal %s",path);
GitExecute(buffer);
}
void GitCommit() {
char buffer[512];
char comment[512];
printf("Comment? ");
scanf("%[^\n]",comment);
snprintf(buffer,512,"git commit -a -m \"%s\"",comment);
GitExecute(buffer);
}
void GitPush() {
GitExecute("git push origin master");
}
int main() {
// Add all folders
GitAdd("AStyle");
GitAdd("Help");
GitAdd("Icons");
GitAdd("Lang");
GitAdd("Source");
GitAdd("Templates");
// Add setup scripts
GitAdd("*.nsi");
// Add project resources
GitAdd("devcpp.exe.manifest");
GitAdd("devcpp.ico");
// Add useful text files
GitAdd("COPYING.txt");
GitAdd("NEWS.txt");
// Add git files
GitAdd(".gitignore");
// commit with comment
GitCommit();
// push
GitPush();
return 0;
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.