Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Updated INSTALL to be nicer | 7b93ffd7cd6368986ca172163493a99c4a2bf50c | spicylord | 2019-09-02 23:33:43 |
made exho into a much simpler shell script, and added copyright notices to them. Updated c, and changed INSTALL to use it. | 6b63772c204107c2d35e5d48024a34d6ee152030 | spicylord | 2019-09-01 03:28:54 |
spng: adds append feature; yes: removed openbsdism, and made main type int (i think?), clp: minor updates | 103555e26dedcb442ccdd29b0175acb2a583b624 | spicylord | 2019-08-29 02:59:37 |
usefull for compiling c/c++. More info in README | 5dafdff79949503997858a94db03f4ae798589b6 | spicylord | 2019-08-26 02:56:33 |
usefull for compiling c/c++. More info in README | 73665a7d814e07970a0dce7a7b663d4ddf9217a4 | spicylord | 2019-08-26 02:55:56 |
hopefully delete ins.c | b06e7258852b9ca1877b7c4fa78b6984e00a9b72 | spicylord | 2019-08-22 19:03:04 |
ins has been replaced with a shell script and clp has been fixed | 35072ced804239e2f886fdf3b4dd995dfe6805f1 | spicylord | 2019-08-22 18:49:38 |
reverted sc because I cannot into memory management. ins is suffering from memory as well so use at your own risk. | 1f24dcf261e3d779782a5e5ba2bd0c26da0fd928 | spicylord | 2019-08-17 19:10:51 |
im an idiot | c6aa7a7fa124fb08422fb24de68ecb70ba066195 | spicylord | 2019-08-16 04:30:23 |
bug fixes | 5ec9e0063dee0e8cb9b7c88a06535a1c13faa2af | spicylord | 2019-08-16 04:20:21 |
added free for previously unfreed malloc buffer fbuf | ec2c9bbcb387a718d36bd861083ac2c40134c152 | spicylord | 2019-08-16 02:01:00 |
put all of the programs under the GPLv3 or later, also updated sc.c | 77dbf20cedc357042ffc03e5da9a51690337a977 | spicylord | 2019-08-16 01:08:49 |
added ins to INSTALL script | 6d58cd823d49a8ad4a32a57173d5d690ddb677c6 | spicylord | 2019-08-15 21:23:41 |
added ins, a program that takes standard input and inserts that into the beginning of a file | c51d12a96e47c407a2e82980401556194b2c090e | matt | 2019-08-15 21:17:47 |
added exho, a program that runs a command and outputs that command to stdout | 4c7b8d4998e747541c420256494cee40ff19fc12 | spicylord | 2019-07-12 02:29:35 |
allow for easy use of different c compilers in INSTALL | a1bb4ec6cdbd070edb7955022f93ff33ca7255da | spicylord | 2019-07-11 16:16:46 |
made COPYING less cringe-inducing | 8d1e9ca0093f143c25b919552b544db92c9f865d | spicylord | 2019-07-10 01:32:22 |
modified usage output and allowed for #,p | 504ca7b3d8db60cb6d1f36a3fd48043ff62f78c0 | spicylord | 2019-07-06 15:49:16 |
spelling error in README | 351dbee78173eef7ae94f9142c6a97452db0d208 | spicylord | 2019-07-04 20:30:33 |
added examples and instructions for clp, spng, and sc in the README | 313a86755e40d909861bc95a11b75bbb109012c9 | spicylord | 2019-07-04 19:25:33 |
File | Lines added | Lines deleted |
---|---|---|
INSTALL | 17 | 11 |
sc.c | 4 | 4 |
File INSTALL changed (mode: 100755) (index 46ffe64..aea3167) | |||
4 | 4 | # your linux distro by default may not produce a working | # your linux distro by default may not produce a working |
5 | 5 | # c file, but you can try if you want. I recommend | # c file, but you can try if you want. I recommend |
6 | 6 | # getting it from your distro repositories | # getting it from your distro repositories |
7 | CC="clang" | ||
8 | if [ "$1" = "" ]; then | ||
9 | ./exho ./c mk clp.c | ||
10 | ./exho ./c mk echo.c | ||
11 | ./exho "lex nl.l && $CC lex.yy.c -o nl -lfl" | ||
12 | ./exho ./c mk sc.c | ||
13 | ./exho ./c mk spng.c | ||
14 | ./exho ./c mk tee.c | ||
15 | ./exho ./c mk wc.c | ||
16 | ./exho ./c mk yes.c | ||
7 | |||
8 | [ "$1" = "clean" ] && rm clp echo nl sc spng tee wc yes && exit | ||
9 | |||
10 | if [ "$1" = "" ] | ||
11 | then | ||
12 | CC="clang" | ||
13 | else | ||
14 | CC="$1" | ||
17 | 15 | fi | fi |
18 | [ "$1" = "clean" ] && rm clp echo clp nl sc spng tee wc yes | ||
16 | |||
17 | ./exho ./c -c $CC mk clp.c | ||
18 | ./exho ./c -c $CC mk echo.c | ||
19 | ./exho lex nl.l && ./exho $CC lex.yy.c -o nl -lfl && ./exho rm lex.yy.c | ||
20 | ./exho ./c -c $CC mk sc.c | ||
21 | ./exho ./c -c $CC mk spng.c | ||
22 | ./exho ./c -c $CC mk tee.c | ||
23 | ./exho ./c -c $CC mk wc.c | ||
24 | ./exho ./c -c $CC mk yes.c |
File sc.c changed (mode: 100644) (index d59401d..97b9e91) | |||
... | ... | int main(int argc, char *argv[]) | |
20 | 20 | { | { |
21 | 21 | int character; | int character; |
22 | 22 | unsigned int ccase = 0; | unsigned int ccase = 0; |
23 | int iter = 1; | ||
23 | int i = 1; | ||
24 | 24 | FILE *filep = stdin; | FILE *filep = stdin; |
25 | 25 | if (argv[1] && argv[1][0]=='-' && argv[1][1]) { | if (argv[1] && argv[1][0]=='-' && argv[1][1]) { |
26 | 26 | switch (argv[1][1]) { | switch (argv[1][1]) { |
... | ... | int main(int argc, char *argv[]) | |
37 | 37 | argv++; | argv++; |
38 | 38 | ||
39 | 39 | do { | do { |
40 | if (argc > 1 && (filep=fopen(argv[iter], "r"))==NULL) { | ||
41 | fprintf(stderr, "sc: unable to open %s\n", argv[iter]); | ||
40 | if (argc > 1 && (filep=fopen(argv[i], "r"))==NULL) { | ||
41 | fprintf(stderr, "sc: unable to open %s\n", argv[i]); | ||
42 | 42 | continue; | continue; |
43 | 43 | } | } |
44 | 44 | ||
... | ... | int main(int argc, char *argv[]) | |
75 | 75 | } | } |
76 | 76 | break; | break; |
77 | 77 | } | } |
78 | } while (++iter<argc); | ||
78 | } while (++i<argc); | ||
79 | 79 | return 0; | return 0; |
80 | 80 | } | } |