summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-09-06 14:01:48 -0400
committerJune McEnroe <june@causal.agency>2017-09-06 14:01:48 -0400
commit29877b7b775a0b7dc329c2fe191b8d04eb94aa54 (patch)
tree652ec1da8df4354953897baf9c474d374e133edf /home
parentPass final NULL to execlp (diff)
downloadsrc-29877b7b775a0b7dc329c2fe191b8d04eb94aa54.tar.gz
src-29877b7b775a0b7dc329c2fe191b8d04eb94aa54.zip
Move C code to bin, Makefile, AGPL
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x]bin/bri.c (renamed from home/.bin/bri.c)27
-rw-r--r--[-rwxr-xr-x]bin/dtch.c (renamed from home/.bin/dtch.c)26
-rw-r--r--[-rwxr-xr-x]bin/hnel.c (renamed from home/.bin/hnel.c)22
-rw-r--r--[-rwxr-xr-x]bin/jrp.c (renamed from home/.bin/jrp.c)22
-rw-r--r--[-rwxr-xr-x]bin/pbd.c (renamed from home/.bin/pbd.c)29
-rw-r--r--[-rwxr-xr-x]bin/wake.c (renamed from home/.bin/wake.c)20
-rw-r--r--[-rwxr-xr-x]bin/watch.c (renamed from home/.bin/watch.c)7
-rw-r--r--[-rwxr-xr-x]bin/xx.c (renamed from home/.bin/xx.c)22
8 files changed, 121 insertions, 54 deletions
diff --git a/home/.bin/bri.c b/bin/bri.c
index d085814b..5760c0cd 100755..100644
--- a/home/.bin/bri.c
+++ b/bin/bri.c
@@ -1,13 +1,20 @@
-#if 0
-set -e
-bin=$(dirname $0)
-cc -Wall -Wextra -pedantic $@ -o $bin/bri $0
-sudo chown root:root $bin/bri
-sudo chmod u+s $bin/bri
-exit
-#endif
-
-// Backlight brightness control.
+/* Backlight brightness control.
+ *
+ * Copyright (c) 2017, June McEnroe <programble@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 #include <dirent.h>
 #include <err.h>
diff --git a/home/.bin/dtch.c b/bin/dtch.c
index a37eeeeb..74719fba 100755..100644
--- a/home/.bin/dtch.c
+++ b/bin/dtch.c
@@ -1,12 +1,20 @@
-#if 0
-set -e
-bin=$(dirname $0)
-cc -Wall -Wextra -pedantic $@ -lutil -o $bin/dtch $0
-ln -f $bin/dtch $bin/atch
-exit
-#endif
-
-// Session attach and detach.
+/* Session attach and detach.
+ *
+ * Copyright (c) 2017, June McEnroe <programble@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 #include <err.h>
 #include <errno.h>
diff --git a/home/.bin/hnel.c b/bin/hnel.c
index 3aec85b3..03b8c7a8 100755..100644
--- a/home/.bin/hnel.c
+++ b/bin/hnel.c
@@ -1,8 +1,20 @@
-#if 0
-exec cc -Wall -Wextra -pedantic $@ -lutil -o $(dirname $0)/hnel $0
-#endif
-
-// PTY wrapper for preserving HJKL in Tarmak layouts.
+/* PTY wrapper for preserving HJKL in Tarmak layouts.
+ *
+ * Copyright (c) 2017, June McEnroe <programble@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 #include <err.h>
 #include <poll.h>
diff --git a/home/.bin/jrp.c b/bin/jrp.c
index 9317ac8e..9fa3dcc1 100755..100644
--- a/home/.bin/jrp.c
+++ b/bin/jrp.c
@@ -1,8 +1,20 @@
-#if 0
-exec cc -Wall -Wextra -pedantic $@ $0 -ledit -o $(dirname $0)/jrp
-#endif
-
-// JIT RPN calculator.
+/* JIT RPN calculator.
+ *
+ * Copyright (c) 2017, June McEnroe <programble@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 #include <err.h>
 #include <histedit.h>
diff --git a/home/.bin/pbd.c b/bin/pbd.c
index 01e5c07d..fcc5d2cf 100755..100644
--- a/home/.bin/pbd.c
+++ b/bin/pbd.c
@@ -1,14 +1,21 @@
-#if 0
-set -e
-bin=$(dirname $0)
-cc -Wall -Wextra -pedantic $@ -o $bin/pbd $0
-ln -f $bin/pbd $bin/pbcopy
-ln -f $bin/pbd $bin/pbpaste
-exit
-#endif
-
-// TCP server which pipes between macOS pbcopy and pbpaste, and pbcopy and
-// pbpaste implementations which connect to it.
+/* TCP server which pipes between macOS pbcopy and pbpaste, and pbcopy and
+ * pbpaste implementations which connect to it.
+ *
+ * Copyright (c) 2017, June McEnroe <programble@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 #include <arpa/inet.h>
 #include <err.h>
diff --git a/home/.bin/wake.c b/bin/wake.c
index 2f314975..07a2ef37 100755..100644
--- a/home/.bin/wake.c
+++ b/bin/wake.c
@@ -1,6 +1,20 @@
-#if 0
-exec cc -Wall -Wextra -Wpedantic $@ -o $(dirname $0)/wake $0
-#endif
+/* Wake-on-LAN.
+ *
+ * Copyright (c) 2017, June McEnroe <programble@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 #include <err.h>
 #include <netinet/in.h>
diff --git a/home/.bin/watch.c b/bin/watch.c
index 7720315b..22bd5197 100755..100644
--- a/home/.bin/watch.c
+++ b/bin/watch.c
@@ -1,9 +1,4 @@
-#if 0
-exec cc -Wall -Wextra -Wpedantic -o $(dirname $0)/watch $0
-#endif
-
-/*
- * Execute a command each time files change.
+/* Execute a command each time files change.
  *
  * Copyright (c) 2017, June McEnroe <programble@gmail.com>
  *
diff --git a/home/.bin/xx.c b/bin/xx.c
index 78d8db4c..e1e31e4a 100755..100644
--- a/home/.bin/xx.c
+++ b/bin/xx.c
@@ -1,8 +1,20 @@
-#if 0
-exec cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/xx $0
-#endif
-
-// Hexdump.
+/* Hexdump.
+ *
+ * Copyright (c) 2017, June McEnroe <programble@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 #include <ctype.h>
 #include <err.h>