/usr/bin/setup-logidee-tools is in logidee-tools 1.2.16.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #!/bin/bash
root=/usr/share/logidee-tools
directories=""
while (test "$1" != "")
do
case $1 in
-r)
root=`eval echo -n $2`
shift 2
;;
-h)
echo "Usage: $0 [ -r <dir> ] [ -h ] directories ..."
echo "-r <dir> : use <dir> as the logidee-tools root directory"
echo "-h : display this help message"
exit 0
;;
*)
directories="$directories $1"
shift
;;
esac
done
if [ ! -d "$root" ]
then
echo "Where is the main directory of logidee-tools ?"
while (test ! -d $root)
do
read -p "Main directory of logidee-tools: " -e root
root=`eval echo -n $root`
done
echo ""
fi
if [ "$directories" = "" ]
then
echo "Which directories may contain xml documents ?"
read -p "Give a space delimited list of directories : " -e directories
fi
# Install what's needed
cp $root/Makefile $root/Makefile.generic ./
test -L xsl && rm -f xsl
test -L dtd && rm -f dtd
test -d xsl || ln -sf $root/xsl xsl
test -d dtd || ln -sf $root/dtd dtd
test -d charte || mkdir charte
ln -sf $root/charte/* charte/
ln -sf $root/bin/verif_dep.sh .
# Setup
perl -pi -e "s|^REP\s*=.*$|REP=$directories|" Makefile
perl -pi -e "s|^DIR\s*=.*$|DIR=`pwd`|" Makefile.generic
make makefiles
|