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.

19 lines
510 B

#!/bin/sh
INSTALL_DIR=$(readlink -f $1)
# Make the installation directory
mkdir -p $INSTALL_DIR/do_what
mkdir -p $INSTALL_DIR/bin
cp ./do_what.py $INSTALL_DIR/do_what/interpreter.py
echo "#!/usr/bin/env python3" > $INSTALL_DIR/do_what/dowhat
echo "interpreter_location=\"$INSTALL_DIR/do_what/interpreter.py\"" >> $INSTALL_DIR/do_what/dowhat
cat ./do_what_aliaser.py >> $INSTALL_DIR/do_what/dowhat
ln -s $INSTALL_DIR/do_what/dowhat $INSTALL_DIR/bin/dowhat
chmod +x $INSTALL_DIR/do_what/dowhat
echo "End."