aboutsummaryrefslogtreecommitdiff
path: root/subprojects/freeamo/freeamo
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/freeamo/freeamo')
-rwxr-xr-xsubprojects/freeamo/freeamo35
1 files changed, 32 insertions, 3 deletions
diff --git a/subprojects/freeamo/freeamo b/subprojects/freeamo/freeamo
index bd1df0e..2c036e9 100755
--- a/subprojects/freeamo/freeamo
+++ b/subprojects/freeamo/freeamo
@@ -74,6 +74,9 @@ case "$1" in
freeamo_command="$0 --get-licenses $debug_arg :"
echo "$freeamo_command"; $freeamo_command
+ freeamo_command="$0 --get-add-ons $debug_arg :"
+ echo "$freeamo_command"; $freeamo_command
+
if [ ! "$1" == "--normal-mode" ]; then
freeamo_command="$0 --make-directory.fsf.org-wiki $debug_arg :"
@@ -81,7 +84,6 @@ case "$1" in
fi
-
;;
-help)
@@ -100,6 +102,8 @@ f.org-wiki (they are used by Free Software Directory developers)
Downloads the most popular WebExtensions from https://addons.mozilla.org/en-US/firefox/search/...
$0 --get-licenses
The licenses are not added to the general JSON file. This option will download the neccesary license JSON files for all add-ons.
+ $0 --get-add-ons
+ Download the installable add-ons (the .xpi files).
$0 --make-directory.fsf.org-wiki
Generates .wiki files specifically for https://directory.fsf.org/wiki/
@@ -194,12 +198,37 @@ Disabled options due to limited development time
get-licenses--filter
;;
+
+ --get-add-ons)
+
+ freeamo_command="$0 --get-add-ons--download $debug_arg :"
+ echo " ↳$freeamo_command"; $freeamo_command
+
+ freeamo_command="$0 --get-add-ons--filter $debug_arg :"
+ echo " ↳$freeamo_command"; $freeamo_command
+
+ ;;
+
+ --get-add-ons--download)
+
+ mkdir -p "$run_path/build/add-ons"
+ source src/get-add-ons
+ get-add-ons--download
+
+ ;;
+
+ --get-add-ons--filter)
+
+ source src/get-add-ons
+ get-add-ons--filter
+
+ ;;
--make-directory.fsf.org-wiki)
mkdir -p "$run_path/build/wiki";
source src/make-wiki
-
+
;;
-
+
esac