Browse Source

Distribution: installation via make or install.sh; docs: updated README

master
parent
commit
2b8f2a7e7e
  1. 6
      Makefile
  2. 2
      README.md
  3. 12
      install.sh
  4. 4
      src/main.c

6
Makefile

@ -6,6 +6,10 @@ clean:
install: all
mv clido /usr/local/bin
mkdir -p /usr/local/share/clido
touch /usr/local/share/clido/TODOS.bin
chmod -R a+rw /usr/local/share/clido
delete:
rm -f /usr/local/bin/clido
rm -rf ~/.clido
sudo rm -rf /usr/local/bin/clido

2
README.md

@ -14,6 +14,8 @@ Simply `make` or as simply compile .c files together
If you're on Linux - `sudo make install` **or** `sudo ./install.sh` **or if not** simply move the binary to wherever you desire.
On Windows clido will look for a todo file in the current directory, on other platforms it will be /usr/local/share/clido (which is created and configured automatically via `make install` or `install.sh`)
## Usage
`clido [COMMAND]`

12
install.sh

@ -1,9 +1,17 @@
program=clido
target=/usr/local/bin
todo_target=/usr/local/share/clido
if [ -f "$program" ]; then
echo "Moving $program to $target ..."
mv $program $target && echo "Successfully installed!"
echo "Creating $todo_target ..."
mkdir -p $todo_target && \
touch $todo_target/TODOS.bin && \
echo "Setting rights ..." && \
chmod -R a+rw $todo_target && \
echo "Moving $program to $target ..." && \
mv $program $target && \
echo "Successfully installed!"
else
echo "$program does not exist!"
fi

4
src/main.c

@ -26,14 +26,14 @@
#include "todo.h"
#define CLIDO_VERSION "0.1"
#define CLIDO_VERSION "0.1.1"
#ifdef _WIN32
#define TODO_FILE_PATH "TODOS.bin"
#else
#define TODO_FILE_PATH "/usr/local/share/TODOS.bin"
#define TODO_FILE_PATH "/usr/local/share/clido/TODOS.bin"
#endif

Loading…
Cancel
Save