ref: f7de34a6be61d4e5d20e36fe753250becd88cd30
parent: 63f3a973ef06a5ce4f7a93cc6c99bb6eaab08e11
author: Andrew Chambers <ac@acha.ninja>
date: Thu Apr 7 22:34:49 CDT 2022
Improve amalg.sh.
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,5 @@
Copyright (c) 2007-2013, Ian Piumarta
+Copyright (c) 2022, Andrew Chambers
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -11,4 +12,4 @@
above copyright notice(s) and this permission notice in supporting
documentation would be appreciated but is not required.
-THE SOFTWARE IS PROVIDED 'AS IS'. USE ENTIRELY AT YOUR OWN RISK.
+THE SOFTWARE IS PROVIDED 'AS IS'. USE ENTIRELY AT YOUR OWN RISK.
--- a/amalg.sh
+++ b/amalg.sh
@@ -1,27 +1,13 @@
# Amalgamate the source code, sqlite3 style.
set -eu
-cat <<EOF
-/*
- Copyright (c) 2007 by Ian Piumarta
- Copyright (c) 2022 by Andrew Chambers
- All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a
- copy of this software and associated documentation files (the 'Software'),
- to deal in the Software without restriction, including without limitation
- the rights to use, copy, modify, merge, publish, distribute, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, provided that the above copyright notice(s) and this
- permission notice appear in all copies of the Software. Acknowledgement
- of the use of this Software in supporting documentation would be
- appreciated but is not required.
-
- THE SOFTWARE IS PROVIDED 'AS IS'. USE ENTIRELY AT YOUR OWN RISK.
-
- This file is a distributable version of the minipeg[1] project.
- Visit https://github.com/andrewchambers/minipeg for source code.
-*/
-EOF
+echo "/*"
+echo " -----------------------------------------------------------------------"
+echo " | This file is a generated redistributable version of minipeg. |"
+echo " | See https://github.com/andrewchambers/minipeg for more information. |"
+echo " -----------------------------------------------------------------------"
+sed 's/^/ /g' LICENSE
+echo ""
+echo "*/"
(
for f in "$@"
do