Twenga / twgit

Twgit is a free and open source assisting tools for managing features, hotfixes and releases on Git repositories. It provides simple, high-level commands to adopt the branching model describes in our documentation. Supported OS: Debian/Ubuntu Linux, Mac OS X 10.8 (Mountain Lion) or lower.
http://twgit.twenga.com/
Other
111 stars 34 forks source link

Installation not working on OSX due to CRLF files (solution provided) #178

Open mgohin opened 2 months ago

mgohin commented 2 months ago

Hi,

we needed to use dos2unix to be able to install and correctly use Twgit on OSX, in order to convert all files to LF instead of CRLF.

Problem encountered Here all lines with command not found were in fact empty.

➜ twgit git:(stable) sudo make install

: command not found/makefile.sh: line 2: 
: command not found/makefile.sh: line 8: 
: command not found/makefile.sh: line 11: 
: command not found/makefile.sh: line 17: 
'Users/morgan/twgit/makefile.sh: line 31: syntax error near unexpected token `{
'Users/morgan/twgit/makefile.sh: line 31: `main() {
make: *** [install] Error 2

Solution used

brew install dos2unix
git clone https://github.com/Twenga/twgit.git .
find . -type f -not -path './.git/*' -print0 | xargs -0 dos2unix
sudo make install

Even if we only tweaked Makefile and makefile.sh, and installed twgit, we would have issues later when executing commands.