mirror of
https://github.com/nix-community/comma.git
synced 2024-08-17 07:50:36 +03:00
12 lines
217 B
Ruby
Executable File
12 lines
217 B
Ruby
Executable File
#!ruby --disable-gems
|
|
|
|
require('fileutils')
|
|
|
|
bin_dir = ARGV.first
|
|
|
|
names = File.read("#{bin_dir}/,").scan(/\\1(,\S+) /).flatten - [',']
|
|
|
|
names.each do |name|
|
|
FileUtils.ln_s("#{bin_dir}/,", "#{bin_dir}/#{name}")
|
|
end
|