#!/usr/interp/bash SYS="$*" cd /dept/acm/arch if [ -d "new" ]; then echo "ERROR: /dept/acm/arch/new already exists. Delete it." exit 1 fi mkdir "new" cd /dept/acm/packages echo "+ cat /tmp/InfoFile.$SYS | slink -l -c --" cat /tmp/InfoFile.$SYS | slink -l -c -- DATE=`date | tr " " "_"` #echo "+ mkdir /dept/acm/arch/new/X11" #mkdir /dept/acm/arch/new/X11 echo "+ (cd /dept/acm/arch/new/X11 ; ln -s ../bin bin)" (cd /dept/acm/arch/new/X11 ; ln -s ../bin bin) echo "+ (cd /dept/acm/arch/new/X11/lib ; ln -s ../lib/* .)" (cd /dept/acm/arch/new/X11/lib ; ln -s ../../lib/* .) echo "+ (cd /dept/acm/arch/new/X11 ; ln -s ../include include)" (cd /dept/acm/arch/new/X11 ; ln -s ../include include) echo + /bin/mv /dept/acm/arch/$SYS /dept/acm/arch/$SYS.old.$DATE /bin/mv /dept/acm/arch/$SYS /dept/acm/arch/$SYS.old.$DATE echo + /bin/mv /dept/acm/arch/new /dept/acm/arch/$SYS /bin/mv /dept/acm/arch/new /dept/acm/arch/$SYS echo "* Update for $SYS complete.";