Browse Source

the first draft for a patch-only copyright tag (to please e.g. the XFree folks)

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1479 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
5b5da630f1
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      scripts/Create-CopyPatch

+ 18
- 1
scripts/Create-CopyPatch

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
copynote=`mktemp` copynote=`mktemp`
copynotepatch=`mktemp`
oldfile=`mktemp` oldfile=`mktemp`
newfile=`mktemp` newfile=`mktemp`
@ -14,6 +15,11 @@ the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
ROCK Linux: rock-src/@@FILENAME@@ ROCK Linux: rock-src/@@FILENAME@@
ROCK Linux is Copyright (C) 1998 - `date +%Y` Clifford Wolf ROCK Linux is Copyright (C) 1998 - `date +%Y` Clifford Wolf
EOT
cp $copynote $copynotepatch
cat << EOT >> $copynote
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
@ -26,6 +32,17 @@ file for details.
EOT EOT
cat << EOT >> $copynotepatch
This patch file is dual-licensed. It is available under the license the
patched project is licensed under, as long as it is an OpenSource license
as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
EOT
echo "Creating copy.patch (this may take a while) ..." echo "Creating copy.patch (this may take a while) ..."
echo -n > copy.patch echo -n > copy.patch
@ -98,5 +115,5 @@ do
fi fi
done done
rm -f $copynote $newfile
rm -f $copynote $copynotepatch $newfile

Loading…
Cancel
Save