rubinius/rubinius — Issue #1385: Rubinius Trunk - binaries in gem bin folder in clean install not marked executable
Author: cwgem
Created: 2011-10-28 22:36:12+00:00
State: open

## Rubinius Version

```
SOLAR:rubinius chriswhite$ rbx -v
rubinius 2.0.0dev (1.9.2 30fc3d17 yyyy-mm-dd JI) [x86_64-apple-darwin10.8.0]
```

## Issue

During a clean installation of Rubinius trunk, files in the gems bin directory are not marked as executable:

```
SOLAR:rubinius chriswhite$ ls -lah /Users/chriswhite/Ruby/rubinius/gems/bin/
total 24
drwxr-xr-x 5 chriswhite staff 170B Oct 28 15:27 .
drwxr-xr-x 4 chriswhite staff 136B Oct 28 15:27 ..
-rw-r--r-- 1 chriswhite staff 378B Oct 28 15:27 rake
-rw-r--r-- 1 chriswhite staff 418B Oct 28 15:27 rdoc
-rw-r--r-- 1 chriswhite staff 416B Oct 28 15:27 ri
```

The interpreter line is also hard coded:

```
#!/Users/evan/git/rbx/bin/rbx
#
# This file was generated by RubyGems.
#
# The application 'rake' is installed as part of a gem, and
# this file is here to facilitate running it.
```

I'd recommend maybe making this a placeholder value instead and doing a replacement to write in the configured install prefix + binary path instead.