From: Fabian Keil Date: Sat, 16 Jul 2016 11:43:14 +0000 (+0000) Subject: create-package-feed.pl: Get input directory and output file from the command line X-Git-Tag: v_3_0_26~56 X-Git-Url: http://www.privoxy.org/gitweb/%40homepage%40?a=commitdiff_plain;h=a1b1345ba24a9fb188e31a3b712bf28752b420be;p=privoxy.git create-package-feed.pl: Get input directory and output file from the command line --- diff --git a/utils/create-package-feed.pl b/utils/create-package-feed.pl index d4acad22..6e875889 100644 --- a/utils/create-package-feed.pl +++ b/utils/create-package-feed.pl @@ -7,9 +7,11 @@ my @months = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); my @days = qw(Sun Mon Tue Wed Thu Fri Sat Sun); #< Config START > -my $scan_dir = '/xxxxxxxxxxxxxxxxxxxxxx/sf-download/'; +my $scan_dir = shift(@ARGV) + or die "Local package directory not specified (first argument)\n"; +my $save_rss_file = shift(@ARGV) + or die "RSS output file path not specified (second argument)\n"; my $base_dlurl = 'https://www.privoxy.org/sf-download-mirror/'; -my $save_rss_file ='/xxxxxxxxxxxxxxxxxxxxxx/release.xml'; # e.g., release.rss my $maxlimit = 1000; my $max_advertised_files = 100;