nicoulaj/broom — Issue #1: not working on OS X Lion
Author: patrickkettner
Created: 2012-01-24 22:53:34+00:00
State: open

The make file does not install properly, returns the following

``` Shell
mkdir -p out
sed "s/^VERSION=*.*/VERSION=1.1.0/" < src/broom.sh > out/broom.sh
mkdir -p out
pod2man --section=1 --center="Broom Manual" --name="BROOM" --release="broom 1.1.0" README.pod > out/broom.1
install -Dm755 out/broom.sh /usr/bin/broom
install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64
```

Once it was manually copied over to the proper location, it still crashed

``` Shell
broom git:(master) broom -h
getopt: illegal option -- l
Error: too many arguments, exiting.
usage: /usr/bin/broom [option...] [directory]

A disk cleaning utility for developers.

OPTIONS:
-h,--help Show this message and exit.
--version Show version number and exit.
-v,--verbose Increase verbosity level.
-q,--quiet) Decrease verbosity level.
-n,--dry-run) Do not actually perform actions.
-t,--tools) Comma-separated list of tools to use.
Available tools are: make python ant mvn gradle git.
```

Changing the getopt to getopt**s** fixed it though.