Pejman Moghadam / Slackware

Slackware 13.37 - astyle: Artistic Style (with epkg)

http://astyle.sourceforge.net/

Public domain


Installation

cd /usr/src
wget "ftp://ftp.heanet.ie/mirrors/sourceforge/a/project/as/astyle/astyle/astyle%202.02.1/astyle_2.02.1_linux.tar.gz"
su - install
cd /usr/src
tar xf astyle_2.02.1_linux.tar.gz
cd astyle/build/gcc
make
make prefix=/usr/local/encap/astyle-2.02.1/usr install
cd /usr/local/encap/astyle-2.02.1/
mv usr/share/doc/ usr/
rmdir usr/share
logout
cd /usr/local/encap/
chown -R root:root astyle-2.02.1
mkencap astyle-2.02.1/
epkg astyle-2.02.1

Usage

astyle --pad-oper --style=kr program.c

BY: Pejman Moghadam
TAG: astyle, c, epkg
DATE: 2012-02-15 12:57:54


Pejman Moghadam / Slackware [ TXT ]