summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-09-06 14:01:48 -0400
committerJune McEnroe <programble@gmail.com>2017-09-06 14:01:48 -0400
commitf77fae1335c562b720c4a6d4aa710f8627eaaff6 (patch)
treed027fc65a47a79db548ef797d95539952b17ba42 /home
parentRename curtis -> home (diff)
downloadsrc-f77fae1335c562b720c4a6d4aa710f8627eaaff6.tar.gz
src-f77fae1335c562b720c4a6d4aa710f8627eaaff6.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..f5dd5a5c 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, Curtis 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..9be88a12 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, Curtis 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..1f079e8a 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, Curtis 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..960696e1 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, Curtis 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..efc6000b 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, Curtis 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..42b3022f 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, Curtis 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 c13f6d71..4b1bfb4d 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, Curtis McEnroe <programble@gmail.com>
  *
diff --git a/home/.bin/xx.c b/bin/xx.c
index 78d8db4c..edd5366b 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, Curtis 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>