Skip to content

Commit 9464e6c

Browse files
Generate license header in dist files
1 parent 10e2449 commit 9464e6c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

β€Žgenerator.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,30 @@ for shell in sh bash fish ksh zsh; do
8585
fi
8686

8787
echo "#!/usr/bin/env ${shell}" > "${newDist}"
88+
89+
cat << SH_ECHO >> "${newDist}"
90+
91+
# ColorEchoForShell
92+
# https://github.com/PeterDaveHello/ColorEchoForShell
93+
# Copyright (C) 2015 ~ Peter Dave Hello
94+
#
95+
# This program is free software; you can redistribute it and/or modify
96+
# it under the terms of the GNU General Public License as published by
97+
# the Free Software Foundation; either version 2 of the License, or (at
98+
# your option) any later version.
99+
#
100+
# This program is distributed in the hope that it will be useful, but
101+
# WITHOUT ANY WARRANTY; without even the implied warranty of
102+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
103+
# General Public License for more details.
104+
#
105+
# You should have received a copy of the GNU General Public License
106+
# along with this program; if not, write to the Free Software
107+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
108+
# USA.
109+
110+
SH_ECHO
111+
88112
if [ "${shell}" = "sh" ]; then
89113
cat << SH_ECHO >> "${newDist}"
90114
if [ "\$(uname)" = "FreeBSD" ]; then

0 commit comments

Comments
Β (0)