diff --git a/fluent-package/make-index-html.erb b/fluent-package/make-index-html.erb deleted file mode 100644 index d70cc71d9..000000000 --- a/fluent-package/make-index-html.erb +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - Fluent Package - formerly known as Treasure Agent (td-agent) - - -
- -
- -
-
- - - -
-
- Index of <%= options[:site] %>/<%= relative_path %> -
-
-
-
    - <% if relative_path != "/" %> -
  •  Up directory...
  • - <% end %> - <% files.each do |file| %> - <% if File.directory?(file) %> -
  • <%= file %> - <% else %> -
  • <%= file %> - <%= sprintf("%.2f", File.stat(file).size / 1024 / 1024.0) %> MiB - <%= sprintf("%d", File.stat(file).size) %> Bytes - (<%= File.stat(file).mtime.getutc %>) - <% end %> - <% end %> -
-
-
-
- - - diff --git a/fluent-package/make-index-html.rb b/fluent-package/make-index-html.rb deleted file mode 100644 index 7ba8d7788..000000000 --- a/fluent-package/make-index-html.rb +++ /dev/null @@ -1,38 +0,0 @@ -require 'erb' -require 'find' -require 'pathname' -require 'optparse' - -options = { - site: "https://fluentd.cdn.cncf.io", - verbose: false, - channel: "5,lts,test" -} - -opt = OptionParser.new -opt.on("-s", "--site URL", "Specify distribution site (e.g. https://fluentd.cdn.cncf.io)") { |v| options[:site] = v } -opt.on("-v", "--verbose", "Enable verbose logging") { options[:verbose] = true } -opt.on("-c", "--channel TARGET_CHANNEL", "Specify channel with comma separated (e.g. --channel 5,lts)") { |v| options[:channel] = v } -top_dir = opt.parse!(ARGV).first - -unless File.exist?(top_dir) - puts "#{top_dir} not found" - exit 1 -end - -template_path = File.expand_path("#{File.dirname(__FILE__)}/#{File.basename(__FILE__, '.rb')}.erb") -puts "Template path: #{template_path}" -Find.find("#{top_dir}/#{options[:channel]}") do |path| - Find.prune if File.file?(path) - puts "Updating: #{path} ..." if options[:verbose] - index_path = File.expand_path(File.join(path, "index.html")) - Dir.chdir(path) do - files = Dir.glob("*") - relative_path = Pathname.new(path).relative_path_from(top_dir).to_s - erb = ERB.new(File.read(template_path)).result(binding) - File.open(index_path, "w+") do |file| - file.puts(erb) - puts "Generated: #{index_path}" if options[:verbose] - end - end -end diff --git a/fluent-package/make-install-script.erb b/fluent-package/make-install-script.erb deleted file mode 100644 index bee0a35b5..000000000 --- a/fluent-package/make-install-script.erb +++ /dev/null @@ -1,181 +0,0 @@ -<% if install_info[:distribution] == "redhat" %> -echo "==============================" -echo " <%= install_info[:package_name] %> Installation Script " -echo "==============================" -echo "This script requires superuser access to install rpm packages." -echo "You will be prompted for your password by sudo." - -# clear any previous sudo permission -sudo -k - -# run inside sudo -sudo sh <