Browse Source

add Mac-specific install location to Makefile

pull/16/head
Sean Bailey 1 year ago
parent
commit
e085806c97
3 changed files with 14 additions and 4 deletions
  1. +10
    -0
      Makefile
  2. +1
    -1
      README.md
  3. +3
    -3
      source/print.d

+ 10
- 0
Makefile View File

@@ -8,12 +8,22 @@ INSTALLEXEC := sudo cp -f
INSTALL := sudo cp -f
endif

UNAME := $(shell uname)

ifeq ($(UNAME),Darwin)
OS_FLAG := OSX
endif

all: build test

DESTDIR?=
install: build
ifeq ($(OS_FLAG),OSX)
$(INSTALLEXEC) "./aight" "${DESTDIR}/usr/local/bin/aight"
else
$(INSTALLEXEC) "./aight" "${DESTDIR}/usr/bin/aight"
$(INSTALL) "./LICENSE" "${DESTDIR}/usr/share/licenses/aight/LICENSE"
endif

build:
dub build


+ 1
- 1
README.md View File

@@ -28,7 +28,7 @@ trelloApiToken=your Trello token

### Display Modes

By default, `aight` will attempt to display multiple task lists (for example, multiple lists within a single Trello board) in ASCII table format, using the `listWidth` and `borderChar` settings and your terminal window width. If you would prefer to have multiple lists displayed one after the other, set `listMode=list`.
By default, `aight` will attempt to display multiple task lists (for example, multiple lists within a single Trello board) in ASCII table format, using the `listWidth` and `borderChar` settings and your terminal window width. If you would prefer to have multiple lists displayed one after the other, set `displayMode=list`.

### Task Providers



+ 3
- 3
source/print.d View File

@@ -17,7 +17,7 @@ class Printer {

int listWidth;

string listMode;
string displayMode;

this(ConfigGroup conf) {
this.conf = conf;
@@ -28,7 +28,7 @@ class Printer {

this.listWidth = to!int(conf.setting("listWidth", "40"));

this.listMode = conf.setting("listMode", "table");
this.displayMode = conf.setting("displayMode", "table");
}

/**
@@ -101,7 +101,7 @@ class Printer {
string[] rows = printList(list, size);
if (print.length == 0) {
print = rows;
} else if (0 == cmp(this.listMode, "list")) {
} else if (0 == cmp(this.displayMode, "list")) {
for (int i = 0; i < rows.length; i++) {
print[x*i] = rows[i];
}


Loading…
Cancel
Save