Files
projectm/autogen.sh
Anton Latukha cb1214e2b7 autogen.sh: fix (#248)
* autogen.sh: add more portable #!, provide -e key explicitly

This is minority, NixOS and some other distros do not have this `sh`,
paradoxically `/usr/bin/env` path is more widespread.

Also documenting `set -e`

* autogen.sh: upd output, make it portable

`echo` has different behaviour, keys and possibilities on different systems.
Example:
```
echo "Line1\nLine2"
```

Is probably parses `\n` in `macOS`, while Linux `echo` didn't, resulting
in verbatim line.

`printf` special character parsing is much more portable.

Also removed the thanks "You followed directions! Great work!"
to the person that just ran one command, which is a script that has one command
inside and thanks the person for that.
2019-10-06 10:27:40 +03:00

10 lines
174 B
Bash
Executable File

#!/usr/bin/env sh
set -e # Drop-out from execution if error occurs
printf 'Running autoreconf...'
autoreconf --install
printf '\nSuccess!\nNow please run: ./configure\n'