mkposter.sh 461 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh

if ! [ -n "$1" ]; then
  echo "Usage: $0 <directory>"
  exit
fi

if [ -e $1 ]; then
  echo $1 already exists.
  exit
fi

mkdir $1
14 15 16 17 18 19 20 21 22 23 24 25 26

source=$(cd $1; pwd)
target=$(pwd)

common_part=$source
back=
while [ "${target#$common_part}" = "${target}" ]; do
  common_part=$(dirname ${common_part})
  back="../${back}"
done

cp poster.tex $1

27
links="Makefile beamerthemelumc.sty logos"
28 29 30 31
cd $1
for i in ${links}; do
  ln -s ${back}${target#$common_part/}/${i}
done