]> Savannah Git Hosting - gnulib.git/commitdiff
maint: fix ‘make update-copyright’ on symlinks
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Jan 2022 18:24:28 +0000 (10:24 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Jan 2022 18:25:39 +0000 (10:25 -0800)
After running ‘make update-copyright’ I noticed that it
incorrectly replaced a couple of symlinks with their contents.
* Makefile (update-copyright): Do not update symlinks.
* etc/license-notices/GPL, etc/license-notices/LGPL:
Change these back to symlinks.

ChangeLog
Makefile
etc/license-notices/GPL [changed from file to symlink]
etc/license-notices/LGPL [changed from file to symlink]

index e2f467e75b989f14becf51f54f4f57ddef1a11b8..28d95dedec1c7ca3b3203952bfe971d764b3ef37 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-01-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       maint: fix ‘make update-copyright’ on symlinks
+       After running ‘make update-copyright’ I noticed that it
+       incorrectly replaced a couple of symlinks with their contents.
+       * Makefile (update-copyright): Do not update symlinks.
+       * etc/license-notices/GPL, etc/license-notices/LGPL:
+       Change these back to symlinks.
+
 2021-12-31  Bruno Haible  <bruno@clisp.org>
 
        unistdio: Prefer newer version to older, buggy one.
index 913407fa7821d05adb2a91e42221c0993eaf7e4d..85362c8c2c7acfd8045b3e3e1f69ea4298b51f22 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -173,6 +173,9 @@ update-copyright:
            done > $$exempt;                                            \
        git ls-files tests/unictype >> $$exempt;                        \
        git ls-files doc/INSTALL* >> $$exempt;                          \
+       for file in $$(git ls-files); do                                \
+         test ! -h $$file || echo $$file;                              \
+       done >> $$exempt;                                               \
        git ls-files | grep -vFf $$exempt                               \
          | xargs grep -L '^/\*.*GENERATED AUTOMATICALLY'               \
          | UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79                         \
deleted file mode 100644 (file)
index f6b0d6768936a4df23ad76a0622c625b361931c3..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,43 +0,0 @@
-
-   This file 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 3 of the License,
-   or (at your option) any later version.
-
-   This file 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, see <https://www.gnu.org/licenses/>.  */
-
-
-
- * This file 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 3 of the License,
- * or (at your option) any later version.
- *
- * This file 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, see <https://www.gnu.org/licenses/>.
-
-
-
-# This file 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 3 of the License,
-# or (at your option) any later version.
-#
-# This file 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, see <https://www.gnu.org/licenses/>.
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..fbd0cdcabe75ed8bf743c0e897d147ba22257f48
--- /dev/null
@@ -0,0 +1 @@
+GPLv3+
\ No newline at end of file
deleted file mode 100644 (file)
index 5126fcf8190d96b1cf3c8e7fd2793c2b39f6ab16..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,28 +0,0 @@
-
-   This file is free software: you can redistribute it and/or modify
-   it under the terms of the GNU Lesser General Public License as
-   published by the Free Software Foundation; either version 3 of the
-   License, or (at your option) any later version.
-
-   This file 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 Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public License
-   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
-
-
-
- * This file is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 3 of the
- * License, or (at your option) any later version.
- *
- * This file 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..fc68c22a6c74b08c007af1ea89021a5034d6921b
--- /dev/null
@@ -0,0 +1 @@
+LGPLv3+
\ No newline at end of file