8000 Install · Megaf/libsay Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Install

Megaf edited this page Sep 28, 2022 · 2 revisions

article up to date up to libsay version 1.3-202209.28.193000

Install Instructions

Adding libsay to your shell

  • In this instruction we are going to install the libsay to the directory ~/.local/lib.
  • All commands are run with user privs.
  • Simply copy each command and paste it on your terminal.
  • The .bashrc file is a list of commands your system runs when you login.

Instructions

  1. To help us out, let's set some variables first.
  2. install_dir="$HOME/.local/lib" # Install location for libsay.
  3. download_dir="/tmp" # Download destination.
  4. download_url="https://github.com/Megaf/libsay/releases/latest/download/libsay" # libsay's url.
  5. Download the latest release for libsay.
  6. wget "$download_url" -O "$download_dir/libsay"
  7. Create a directory where libsay will be installed to:
  8. mkdir -p "$install_dir"
  9. Copy libsay to your libs directory.
  10. cp "$download_dir/libsay" "$install_dir"/
  11. "Install" libsay to your .bashrc file.
  12. Make a backup of the .bashrc file.
    1. cp -a ~/.bashrc ~/.bashrc.backup
  13. Add source libsay to the end of .bashrc.
    1. echo "source $install_dir/libsay" >> ~/.bashrc
  14. Check Usage in the wiki to learn how to use libsay!

Adding libsay to your project

Instructions

  • In this instruction we are going to install the libsay to the directory Your_Project/libs.
  • All commands are run with user privs.
  • Simply copy each command and paste it on your terminal.
  • Please replace Your_Projects with the full "PATH" of your Project.
  1. To help us out, let's set some variables first.
  2. install_dir="/Your_Projects/libs" # Install location for libsay.
  3. download_url="https://github.com/Megaf/libsay/releases/latest/download/libsay" # libsay's url.
  4. Create a directory where libsay will be installed to:
  5. mkdir -p "$install_dir"
  6. Download the latest release for libsay to your projects libs directory.
  7. wget "$download_url" -O "$install_dir/libsay"
  8. Add libsay to your your project.
  9. Add the following source line to the beginning of your projects.
    1. source ./libs/libsay
  10. Check Usage in the wiki to learn how to use libsay!

You are all set! Now you can use libsay's commands and functions!

For more information Check the Wiki!

Clone this wiki locally
0