Subject | Hash | Author | Date (UTC) |
---|---|---|---|
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 |
made regex slightly neater | ac8eda8f7290e5f138edac12f789b1215de90719 | spicylord | 2019-07-04 18:31:55 |
fixed outputting garbled text into clipboard file | a100287acf1993ae13130e036d7104bd2afe4585 | spicylord | 2019-07-04 18:30:34 |
fixed install script to compile clp.c instead of clb.c | 54a54b5da1a122e69ed62bc0f030f11044a62fb9 | spicylord | 2019-07-04 13:47:33 |
added email | a04151394c9a4b3afe23e8ebd11939fe7892737d | spicylord | 2019-07-04 02:58:00 |
initial commit | 484a7ed27b1835a962cec85cc6f55a20d4a95b46 | spicylord | 2019-07-04 02:50:23 |
File | Lines added | Lines deleted |
---|---|---|
INSTALL | 11 | 17 |
exho.c | 11 | 0 |
File INSTALL changed (mode: 100755) (index cfad0db..b435209) | |||
6 | 6 | # getting it from your distro repositories | # getting it from your distro repositories |
7 | 7 | CC="gcc" | CC="gcc" |
8 | 8 | if [ "$1" = "" ]; then | if [ "$1" = "" ]; then |
9 | echo "$CC clp.c -o clp" | ||
10 | $CC clp.c -o clp | ||
11 | echo "$CC echo.c -o echo" | ||
12 | $CC echo.c -o echo | ||
13 | echo "$CC sc.c -o sc" | ||
14 | $CC sc.c -o sc | ||
15 | echo "$CC spng.c -o spng" | ||
16 | $CC spng.c -o spng | ||
17 | echo "$CC tee.c -o tee" | ||
18 | $CC tee.c -o tee | ||
19 | echo "$CC wc.c -o wc" | ||
20 | $CC wc.c -o wc | ||
21 | echo "$CC yes.c -o yes" | ||
22 | $CC yes.c -o yes | ||
23 | echo "lex nl.l && $CC lex.yy.c -o nl.l -lfl && rm lex.yy.c" | ||
24 | lex nl.l && $CC lex.yy.c -o nl -lfl && rm lex.yy.c | ||
9 | echo "$CC exho.c -o exho" | ||
10 | $CC exho.c -o exho | ||
11 | ./exho "$CC clp.c -o clp" | ||
12 | ./exho "$CC echo.c -o echo" | ||
13 | ./exho "$CC sc.c -o sc" | ||
14 | ./exho "$CC spng.c -o spng" | ||
15 | ./exho "$CC tee.c -o tee" | ||
16 | ./exho "$CC wc.c -o wc" | ||
17 | ./exho "$CC yes.c -o yes" | ||
18 | ./exho "lex nl.l && $CC lex.yy.c -o nl -lfl && rm lex.yy.c" | ||
25 | 19 | fi | fi |
26 | [ "$1" = "clean" ] && rm clp echo sc spng tee wc yes nl | ||
20 | [ "$1" = "clean" ] && rm clp echo exho nl sc spng tee wc yes |
File exho.c added (mode: 100644) (index 0000000..4cac7fd) | |||
1 | #include <stdio.h> | ||
2 | #include <stdlib.h> | ||
3 | |||
4 | int main(int argc, char *argv[]) | ||
5 | { | ||
6 | if (argc>1) { | ||
7 | printf("%s\n", argv[1]); | ||
8 | system(argv[1]); | ||
9 | } | ||
10 | return 0; | ||
11 | } |