From f154b1c9f43c06c080cf7e0ca76d9ca904675cb8 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sat, 24 Apr 2021 12:22:47 +0800 Subject: convert license headers to SPDX Use the following script and find tool: grep 'GNU General Public License' "$1" || exit grep 'either version 2 of the License' "$1" || exit sed -n '/\*\*\*\*\*\//,$p' "$1" > /tmp/src.tmp echo '// SPDX-License-Identifier: GPL-2.0-or-later' > /tmp/src.tmp2 sed -n '2,$p' /tmp/src.tmp >> /tmp/src.tmp2 mv /tmp/src.tmp2 "$1" --- src/ui/imageviewer/fqterm_canvas.cpp | 20 +------------------- src/ui/imageviewer/fqterm_canvas.h | 20 +------------------- src/ui/imageviewer/imageviewer.cpp | 20 +------------------- src/ui/imageviewer/imageviewer.h | 21 +-------------------- src/ui/imageviewer/pictureflow.cpp | 21 +-------------------- src/ui/imageviewer/pictureflow.h | 21 +-------------------- 6 files changed, 6 insertions(+), 117 deletions(-) (limited to 'src/ui/imageviewer') diff --git a/src/ui/imageviewer/fqterm_canvas.cpp b/src/ui/imageviewer/fqterm_canvas.cpp index 82fc971..0a967a9 100644 --- a/src/ui/imageviewer/fqterm_canvas.cpp +++ b/src/ui/imageviewer/fqterm_canvas.cpp @@ -1,22 +1,4 @@ -/*************************************************************************** - * fqterm, a terminal emulator for both BBS and *nix. * - * Copyright (C) 2008 fqterm development group. * - * * - * 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 * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * - ***************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later #include #include diff --git a/src/ui/imageviewer/fqterm_canvas.h b/src/ui/imageviewer/fqterm_canvas.h index 5941700..d76e580 100644 --- a/src/ui/imageviewer/fqterm_canvas.h +++ b/src/ui/imageviewer/fqterm_canvas.h @@ -1,22 +1,4 @@ -/*************************************************************************** - * fqterm, a terminal emulator for both BBS and *nix. * - * Copyright (C) 2008 fqterm development group. * - * * - * 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 * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * - ***************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef FQTERM_CANVAS_H #define FQTERM_CANVAS_H diff --git a/src/ui/imageviewer/imageviewer.cpp b/src/ui/imageviewer/imageviewer.cpp index 3292dd6..310ae05 100644 --- a/src/ui/imageviewer/imageviewer.cpp +++ b/src/ui/imageviewer/imageviewer.cpp @@ -1,22 +1,4 @@ -/*************************************************************************** - * fqterm, a terminal emulator for both BBS and *nix. * - * Copyright (C) 2008 fqterm development group. * - * * - * 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 * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * - ***************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later #include #include diff --git a/src/ui/imageviewer/imageviewer.h b/src/ui/imageviewer/imageviewer.h index 1948633..7b03e0f 100644 --- a/src/ui/imageviewer/imageviewer.h +++ b/src/ui/imageviewer/imageviewer.h @@ -1,23 +1,4 @@ - -/*************************************************************************** - * fqterm, a terminal emulator for both BBS and *nix. * - * Copyright (C) 2008 fqterm development group. * - * * - * 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 * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * - ***************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef IMAGE_VIERWER_H #define IMAGE_VIERWER_H diff --git a/src/ui/imageviewer/pictureflow.cpp b/src/ui/imageviewer/pictureflow.cpp index cd749f0..fc6767b 100644 --- a/src/ui/imageviewer/pictureflow.cpp +++ b/src/ui/imageviewer/pictureflow.cpp @@ -1,23 +1,4 @@ - -/*************************************************************************** - * fqterm, a terminal emulator for both BBS and *nix. * - * Copyright (C) 2008 fqterm development group. * - * * - * 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 * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * - ***************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later /* PictureFlow - animated image show widget diff --git a/src/ui/imageviewer/pictureflow.h b/src/ui/imageviewer/pictureflow.h index c9cf5aa..53d755b 100644 --- a/src/ui/imageviewer/pictureflow.h +++ b/src/ui/imageviewer/pictureflow.h @@ -1,23 +1,4 @@ - -/*************************************************************************** - * fqterm, a terminal emulator for both BBS and *nix. * - * Copyright (C) 2008 fqterm development group. * - * * - * 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 * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * - ***************************************************************************/ +// SPDX-License-Identifier: GPL-2.0-or-later /* PictureFlow - animated image show widget -- cgit v1.2.3