Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added an optional tree cmd to the 'Emacs > build Corinthia' script for a html directory tree file.

...

Use at your own risk, read before use and amend to suit your taste.

Linux

Emacs

Quickly download and build Corinthia 

#! /bin/bash

# Download and build a new Corinthia on linux, making a TAGS file for
# emacs assuming that you already have all the supporting libraries
# installed and your git set up with your comitter id.
#
# Usage: build-corinthia <name of directory you'd like>

if test -z "$1"; then printf 'Please supply a directory name\n'; exit; fi
if test -e "$1"; then printf 'The directory already exists.\n'; exit; fi
mkdir $1
cd $1
git clone https://git-wip-us.apache.org/repos/asf/incubator-corinthia.git
mkdir incubator-corinthia/
cd incubator-corinthia/
CORINTHIA_CURRENT=$(pwd)
# make a fresh TAGS FILE
find . -name "*.[ch]" -print0 | xargs -0 etags -
#
# build a new directory tree html file
# uncomment this if you have installed tree and would like a browsable html file of the Corinthia directory
# tree -d -H . -T "Corinthia Directory Structure<BR \>$(date)" > CorinthiaDirectoryTree.html
#
# Now build outside of the source tree in a build directory
mkdir "build"
cd build
cmake -G "Unix Makefiles" $CORINTHIA_CURRENT
make
printf "Corinthia build complete, do not forget to M-x visit-tags-table to read the new TAGS file.\n"

...