diff options
author | Iru Cai <mytbk920423@gmail.com> | 2021-04-24 12:22:47 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2021-04-24 12:22:47 +0800 |
commit | f154b1c9f43c06c080cf7e0ca76d9ca904675cb8 (patch) | |
tree | 8c079622d57c2207861a680c207fd5872ac86f21 /src/utilities | |
parent | 73a0a6e4118c6926029edf8850936719870fd5b3 (diff) | |
download | fqterm-master.tar.xz |
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"
Diffstat (limited to 'src/utilities')
-rw-r--r-- | src/utilities/fqterm_convert.cpp | 20 | ||||
-rw-r--r-- | src/utilities/fqterm_convert.h | 20 | ||||
-rw-r--r-- | src/utilities/fqterm_http.cpp | 20 | ||||
-rw-r--r-- | src/utilities/fqterm_http.h | 20 | ||||
-rw-r--r-- | src/utilities/fqterm_ip_location.cpp | 20 | ||||
-rw-r--r-- | src/utilities/fqterm_ip_location.h | 20 | ||||
-rw-r--r-- | src/utilities/fqwcwidth.h | 20 |
7 files changed, 7 insertions, 133 deletions
diff --git a/src/utilities/fqterm_convert.cpp b/src/utilities/fqterm_convert.cpp index 3ac821d..31325b8 100644 --- a/src/utilities/fqterm_convert.cpp +++ b/src/utilities/fqterm_convert.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 "fqterm_convert.h" diff --git a/src/utilities/fqterm_convert.h b/src/utilities/fqterm_convert.h index d7b226c..9205699 100644 --- a/src/utilities/fqterm_convert.h +++ b/src/utilities/fqterm_convert.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_CONVERT_H #define FQTERM_CONVERT_H diff --git a/src/utilities/fqterm_http.cpp b/src/utilities/fqterm_http.cpp index 7ea61cc..62ae985 100644 --- a/src/utilities/fqterm_http.cpp +++ b/src/utilities/fqterm_http.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 "fqterm.h" #include "fqterm_path.h" diff --git a/src/utilities/fqterm_http.h b/src/utilities/fqterm_http.h index 4c029d9..9d7b4a9 100644 --- a/src/utilities/fqterm_http.h +++ b/src/utilities/fqterm_http.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_HTTP_H #define FQTERM_HTTP_H diff --git a/src/utilities/fqterm_ip_location.cpp b/src/utilities/fqterm_ip_location.cpp index ab1eef3..1ec3f9b 100644 --- a/src/utilities/fqterm_ip_location.cpp +++ b/src/utilities/fqterm_ip_location.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 <QString> #include <QRegExp> diff --git a/src/utilities/fqterm_ip_location.h b/src/utilities/fqterm_ip_location.h index 55de36b..7f6a1c8 100644 --- a/src/utilities/fqterm_ip_location.h +++ b/src/utilities/fqterm_ip_location.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_IPLOCATION_H #define FQTERM_IPLOCATION_H diff --git a/src/utilities/fqwcwidth.h b/src/utilities/fqwcwidth.h index 2ef6a8d..449affc 100644 --- a/src/utilities/fqwcwidth.h +++ b/src/utilities/fqwcwidth.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_FQWCWIDTH_H #define FQTERM_FQWCWIDTH_H |