Using Arch

I've recently started using GNU Arch for source control for my own projects. This page collects things I've discovered or made that I find useful with it.

Using tla from the wrong directory

I usually keep source code in one directory and build in another, using make's vpath feature. Unfortunately tla likes to be run from the source directory which is inconvenient if my working directory is the build directory (which it usually is since I want to actually run programs, etc). Therefore I usually leave a .src symbolic link to the source directory and have the following function in my shell startup:

function tla() {
  local opwd
  if [ -L .src ]; then
    opwd="$PWD"
    cd .src || return 1
    command tla "$@"
    status=$?
    cd "$opwd"
    return $status
  else
    command tla "$@"
  fi
}

Links

wiki.gnuarch.org is the best place for Arch information.

xtla provides Emacs integration.


RJK | Contents