Switch to GPLv3
This commit is contained in:
parent
0a5a9981ce
commit
c111c7e1dd
32 changed files with 786 additions and 364 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/TopSource.cpp
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/TopSource.cpp
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/000_TopSource.c
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# @P@/src/@NAME@/Doxyfile.in
|
||||
#
|
||||
# (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
# Released under the GNU GPLv2. See file COPYING or
|
||||
# Released under the GNU GPLv3. See file COPYING or
|
||||
# http://www.gnu.org/copyleft/gpl.html for details.
|
||||
#
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/MainPage.dox
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
; @P@/src/@NAME@/TopSource.asm
|
||||
;
|
||||
; (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
; Released under the GNU GPLv2. See file COPYING or
|
||||
; Released under the GNU GPLv3. See file COPYING or
|
||||
; http://www.gnu.org/copyleft/gpl.html for details.
|
||||
;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
; @P@/src/@NAME@/BottomSource.asm
|
||||
;
|
||||
; (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
; Released under the GNU GPLv2. See file COPYING or
|
||||
; Released under the GNU GPLv3. See file COPYING or
|
||||
; http://www.gnu.org/copyleft/gpl.html for details.
|
||||
;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/000_TopSource.c
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/000_TopHeader.h
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/TopSource.cpp
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/999_BottomHeader.h
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# @P@/src/@NAME@/soversion
|
||||
#
|
||||
# (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
# Released under the GNU GPLv2. See file COPYING or
|
||||
# Released under the GNU GPLv3. See file COPYING or
|
||||
# http://www.gnu.org/copyleft/gpl.html for details.
|
||||
#
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/000_TopHeader.h
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/000_TopSource.c
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/999_BottomHeader.h
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# @P@/src/@NAME@/soversion
|
||||
#
|
||||
# (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
# Released under the GNU GPLv2. See file COPYING or
|
||||
# Released under the GNU GPLv3. See file COPYING or
|
||||
# http://www.gnu.org/copyleft/gpl.html for details.
|
||||
#
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# @P@/src/@NAME@/Makefile
|
||||
#
|
||||
# (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
# Released under the GNU GPLv2. See file COPYING or
|
||||
# Released under the GNU GPLv3. See file COPYING or
|
||||
# http://www.gnu.org/copyleft/gpl.html for details.
|
||||
#
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/000_TopSource.c
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/???.cpp
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* @P@/src/@NAME@/???.c
|
||||
*
|
||||
* (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||
* Released under the GNU GPLv2. See file COPYING or
|
||||
* Released under the GNU GPLv3. See file COPYING or
|
||||
* http://www.gnu.org/copyleft/gpl.html for details.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
#!/bin/sh
|
||||
# lw-build-system/scripts/config-printflags.sh
|
||||
#
|
||||
# (c)2007, Laurence Withers <l@lwithers.me.uk>.
|
||||
# Released under the GNU GPLv3. See file COPYING or
|
||||
# http://www.gnu.org/copyleft/gpl.html for details.
|
||||
#
|
||||
# Script to print the flag lines for `config', given a library name.
|
||||
#
|
||||
|
||||
|
||||
for pkg in $@
|
||||
do
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# lw-build-system/scripts/module-create.sh
|
||||
#
|
||||
# (c)2006, Laurence Withers, <l@lwithers.me.uk>.
|
||||
# Released under the GNU GPLv2. See file COPYING or
|
||||
# Released under the GNU GPLv3. See file COPYING or
|
||||
# http://www.gnu.org/copyleft/gpl.html for details.
|
||||
#
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# lw-build-system/scripts/release.sh
|
||||
#
|
||||
# (c)2006, Laurence Withers, <l@lwithers.me.uk>.
|
||||
# Released under the GNU GPLv2. See file COPYING or
|
||||
# Released under the GNU GPLv3. See file COPYING or
|
||||
# http://www.gnu.org/copyleft/gpl.html for details.
|
||||
#
|
||||
|
||||
|
|
|
|||
|
|
@ -1,115 +1,126 @@
|
|||
#!/bin/sh
|
||||
# lw-build-system/scripts/version.sh
|
||||
#
|
||||
# (c)2007, Laurence Withers <l@lwithers.me.uk>.
|
||||
# Released under the GNU GPLv3. See file COPYING or
|
||||
# http://www.gnu.org/copyleft/gpl.html for details.
|
||||
#
|
||||
# Script to automate bumping of version or soversion files, and pushing
|
||||
# changes (and tags) to the origin repository.
|
||||
#
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
echo "Usage: $0 COMMANDS"
|
||||
echo ""
|
||||
echo " major - bump major version, reset minor and micro"
|
||||
echo " minor - bump minor version, reset micro"
|
||||
echo " micro - bump micro version"
|
||||
echo " libmajor LIB - as major but for soversion"
|
||||
echo " libmicro LIB - as micro but for soversion"
|
||||
echo " tag - tag version"
|
||||
echo " push - do a git-push with --tags"
|
||||
echo "Usage: $0 COMMANDS"
|
||||
echo ""
|
||||
echo " major - bump major version, reset minor and micro"
|
||||
echo " minor - bump minor version, reset micro"
|
||||
echo " micro - bump micro version"
|
||||
echo " libmajor LIB - as major but for soversion"
|
||||
echo " libmicro LIB - as micro but for soversion"
|
||||
echo " tag - tag version"
|
||||
echo " push - do a git-push with --tags"
|
||||
|
||||
exit 1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
edit_versions() {
|
||||
file="$1"
|
||||
shift
|
||||
file="$1"
|
||||
shift
|
||||
|
||||
SEDCMD=""
|
||||
while [ $# -ne 0 ]
|
||||
do
|
||||
var="$1"
|
||||
shift
|
||||
value="$1"
|
||||
shift
|
||||
SEDCMD=""
|
||||
while [ $# -ne 0 ]
|
||||
do
|
||||
var="$1"
|
||||
shift
|
||||
value="$1"
|
||||
shift
|
||||
|
||||
SEDCMD="${SEDCMD} -e s,^${var}=.*$,${var}=${value},"
|
||||
done
|
||||
sed ${SEDCMD} -i "${file}"
|
||||
git-commit -m "Bump version" "${file}"
|
||||
SEDCMD="${SEDCMD} -e s,^${var}=.*$,${var}=${value},"
|
||||
done
|
||||
sed ${SEDCMD} -i "${file}"
|
||||
git-commit -m "Bump version" "${file}"
|
||||
}
|
||||
|
||||
bump_major() {
|
||||
source version
|
||||
edit_versions "version" "VERMAJOR" "$[${VERMAJOR} + 1]" "VERMINOR" "0" "VERMICRO" "0"
|
||||
source version
|
||||
edit_versions "version" "VERMAJOR" "$[${VERMAJOR} + 1]" "VERMINOR" "0" "VERMICRO" "0"
|
||||
}
|
||||
|
||||
bump_minor() {
|
||||
source version
|
||||
edit_versions "version" "VERMINOR" "$[${VERMINOR} + 1]" "VERMICRO" "0"
|
||||
source version
|
||||
edit_versions "version" "VERMINOR" "$[${VERMINOR} + 1]" "VERMICRO" "0"
|
||||
}
|
||||
|
||||
bump_micro() {
|
||||
source version
|
||||
edit_versions "version" "VERMICRO" "$[${VERMICRO} + 1]"
|
||||
source version
|
||||
edit_versions "version" "VERMICRO" "$[${VERMICRO} + 1]"
|
||||
}
|
||||
|
||||
bump_somajor() {
|
||||
source src/$1/soversion
|
||||
edit_versions "src/$1/soversion" "SOMAJOR" "$[${SOMAJOR} + 1]" "SOMINOR" "0" "SOMICRO" "0"
|
||||
source src/$1/soversion
|
||||
edit_versions "src/$1/soversion" "SOMAJOR" "$[${SOMAJOR} + 1]" "SOMINOR" "0" "SOMICRO" "0"
|
||||
}
|
||||
|
||||
bump_somicro() {
|
||||
source src/$1/soversion
|
||||
edit_versions "src/$1/soversion" "SOMICRO" "$[${SOMICRO} + 1]"
|
||||
source src/$1/soversion
|
||||
edit_versions "src/$1/soversion" "SOMICRO" "$[${SOMICRO} + 1]"
|
||||
}
|
||||
|
||||
do_tag() {
|
||||
source version
|
||||
git-tag "${VERMAJOR}.${VERMINOR}.${VERMICRO}"
|
||||
source version
|
||||
git-tag "${VERMAJOR}.${VERMINOR}.${VERMICRO}"
|
||||
}
|
||||
|
||||
do_push() {
|
||||
git-push
|
||||
git-push --tags
|
||||
git-push
|
||||
git-push --tags
|
||||
}
|
||||
|
||||
set -ex
|
||||
|
||||
while [ $# -ne 0 ]
|
||||
do
|
||||
case $1 in
|
||||
major)
|
||||
bump_major
|
||||
;;
|
||||
case $1 in
|
||||
major)
|
||||
bump_major
|
||||
;;
|
||||
|
||||
minor)
|
||||
bump_minor
|
||||
;;
|
||||
minor)
|
||||
bump_minor
|
||||
;;
|
||||
|
||||
micro)
|
||||
bump_micro
|
||||
;;
|
||||
micro)
|
||||
bump_micro
|
||||
;;
|
||||
|
||||
libmajor)
|
||||
bump_somajor $2
|
||||
shift
|
||||
;;
|
||||
libmajor)
|
||||
bump_somajor $2
|
||||
shift
|
||||
;;
|
||||
|
||||
libmicro)
|
||||
bump_somicro $2
|
||||
shift
|
||||
;;
|
||||
libmicro)
|
||||
bump_somicro $2
|
||||
shift
|
||||
;;
|
||||
|
||||
tag)
|
||||
do_tag
|
||||
;;
|
||||
|
||||
push)
|
||||
do_push
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unrecognised command: $1"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
tag)
|
||||
do_tag
|
||||
;;
|
||||
|
||||
push)
|
||||
do_push
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unrecognised command: $1"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
shift
|
||||
shift
|
||||
done
|
||||
|
||||
true
|
||||
|
||||
# vim:ts=4:sw=4:expandtab
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue