/usr/bin/marutex is in ruby-maruku 0.6.0-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31  | #!/usr/bin/env ruby
require 'maruku'
if File.basename($0) =~ /^marutex/
	# Convert each file 
	ARGV.each do |f|
		puts "Opening #{f}"
	
		# read file content
		input =  File.open(f,'r').read
		
		# create Maruku
		doc = Maruku.new(input)
		# convert to a complete html document
		latex = doc.to_latex_document
	
		# write to file
		dir = File.dirname(f)
		job = File.join(dir, File.basename(f, File.extname(f)))
		filename = job + ".tex"
		File.open(filename,'w') do |f| f.puts latex end
		# run twice for cross references
		system "pdflatex '#{job}'  '-output-directory=#{dir}' "
		system "pdflatex '#{job}' '-output-directory=#{dir}' "
		
#		system "open #{job}.pdf"
	end
end
 |