Build ksh from source code | ||||
Git sourceUpdated 2014-01-06AST sources from Git. My Git support for Ksh, updated data. Making is simple:
# build ksh from and all other ast stuff
# Tested Debian Jessie and Windows Linux Subsystem
git clone --branch beta https://github.com/att/ast.git
cd ast
./bin/package make
# example I have linux.i386-64, install as root:
install -v -m755 arch/linux.i386-64/bin/ksh /usr/local/bin
echo "#!/usr/local/bin/ksh" > /usr/local/bin/mm2html
cat arch/linux.i386-64/bin/mm2html >> /usr/local/bin
chmod 755 /usr/local/bin/mm2html
# install -v -m755 arch/linux.i386-64/bin/mm2html /usr/local/bin
install -v -m644 arch/linux.i386-64/man/man1/sh.1 /usr/local/share/man/man1/ksh.1
/usr/local/bin/mm2html /usr/local/share/man/man1/ksh.1 > /usr/local/share/doc/ksh-2014-12-24/ksh.html
install -v -m755 -d /usr/local/share/doc/ksh-2014-12-24
install -v -m644 lib/package/{ast-open,INIT}.html /usr/local/share/doc/ksh-2014-12-24
Old AST makingUpdated 2014-01-06Here is example to build original standalone ast ksh93 from sources in Debian Wheezy env, 64-bit hw. Download source code packages. Allways INIT is needed. Binary download, if it's enough.
Example script to download sources:
Now you can make subdirectory ksh if you like only build ksh package.
Example I have linux.i386-64, then I like to install files to the /usr/local:
| ||||