/usr/sbin/clc-clbuild is in common-lisp-controller 7.8.
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 | #!/bin/bash
set -e
if [ "$EUID" != 0 ] ; then
echo You need to be root to run this or use
echo sudo "$@"
exit 1
fi
if [ "x$1" == "xsetup" ] ; then
[ -d "/usr/share/common-lisp/clbuild" ] || mkdir /usr/share/common-lisp/clbuild
chown cl-builder:cl-builder /usr/share/common-lisp/clbuild
(cd /usr/share/common-lisp/clbuild ;
echo downloading clbuild using darcs
su --shell="/bin/bash" --command="darcs get http://common-lisp.net/project/clbuild/clbuild" cl-builder
chmod a+x clbuild/clbuild )
mv /usr/share/common-lisp/clbuild/clbuild /usr/share/common-lisp/clbuild/the-dir
mv /usr/share/common-lisp/clbuild/the-dir/* /usr/share/common-lisp/clbuild/
rmdir /usr/share/common-lisp/clbuild/the-dir
echo
echo done
exit 0
fi
if [ ! -d "/usr/share/common-lisp/clbuild" ] ; then
echo please first run "$0 setup" to install clbuild
exit 2
fi
(cd /usr/share/common-lisp/clbuild
su --shell="/bin/bash" cl-builder -- ./clbuild "$@")
|