Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.149.232.87
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0555) :  /bin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //bin/clc-clbuild
#!/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  "$@")

Stv3n404 - 2023