From 4db097df535402d7e7de93022f42f69e4f7a3663 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 17 Jul 2018 16:04:35 +0200 Subject: Renamed the AMO/FSD project to FreeAMO, and rewrote its architecture. --- .../sync-data/Text_templates/issue__intro.txt~ | 12 - .../Text_templates/issue__license_copy.txt~ | 8 - .../sync-data/Text_templates/issue_intro.txt~ | 99 ------- .../sync-data/Text_templates/outro.txt~ | 99 ------- .../unmaintained/sync-data/Text_templates/request~ | 314 --------------------- .../src/unmaintained/sync-data/fsd-amo-bot~ | 306 -------------------- 6 files changed, 838 deletions(-) delete mode 100644 subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue__intro.txt~ delete mode 100644 subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue__license_copy.txt~ delete mode 100644 subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue_intro.txt~ delete mode 100644 subprojects/freeamo/src/unmaintained/sync-data/Text_templates/outro.txt~ delete mode 100755 subprojects/freeamo/src/unmaintained/sync-data/Text_templates/request~ delete mode 100755 subprojects/freeamo/src/unmaintained/sync-data/fsd-amo-bot~ (limited to 'subprojects/freeamo/src/unmaintained/sync-data') diff --git a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue__intro.txt~ b/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue__intro.txt~ deleted file mode 100644 index 4b526c9..0000000 --- a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue__intro.txt~ +++ /dev/null @@ -1,12 +0,0 @@ -I'm working as a volunteer for the Free Software Directory as an administrator. Your program -is free software so in principle it should be listed there, and I'd like to -add it. But it has some problems in showing what its license is. -Would you please fix them, for the sake of users and other developers? - -Once your version with fixed license issues is public available on addons.mozilla.org_ENTRY we will review it, and if it meet our requirement I will approve http://directory.fsf.org/wiki/FSD_FULL_SOFTWARE_NAME. Once approved it will be listed on the official GNU IceCat add-on list at https://directory.fsf.org/wiki/IceCat. GNU IceCat is the GNU variant of Firefox. - -See https://addons.mozilla.org/en-US/firefox/addon/librejs/ if you want to study a well licensed add-on. - -# Issues - - diff --git a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue__license_copy.txt~ b/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue__license_copy.txt~ deleted file mode 100644 index 5419295..0000000 --- a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue__license_copy.txt~ +++ /dev/null @@ -1,8 +0,0 @@ -## No full copy of the license file included - -There are no full copy of the license file - -The root directory don't have a COPYING file with a copy of the software license. A plain text version of LICENSE LICENSE_VERSION -can be found here: LICENSE_LINK - - diff --git a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue_intro.txt~ b/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue_intro.txt~ deleted file mode 100644 index 123d39e..0000000 --- a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/issue_intro.txt~ +++ /dev/null @@ -1,99 +0,0 @@ -I'm working as a volunteer for the Free Software Directory. Your program -is free software so in principle it should be listed there, and I'd like to -add it. But it has some problems in showing what its license is. -Would you please fix them, for the sake of users and other developers? - -Once your version with fixed license issues is public available on addons.mozilla.org_ENTRY we will review it, and if it meet our requirement I will approve http://directory.fsf.org/wiki/FSD_FULL_SOFTWARE_NAME. Once approved it will be listed on the official GNU IceCat add-on list at https://directory.fsf.org/wiki/IceCat. GNU IceCat is the GNU variant of Firefox. - -See https://addons.mozilla.org/en-US/firefox/addon/librejs/ if you want to study a well licensed add-on. - -# Issues - -## License not displayed -addons.mozilla.org_ENTRY do not list "Released under". - -## No full copy of the license file included - -There are no full copy of the license file - -The root directory don't have a COPYING file with a copy of the software license. A plain text version of LICENSE LICENSE_VERSION -can be found here: LICENSE_LINK - -## Lack of full license headers in each file - -There are no (full) license notices in the non-trivial source files - -The source files in FULL_SOFTWARE_NAME don't have notices saying you are the copyright -holder and/or that they are released under LICENSE LICENSE_VERSION. -I'm writing to ask you to please put a notice on each nontrivial source file. - -Selecting a license on a website that hosts the add-on (like addons.mozilla.org), will only show it there, the source files won't be modified. - -First, here's why license notices are needed. - -The purpose of a license notice is to state formally that a certain -file may be used under the terms of a particular license. - -The LICENSE, like most free software licenses, applies to whatever -material is released under that license. It does not say anything -about which programs are released that way. - -Therefore, simply including a copy of the LICENSE with some code -does not release the code under the terms of the LICENSE. -To do that, you need a license notice, which says, more or less, -"We the copyright holders release this code under the LICENSE." - -The source files should be accompanied by a copyright notice, which says who -"we" copyright holders are. That takes the form "Copyright YEAR NAME". - -For the LICENSE, there are two other reasons for a license notice: to say -which version of the LICENSE applies, and (for LICENSE LICENSE_VERSION), to say whether the -LICENSE's option of GPL compatibility applies. It is enabled by default -in LICENSE LICENSE_VERSION, but users should have an explicit statement of where things -stand for any particular code. The license notice is where you -specify this. - -Why should the license notice be on _each_ source file? -Because doing it at the package level is error-prone. - -In the free software community, it is not unusual to copy a file from -a free program into some other context. If the source file doesn't -have its own license notice, then its licensing comes from the -original context. In the other context, its licensing may not be -clear. It may not be stated at all, or it could be stated wrong. For -instance, what if the other program says, "This program is released -under Apache 2.0", or "This program is released under GNU GPL, version -3 or any later version published by the Free Software Foundation." - -The result would be to misinform users about the file's licensing. - -People sometimes copy part of a file, too. If the file has a license -notice, people know to preserve that notice when copying part of the -file's code. Otherwise, the licensing will probably get lost. - -A different problem can happen if you copy code _into_ FULL_SOFTWARE_NAME from -some other package. Your package-level license notice would say it is -under LICENSE LICENSE_VERSION, but what if it actually carries some other license, -such as Apache 2.0, or GPL Version 3 or later? - -Keeping a license notice in each file is the way to reliably show -users what their rights are. Please don't let uncertainty creep in. - -You've made a decision about the license -- would you please announce -it in a way that won't get forgotten? - -Other people can use your work with bad intentions, even if the mistake were honestly -unintentional. That is why, unfortunately, we have to take lots of time with verifying -the legality of everything. - -See https://www.gnu.org/licenses/gpl-howto.en.html for how to apply license notices. - - -# Licenseutils -* sudo apt-get install licenseutils -* Licenseutils [0.0.8 can edit .js](https://savannah.nongnu.org/bugs/index.php?49441#comment24) files (see [patch](http://git.savannah.gnu.org/cgit/licenseutils.git/commit/?id=0d365160cc0fb6d0ed5eb26cf6e762278867e653)). If you use a earlier version you need to temporary rename your .js files to .cpp (Javascript comments are the same as c++) until JS have been implemented (see [fix](https://savannah.nongnu.org/bugs/?49441)) and then rename them back to .js. -* Run this but with your name/copyright year/license: licensing notice -c 'Yoyodyne,\ Inc.\ 2001' -l gpl -s c -n *.cpp - -# References -These issues are compatible with the policy listed in [Free Software Directory, Requirements](https://directory.fsf.org/wiki?title=Free_Software_Directory:Requirements). - diff --git a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/outro.txt~ b/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/outro.txt~ deleted file mode 100644 index 123d39e..0000000 --- a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/outro.txt~ +++ /dev/null @@ -1,99 +0,0 @@ -I'm working as a volunteer for the Free Software Directory. Your program -is free software so in principle it should be listed there, and I'd like to -add it. But it has some problems in showing what its license is. -Would you please fix them, for the sake of users and other developers? - -Once your version with fixed license issues is public available on addons.mozilla.org_ENTRY we will review it, and if it meet our requirement I will approve http://directory.fsf.org/wiki/FSD_FULL_SOFTWARE_NAME. Once approved it will be listed on the official GNU IceCat add-on list at https://directory.fsf.org/wiki/IceCat. GNU IceCat is the GNU variant of Firefox. - -See https://addons.mozilla.org/en-US/firefox/addon/librejs/ if you want to study a well licensed add-on. - -# Issues - -## License not displayed -addons.mozilla.org_ENTRY do not list "Released under". - -## No full copy of the license file included - -There are no full copy of the license file - -The root directory don't have a COPYING file with a copy of the software license. A plain text version of LICENSE LICENSE_VERSION -can be found here: LICENSE_LINK - -## Lack of full license headers in each file - -There are no (full) license notices in the non-trivial source files - -The source files in FULL_SOFTWARE_NAME don't have notices saying you are the copyright -holder and/or that they are released under LICENSE LICENSE_VERSION. -I'm writing to ask you to please put a notice on each nontrivial source file. - -Selecting a license on a website that hosts the add-on (like addons.mozilla.org), will only show it there, the source files won't be modified. - -First, here's why license notices are needed. - -The purpose of a license notice is to state formally that a certain -file may be used under the terms of a particular license. - -The LICENSE, like most free software licenses, applies to whatever -material is released under that license. It does not say anything -about which programs are released that way. - -Therefore, simply including a copy of the LICENSE with some code -does not release the code under the terms of the LICENSE. -To do that, you need a license notice, which says, more or less, -"We the copyright holders release this code under the LICENSE." - -The source files should be accompanied by a copyright notice, which says who -"we" copyright holders are. That takes the form "Copyright YEAR NAME". - -For the LICENSE, there are two other reasons for a license notice: to say -which version of the LICENSE applies, and (for LICENSE LICENSE_VERSION), to say whether the -LICENSE's option of GPL compatibility applies. It is enabled by default -in LICENSE LICENSE_VERSION, but users should have an explicit statement of where things -stand for any particular code. The license notice is where you -specify this. - -Why should the license notice be on _each_ source file? -Because doing it at the package level is error-prone. - -In the free software community, it is not unusual to copy a file from -a free program into some other context. If the source file doesn't -have its own license notice, then its licensing comes from the -original context. In the other context, its licensing may not be -clear. It may not be stated at all, or it could be stated wrong. For -instance, what if the other program says, "This program is released -under Apache 2.0", or "This program is released under GNU GPL, version -3 or any later version published by the Free Software Foundation." - -The result would be to misinform users about the file's licensing. - -People sometimes copy part of a file, too. If the file has a license -notice, people know to preserve that notice when copying part of the -file's code. Otherwise, the licensing will probably get lost. - -A different problem can happen if you copy code _into_ FULL_SOFTWARE_NAME from -some other package. Your package-level license notice would say it is -under LICENSE LICENSE_VERSION, but what if it actually carries some other license, -such as Apache 2.0, or GPL Version 3 or later? - -Keeping a license notice in each file is the way to reliably show -users what their rights are. Please don't let uncertainty creep in. - -You've made a decision about the license -- would you please announce -it in a way that won't get forgotten? - -Other people can use your work with bad intentions, even if the mistake were honestly -unintentional. That is why, unfortunately, we have to take lots of time with verifying -the legality of everything. - -See https://www.gnu.org/licenses/gpl-howto.en.html for how to apply license notices. - - -# Licenseutils -* sudo apt-get install licenseutils -* Licenseutils [0.0.8 can edit .js](https://savannah.nongnu.org/bugs/index.php?49441#comment24) files (see [patch](http://git.savannah.gnu.org/cgit/licenseutils.git/commit/?id=0d365160cc0fb6d0ed5eb26cf6e762278867e653)). If you use a earlier version you need to temporary rename your .js files to .cpp (Javascript comments are the same as c++) until JS have been implemented (see [fix](https://savannah.nongnu.org/bugs/?49441)) and then rename them back to .js. -* Run this but with your name/copyright year/license: licensing notice -c 'Yoyodyne,\ Inc.\ 2001' -l gpl -s c -n *.cpp - -# References -These issues are compatible with the policy listed in [Free Software Directory, Requirements](https://directory.fsf.org/wiki?title=Free_Software_Directory:Requirements). - diff --git a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/request~ b/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/request~ deleted file mode 100755 index 76dbaa4..0000000 --- a/subprojects/freeamo/src/unmaintained/sync-data/Text_templates/request~ +++ /dev/null @@ -1,314 +0,0 @@ -#!/bin/bash - -function request() { - - if [ "$sent_to" != "" ]; then - - echo " -{{Checkme item -|Package=$FULL_SOFTWARE_NAME -|Package note=$sent_to -}}"; - - else - - - echo "########################################################################################## -$FULL_SOFTWARE_NAME -"; - - - cat issue__intro.txt > output.txt - - if [ "$issue__license_copy" = "Yes" ]; then - - cat issue__license_copy.txt >> output.txt - - fi - - if [ "$issue__license_not_displayed_on_AMO" = "Yes" ]; then - - cat issue__license_not_displayed_on_AMO.txt >> output.txt - - fi - - - if [ "$issue__lack_of_full_license_headers_in_each_file" = "Yes" ]; then - - cat issue__lack_of_full_license_headers_in_each_file.txt >> output.txt - - fi - - - sed -i " -s|FSD_FULL_SOFTWARE_NAME|$FSD_FULL_SOFTWARE_NAME| -s|FULL_SOFTWARE_NAME|$FULL_SOFTWARE_NAME| -s|addons.mozilla.org_ENTRY|$addons_mozilla_org_ENTRY| -s|LICENSE_VERSION|$LICENSE_VERSION| -s|LICENSE_LINK|$LICENSE_LINK| -s|LICENSE|$LICENSE| -" output.txt - - cat outro.txt >> output.txt - cat output.txt - - fi - -} - - - - - -#TEMPLATE -FULL_SOFTWARE_NAME=""; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY=""; -LICENSE=""; -LICENSE_VERSION=""; -LICENSE_LINK=""; -issue__license_not_displayed_on_AMO=""; -issue__license_copy=""; -issue__lack_of_full_license_headers_in_each_file=""; -sent_to=""; - - -FULL_SOFTWARE_NAME="Bookmarks Manager and Viewer"; -FSD_FULL_SOFTWARE_NAME="Bookmarks_Manager_and_Viewer"; -addons_mozilla_org_ENTRY="bookmarks-manager-and-viewer/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://github.com/inbasic/bookmarks-manager/issues/6"; -request - -FULL_SOFTWARE_NAME="Cookie AutoDelete"; -FSD_FULL_SOFTWARE_NAME="Cookie_AutoDelete"; -addons_mozilla_org_ENTRY="cookie-autodelete/"; -LICENSE="MIT/X11"; -LICENSE_VERSION=""; -LICENSE_LINK="http://www.opensource.org/licenses/mit-license.php"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="No"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://github.com/mrdokenny/Cookie-AutoDelete/issues/129"; -request - -FULL_SOFTWARE_NAME="Ageless for YouTube"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/ageless/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/ageless/reviews/914361/"; -request - -FULL_SOFTWARE_NAME="Bloody Vikings!"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/bloody-vikings/"; -LICENSE="GPL"; -LICENSE_VERSION="3.0"; -LICENSE_LINK="https://www.gnu.org/licenses/gpl-3.0.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="No"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/bloody-vikings/reviews/914363/, florian+amo@florianfieber.de"; -request - -FULL_SOFTWARE_NAME="Bulk Media Downloader"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/bulk-media-downloader/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://github.com/inbasic/bulk-media-downloader/issues/12"; -request - -FULL_SOFTWARE_NAME="DynamicHistory"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/dynamichistory/"; -LICENSE="MIT/X11"; -LICENSE_VERSION=""; -LICENSE_LINK="http://www.opensource.org/licenses/mit-license.php"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="No"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/dynamichistory/reviews/914375/, me@nulldev.xyz"; -request - -FULL_SOFTWARE_NAME="Easy Youtube Video Downloader Express"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/easy-youtube-video-download/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/easy-youtube-video-download/reviews/914406/"; -request - -FULL_SOFTWARE_NAME="Flash Block (Plus)"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/noflash/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/noflash/reviews/914401/, arl1232smg@yahoo.com"; -request - -FULL_SOFTWARE_NAME="Forecastfox (fix version)"; -FSD_FULL_SOFTWARE_NAME="Forecastfox_(fix_version)"; -addons_mozilla_org_ENTRY="forecastfox-fix-version/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/forecastfox-fix-version/reviews/913786/, senselius@gmail.com"; -request - -FULL_SOFTWARE_NAME="Mute all inactive tabs"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/mute-all-inactive-tabs/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://github.com/evilpie/mute-all-inactive-tabs/issues/1"; -request - -FULL_SOFTWARE_NAME="Org Capture"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/org-capture/"; -LICENSE="MIT/X11"; -LICENSE_VERSION=""; -LICENSE_LINK="http://www.opensource.org/licenses/mit-license.php"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="No"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://github.com/sprig/org-capture-extension/issues/34"; -request - -FULL_SOFTWARE_NAME="Popup Blocker (strict)"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/popup-blocker/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://github.com/schomery/popup-blocker/issues/55"; -request - -FULL_SOFTWARE_NAME="Session Manager"; -FSD_FULL_SOFTWARE_NAME="Session_Manager"; -addons_mozilla_org_ENTRY="session-manager/"; -LICENSE="MPL"; -LICENSE_VERSION="1.1"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/1.1/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/yass-we/reviews/913742/, morac99-firefox2@yahoo.com"; -request - -FULL_SOFTWARE_NAME="Simple Form Fill"; -FSD_FULL_SOFTWARE_NAME="Simple_Form_Fill"; -addons_mozilla_org_ENTRY="simple-form-fill/"; -LICENSE="MIT/X11"; -LICENSE_VERSION=""; -LICENSE_LINK="http://opensource.org/licenses/MIT"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://github.com/sblask/webextension-simple-form-fill/issues/14"; -request - -FULL_SOFTWARE_NAME="Sky Timer"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/sky-timer/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/sky-timer/reviews/914414/, easyappdeveloper1@gmail.com"; -request - -FULL_SOFTWARE_NAME="To Google Translate"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/to-google-translate/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="No"; -sent_to="https://github.com/itseco/to-google-translate/issues/7"; -request - -FULL_SOFTWARE_NAME="Wayback Machine"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY=""; -LICENSE="GPL"; -LICENSE_VERSION="3.0"; -LICENSE_LINK="https://www.gnu.org/licenses/gpl-3.0.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="No"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/wayback-machine_new/reviews/914416/, info@archive.org"; -request - -FULL_SOFTWARE_NAME="WebRTC Control"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/webrtc-control/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/webrtc-control/reviews/914382/, dlinBernard@yahoo.com"; -request - -FULL_SOFTWARE_NAME="Yet Another Smooth Scrolling WE"; -FSD_FULL_SOFTWARE_NAME="Simple_Form_Fill"; -addons_mozilla_org_ENTRY="simple-form-fill/"; -LICENSE="BSD License"; -LICENSE_VERSION="(2-Clause)"; -LICENSE_LINK="http://www.opensource.org/licenses/bsd-license.php"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://addons.mozilla.org/en-US/firefox/addon/yass-we/reviews/913742/, kataho.mail@gmail.com"; -request - -FULL_SOFTWARE_NAME="YouTube in HD (720p, 1080p, 1440p, 2160p)"; -FSD_FULL_SOFTWARE_NAME=$(echo "$FULL_SOFTWARE_NAME" | sed -e "s| |_|g"); -addons_mozilla_org_ENTRY="https://addons.mozilla.org/en-US/firefox/addon/youtube-hd-1/"; -LICENSE="MPL"; -LICENSE_VERSION="2.0"; -LICENSE_LINK="https://www.mozilla.org/media/MPL/2.0/index.txt"; -issue__license_not_displayed_on_AMO="No"; -issue__license_copy="Yes"; -issue__lack_of_full_license_headers_in_each_file="Yes"; -sent_to="https://github.com/james-fray/YouTube-HD/issues/6"; -request diff --git a/subprojects/freeamo/src/unmaintained/sync-data/fsd-amo-bot~ b/subprojects/freeamo/src/unmaintained/sync-data/fsd-amo-bot~ deleted file mode 100755 index 8f1d6f3..0000000 --- a/subprojects/freeamo/src/unmaintained/sync-data/fsd-amo-bot~ +++ /dev/null @@ -1,306 +0,0 @@ -#!/bin/bash - -# Copyright 2016, 2017 David Hedlund -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# https://addons-server.readthedocs.io/en/latest/topics/api/addons.html -# Add to wiki and remove: echo "|Name=$(xmlstarlet sel -t -v "addon/name" test.xml)" - -SCRIPTSRC=$(readlink -f "$0" || echo "$0") -RUN_PATH=$(dirname "${SCRIPTSRC}" || echo .) - -if [ ! -f /usr/bin/jq ]; then echo "/usr/bin/jq not found!"; exit=true; fi -if [ ! -f /usr/bin/wget ]; then echo "/usr/bin/wget not found!"; exit=true; fi - -if [[ $exit == true ]]; then exit 1; fi - - -if [ ! -d "build" ]; then mkdir -p build; fi - -retrive () { -api="$(echo $url | sed "s|https://addons.mozilla.org/en-US/firefox/addon/|https://addons.mozilla.org/api/v3/addons/addon/|g;")"; -slug="$(echo $url | sed "s|https://addons.mozilla.org/en-US/firefox/addon/||g; s|/||g")"; -} - -xpi () { - cd build/ - echo "$download" > tmp.txt - sed -i "s|/addon-|\naddon-|" tmp.txt - xpi=$(grep ".xpi" tmp.txt); - fbname=$(basename "$xpi" | cut -d. -f1); -} - - -case "$1" in - --get-json) - - if [ ! -d "build/amo/json" ]; then mkdir -p build/amo/json; fi - if [ ! -d "build/amo/json.versions" ]; then mkdir -p build/amo/json.versions; fi - cd build/amo/ - - while read url; do - - retrive - wget $api -O json/$slug.json - wget $api\versions/$(cat json/$slug.json | jq '.current_version.id')/ -O json.versions/$slug.json - - done < ../../amo-repo.txt - - # List obsoleted projects - find json/ -size 0 -print - - ;; - --get-xpi-url) - - cd build/ - rm -f amo_repo-latest_download.txt - for i in $(find amo/json/ -maxdepth 1 -type f); do echo "https://addons.mozilla.org/firefox/downloads/latest/$(basename $i | sed "s|.json||")/addon-$(cat $i | jq '.current_version.id').xpi" >> amo_repo-latest_download.txt; done - - ;; - - --get-xpi) - - if [ ! -d "build/amo/xpi" ]; then mkdir -p build/amo/xpi; fi - - while read download; do - - xpi - - if [ ! -f amo/xpi/$xpi ]; then - - cd amo/xpi/ - wget $download - cd .. - - fi - - cd .. - - - done < build/amo_repo-latest_download.txt - - ;; - - --xpi-extract) - - if [ ! -d "build/amo/xpi.extracted" ]; then mkdir -p build/amo/xpi.extracted; fi - - while read download; do - - xpi - - if [ ! -d amo/xpi.extracted/$fbname ]; then - - mkdir -p amo/xpi.extracted/$fbname - cd amo/xpi.extracted/$fbname - unzip ../../xpi/$xpi - cd ../../ - - fi - - cd .. - - done < build/amo_repo-latest_download.txt - - ;; - - --make-xml) - - if [ ! -d "build/fsd" ]; then mkdir -p build/fsd; fi - - # Get number of edits: - wget "https://directory.fsf.org/w/api.php?action=query&list=recentchanges&rclimit=1" -O fsdedits.xml - oldrevid="$(grep revid fsdedits.xml | sed "s|"||g; s|revid|\nrevid|; s|old_revid|\n|" | grep revid | sed "s|revid=||")" - newrevid=$(expr 1 + $oldrevid) - - cd build/ - - while read url; do - - retrive - # List JSON structure: cat amo/json/$slug.json | js '.' - # XML value "homepage" is not always set in AMO API, but the FSD require "Homepage URL" to be set: Therfore we use the AMO page itself in Homepage URL to complete the build of the repo automatically. - echo " - - Free Software Directory - https://directory.fsf.org/wiki/Main_Page - MediaWiki 1.20.2 - first-letter - - Media - Special - - Talk - User - User talk - Free Software Directory - Free Software Directory talk - File - File talk - MediaWiki - MediaWiki talk - Template - Template talk - Help - Help talk - Category - Category talk - Property - Property talk - Form - Form talk - Concept - Concept talk - Filter - Filter talk - Review - Review talk - License - License talk - Collection - Collection talk - Org - Org talk - - - - IceCat/$(cat amo/json/$slug.json | sed "s|-||g;" | jq '.name.enUS' | sed "s|^\"||; s|\"$||;") - - $newrevid - $(date -u +%Y-%m-%dT%H:%M:%SZ) - - amo-import - 1501 - - kj1p9nd2p15bqr2tb7jkihshlxow11y - {{Entry" > fsd/$slug.xml - - # Dash have to be removed in jq 1.3: https://github.com/stedolan/jq/issues/341 - echo "|Name=$(cat amo/json/$slug.json | sed "s|-||g;" | jq '.name.enUS' | sed "s|^\"||; s|\"$||;") -|Short description=$(cat amo/json/$slug.json | sed "s|-||g;" | jq '.summary.enUS' | sed "s|^\"||; s|\"$||; s|\\\n|\n|g; s|\\\\\"|\"|g;") -|Full description=$(cat amo/json/$slug.json | sed "s|-||g;" | jq '.description.enUS' | sed "s|^\"||; s|\"$||; s|\\\n|\n|g; s|\\\\\"|\"|g;") -|Homepage URL=$(cat amo/json/$slug.json | sed "s|-||g;" | jq '.homepage.enUS' | sed "s|^\"||; s|\"$||;")" >> fsd/$slug.xml - - - if [[ "$(cat amo/json/$slug.json | jq '.current_version.compatibility.seamonkey')" != "null" ]]; then - set_seamonkey="SeaMonkey,"; - fi - - if [[ "$(cat amo/json/$slug.json | jq '.current_version.compatibility.firefox')" != "null" ]]; then - set_icecat="IceCat,"; - fi - - if [[ "$(cat amo/json/$slug.json | jq '.current_version.compatibility.android')" != "null" ]]; then - set_icecatmobile="IceCatMobile,"; - fi - - if [[ "$(cat amo/json/$slug.json | jq '.current_version.compatibility.mobile')" != "null" ]]; then - set_icecatmobile="IceCatMobile,"; - fi - - if [[ "$(cat amo/json/$slug.json | jq '.current_version.compatibility.thunderbird')" != "null" ]]; then - set_thunderbird="Thunderbird,"; - fi - - echo "|Extension of=$(echo "$set_seamonkey$set_icecat$set_icecatmobile$set_thunderbird" | sed "s|,$||;")" >> fsd/$slug.xml - - - if [[ "$(cat amo/json/$slug.json | sed "s|-||g;" | jq '.homepage.enUS' | grep "github.com")" != "null" ]]; then - echo "|VCS checkout command=git clone $(cat amo/json/$slug.json | sed "s|-||g;" | jq '.homepage.enUS' | sed "s|^\"||; s|\"$||;")" >> fsd/$slug.xml - fi - -echo "|VCS checkout command=git clone $(cat amo/json/$slug.json | sed "s|-||g;" | jq '.homepage.enUS' | sed "s|^\"||; s|\"$||;")"; - echo "|Version identifier=$(cat amo/json/$slug.json | jq '.current_version.version' | sed "s|^\"||; s|\"$||;") -|Version date=$(cat amo/json/$slug.json | jq '.last_updated' | sed "s|^\"||; s|\"$||;") -|Version download=https://addons.mozilla.org/firefox/downloads/latest/$slug/addon-$(cat amo/json/$slug.json | jq '.current_version.id')-latest.xpi -|Last review by=FSDbot -|Last review date=$(date +"%Y/%m/%d") -|Submitted by=FSDbot -|Submitted date=2017/02/01 -|Is GNU=No -}}" >> fsd/$slug.xml - - - # https://addons.mozilla.org/api/v3/addons/addon/noscript/versions/1910123/ - echo "{{Project license - -# Stuck here (have to use old API until this have been fixed): https://github.com/mozilla/addons-server/issues/3936 - -|License=$(cat amo/json.versions/$slug.json | sed "s|-||g;" | jq '.license.name.enUS' | sed "s|^\"||; s|\"$||;") -|License copyright=$(cat amo/json/$slug.json | sed "s|-||g;" | jq '.authors[].name' | sed "s|^\"||; s|\"$||;") -}}" >> fsd/$slug.xml - - # Homepage URL can be changed by the community so lets do a backup here - echo "{{Resource -|Resource audience=amo-import -|Resource kind=General -|Resource URL=$url -}}" >> fsd/$slug.xml - - - if [[ "$(cat amo/json/$slug.json | sed "s|-||g;" | jq '.support_url[]' | sed "s|^\"||; s|\"$||;")" != "" ]]; - then - - echo "{{Resource -|Resource audience=Users -|Resource kind=Support -|Resource URL=$(cat amo/json/$slug.json | sed "s|-||g;" | jq '.support_url[]' | sed "s|^\"||; s|\"$||;") -}}" >> fsd/$slug.xml - - fi - - # Add "E-mail" here when "Support E-mail" have been added to the API: https://github.com/mozilla/addons-server/issues/3901 - - - echo "{{Featured}} - - -" >> fsd/$slug.xml - - cat fsd/$slug.xml - - - - done < ../amo-repo.txt - - - ;; - - - --all) - - $0 --get-json - $0 --get-xpi-url - $0 --get-xpi - $0 --xpi-extract - $0 --make-xml - - ;; - - *) - - echo $"$0 [OPTION] - -OPTIONS - --all - --get-json - --get-xpi-url - --get-xpi - --xpi-extract - --make-xml" - exit 1 - -esac - -exit 0 -- cgit v1.2.3