You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

This is a selection of scripts some devs found useful.

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
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"

 

Windows

 

OS X

  • No labels