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/terminal | |
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/terminal')
-rw-r--r-- | src/terminal/fqterm_buffer.cpp | 20 | ||||
-rw-r--r-- | src/terminal/fqterm_buffer.h | 20 | ||||
-rw-r--r-- | src/terminal/fqterm_session.cpp | 20 | ||||
-rw-r--r-- | src/terminal/fqterm_session.h | 20 | ||||
-rw-r--r-- | src/terminal/fqterm_text_line.cpp | 20 | ||||
-rw-r--r-- | src/terminal/fqterm_text_line.h | 20 | ||||
-rw-r--r-- | src/terminal/internal/fqterm_decode.cpp | 20 | ||||
-rw-r--r-- | src/terminal/internal/fqterm_decode.h | 20 | ||||
-rw-r--r-- | src/terminal/internal/fqterm_telnet.cpp | 20 | ||||
-rw-r--r-- | src/terminal/internal/fqterm_telnet.h | 20 | ||||
-rw-r--r-- | src/terminal/internal/fqterm_zmodem.cpp | 20 | ||||
-rw-r--r-- | src/terminal/internal/fqterm_zmodem.h | 20 |
12 files changed, 12 insertions, 228 deletions
diff --git a/src/terminal/fqterm_buffer.cpp b/src/terminal/fqterm_buffer.cpp index 1a79f61..eda2180 100644 --- a/src/terminal/fqterm_buffer.cpp +++ b/src/terminal/fqterm_buffer.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 <algorithm> #include <map> diff --git a/src/terminal/fqterm_buffer.h b/src/terminal/fqterm_buffer.h index 6cd9e1a..e316032 100644 --- a/src/terminal/fqterm_buffer.h +++ b/src/terminal/fqterm_buffer.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_BUFFER_H #define FQTERM_BUFFER_H diff --git a/src/terminal/fqterm_session.cpp b/src/terminal/fqterm_session.cpp index bf39a7a..e54c4f7 100644 --- a/src/terminal/fqterm_session.cpp +++ b/src/terminal/fqterm_session.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 "common.h" diff --git a/src/terminal/fqterm_session.h b/src/terminal/fqterm_session.h index 03e1b22..25af7b5 100644 --- a/src/terminal/fqterm_session.h +++ b/src/terminal/fqterm_session.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_SESSION_H #define FQTERM_SESSION_H diff --git a/src/terminal/fqterm_text_line.cpp b/src/terminal/fqterm_text_line.cpp index ed6d164..7add65a 100644 --- a/src/terminal/fqterm_text_line.cpp +++ b/src/terminal/fqterm_text_line.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 <stdio.h> #include <QRegExp> diff --git a/src/terminal/fqterm_text_line.h b/src/terminal/fqterm_text_line.h index cb47d4d..07c3d62 100644 --- a/src/terminal/fqterm_text_line.h +++ b/src/terminal/fqterm_text_line.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_TEXTLINE_H #define FQTERM_TEXTLINE_H diff --git a/src/terminal/internal/fqterm_decode.cpp b/src/terminal/internal/fqterm_decode.cpp index e88be45..707204f 100644 --- a/src/terminal/internal/fqterm_decode.cpp +++ b/src/terminal/internal/fqterm_decode.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 <QByteArray> diff --git a/src/terminal/internal/fqterm_decode.h b/src/terminal/internal/fqterm_decode.h index 86fe942..0880668 100644 --- a/src/terminal/internal/fqterm_decode.h +++ b/src/terminal/internal/fqterm_decode.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_DECODE_H #define FQTERM_DECODE_H diff --git a/src/terminal/internal/fqterm_telnet.cpp b/src/terminal/internal/fqterm_telnet.cpp index 179082c..ee1c0dc 100644 --- a/src/terminal/internal/fqterm_telnet.cpp +++ b/src/terminal/internal/fqterm_telnet.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 <stdio.h> #include <stdlib.h> diff --git a/src/terminal/internal/fqterm_telnet.h b/src/terminal/internal/fqterm_telnet.h index 5f6447c..74ea15e 100644 --- a/src/terminal/internal/fqterm_telnet.h +++ b/src/terminal/internal/fqterm_telnet.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_TELNET_H #define FQTERM_TELNET_H diff --git a/src/terminal/internal/fqterm_zmodem.cpp b/src/terminal/internal/fqterm_zmodem.cpp index f67cd4b..35a46b6 100644 --- a/src/terminal/internal/fqterm_zmodem.cpp +++ b/src/terminal/internal/fqterm_zmodem.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 <QApplication> #include <QString> diff --git a/src/terminal/internal/fqterm_zmodem.h b/src/terminal/internal/fqterm_zmodem.h index 9d166c9..455e622 100644 --- a/src/terminal/internal/fqterm_zmodem.h +++ b/src/terminal/internal/fqterm_zmodem.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_ZMODEM_H #define FQTERM_ZMODEM_H |