#!/bin/sh ## execute this as some special user (e.g. dev, untrust, purch,...) ## it creates symlinks to FVWM_TEMPLATE_DIR/{*.fvwm|config} and ## also handles customized symlinks (which are local) as long as they follow ## the naming convention of STDNAME.xxxxx.custom (e.g. menu-var.untrust.custom) link_dir=~neil/fvwm.linked cd ~/.fvwm for custom_name in *custom do if [ -e $custom_name ] then std_name=`echo $custom_name | cut -d. -f1` ln -sf $custom_name ${std_name}.fvwm fi done for master_file in $link_dir/*.fvwm do link_name=`basename $master_file` std_name=`echo $link_name | cut -d. -f1` if [ -e ${std_name}*custom ]; then continue; fi ## don't overwrite custom links ln -sf $master_file $link_name done ln -sf $link_dir/config config