blob: 799dc72ed2d908e1cb063890e67b899020400d25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/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
|