You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install.sh 510B

123456789101112131415161718
  1. #!/bin/sh
  2. INSTALL_DIR=$(readlink -f $1)
  3. # Make the installation directory
  4. mkdir -p $INSTALL_DIR/do_what
  5. mkdir -p $INSTALL_DIR/bin
  6. cp ./do_what.py $INSTALL_DIR/do_what/interpreter.py
  7. echo "#!/usr/bin/env python3" > $INSTALL_DIR/do_what/dowhat
  8. echo "interpreter_location=\"$INSTALL_DIR/do_what/interpreter.py\"" >> $INSTALL_DIR/do_what/dowhat
  9. cat ./do_what_aliaser.py >> $INSTALL_DIR/do_what/dowhat
  10. ln -s $INSTALL_DIR/do_what/dowhat $INSTALL_DIR/bin/dowhat
  11. chmod +x $INSTALL_DIR/do_what/dowhat
  12. echo "End."