```ruby
#!/usr/bin/env ruby

Dir["target/namespaces/*"].each do |dir|
  if File.directory?(dir) 
    puts "Processing #{dir}..."
    Dir.chdir(dir) do
      if File.exists?("project.clj")
        cmd = "scp pom.xml *.jar clojars@clojars.org:"
        puts "-> #{cmd}"
        %x{#{cmd}}
      else
          puts "-> No project.clj found in #{dir} - skipping"
      end
    end
  end
end



```

Allow providing a path to the namespace jars.
user
```ruby
#!/usr/bin/env ruby

base_dir = ARGV[0] || "./target/namespaces"
puts "looking for namespaces in #{base_dir}..."
Dir["#{base_dir}/*"].each do |dir|
  if File.directory?(dir) 
    puts "Processing #{dir}..."
    Dir.chdir(dir) do
      if File.exists?("project.clj")
        cmd = "scp pom.xml *.jar clojars@clojars.org:"
        puts "-> #{cmd}"
        %x{#{cmd}}
      else
          puts "-> No project.clj found in #{dir} - skipping"
      end
    end
  end
end



```
assistant