File: fake-libexec

package info (click to toggle)
sawfish 1:1.5.3-2.4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 18,160 kB
  • ctags: 1,428
  • sloc: lisp: 23,542; ansic: 15,824; sh: 10,268; makefile: 615; perl: 19
file content (26 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download | duplicates (7)
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
#! /bin/sh

# fake the module hierarchy for uninstalled shared objects

libdir="`pwd`/.libs"
libexecdir="./.libexec"

libs="\
 sawfish.client\
 sawfish.wm.util.flippers\
 sawfish.wm.util.gradient\
 sawfish.wm.util.play-sample\
 sawfish.wm.util.selection\
 sawfish.wm.util.x"

for f in $libs; do
  g=`echo $f | tr . /`
  src=$libdir
  dest=$libexecdir/`dirname $g`
  for b in `( cd $libdir && echo *\`basename $g\`.* )`; do
    rm -f $dest/$b
    echo "$src/$b -> $dest/$b"
    ../mkinstalldirs $dest
    ln -s $src/$b $dest/$b
  done
done