#!/bin/bash # This script is called from publish.sh # # The assumption made here is that this runs on /var/www/zwizwa.be # root, where sweb is under darcs/sweb, and all the other projects are # under darcs/ and git/ # # Note that the git projects are not bare repositories, but have their # current master branch checked out in a working directory. cd $(dirname $0)/txt rm *.txt ROOT=../../../../ GIT=$ROOT/git DARCS=$ROOT/darcs link () { [ -f "$1" ] && ln -vsf $1 $2 } PAPERS=" about.txt books.txt darcs.txt erlang.txt graphviz.txt math.txt old.txt quack.txt skills.txt uc_tools.txt am335x.txt buildroot.txt debugging.txt filo.txt haskell.txt mechanics.txt opengl.txt redefine.txt sm.txt ui.txt android.txt buildsys.txt dharma.txt finance.txt home.txt mistakes-ed.txt openocd.txt rtl.txt softarch.txt usb.txt arm.txt cache.txt distributed.txt food.txt input.txt mixes.txt openwrt.txt rust.txt spice.txt vetted.txt asterisk.txt compsci.txt ecos.txt garden.txt keybindings.txt music.txt people.txt sat.txt sql.txt webdev.txt axoloti.txt contrib.txt electronics.txt git.txt linux.txt myhdl.txt physics.txt scifi.txt stm32f1.txt wood.txt beagle.txt crypto.txt emacs.txt gnuplot.txt lua.txt nixos.txt protocol.txt sdr.txt thermostat.txt zapper.txt body.txt c.txt empat.txt gpgpu.txt mailman.txt ocaml.txt python.txt simtrace.txt training.txt zephyr.txt " for p in $PAPERS; do link $DARCS/papers/$p .; done link $DARCS/packetforth/doc/packetforth.txt . link $DARCS/plt/plt.txt . link $DARCS/snot/doc/snot.txt . link $DARCS/sweb/doc/sweb.txt . link $DARCS/pool/doc/pool.txt . link $DARCS/pool/doc/neuros.txt . link $DARCS/davinci/davinci.txt . link $DARCS/libprim/libprim.txt . link $DARCS/analog/synth.txt . link $GIT/tinyscheme/zwizwa.txt tinyscheme.txt link $GIT/looper/looper.txt .