Commit Diff


commit - 0ae8e78f5b4dfadff8cc96423443ebb87cee3990
commit + 90081c80fa8f68d89ac46f0ff0a4c35d1200471e
blob - /dev/null
blob + f290f0daafcf5fdcbf5653ad386c688fd6ee60f6 (mode 644)
--- /dev/null
+++ bin/template.lp
@@ -0,0 +1,28 @@
+# license
+
+Output the ISC license, suitable for being used to initialize source
+files.
+
+	#!/bin/sh
+	
+	user="$GOT_AUTHOR"	# XXX: find a fallback
+	year="$(date +%Y)"
+	
+	cat <<EOF
+	/*
+	 * Copyright (c) $year $user
+	 *
+	 * Permission to use, copy, modify, and distribute this software for any
+	 * purpose with or without fee is hereby granted, provided that the above
+	 * copyright notice and this permission notice appear in all copies.
+	 *
+	 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+	 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+	 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+	 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+	 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+	 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+	 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+	 */
+	
+	EOF
blob - e0bf3b64ebd147b76f61e127f9a74ebc645a28cd
blob + 388b0532b55cf9b4c1ae1392ff68ef6ef41f4bde
--- gen
+++ gen
@@ -73,6 +73,7 @@ pair bin/gamemode	bin/gamemode.lp	+x
 pair bin/gmi2txt	bin/gmi2txt.lp	+x
 pair bin/mquote		bin/mquote.lp	+x
 pair bin/sshot		bin/sshot.lp	+x
+pair bin/template	bin/template.lp	+x
 
 pair .config/herbstluftwm/autostart	config/herbstluftwm/autostart.lp
 pair .config/herbstluftwm/panel		config/herbstluftwm/panel.lp	+x