Skip to content

Commit

Permalink
Add "make package" for releases, tweak --help
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkline committed Mar 8, 2015
1 parent 4a8d6ad commit 6f15cd5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ release: all

all: promptd-path promptd-vcs

package: clean release
mkdir promptd
cp promptd-path promptd-vcs promptd
tar cf promptd.tar promptd
gzip -f9 promptd.tar
rm -r promptd

promptd-path: promptd-path.d help.d
$(DC) $(DFLAGS) -of$@ $^

Expand All @@ -18,4 +25,4 @@ promptd-vcs: promptd-vcs.d help.d git.d color.d
clean:
rm -f promptd-path promptd-vcs *.o

.PHONY: clean
.PHONY: clean debug release all package
2 changes: 1 addition & 1 deletion promptd-path.d
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void main(string[] args)
}

string versionString = q"EOS
promptd-path by Matt Kline, version 0.1
promptd-path by Matt Kline, version 0.1.1
Part of the promptd tool set
EOS";

Expand Down
12 changes: 7 additions & 5 deletions promptd-vcs.d
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void main(string[] args)
}

string versionString = q"EOS
promptd-vcs by Matt Kline, version 0.1
promptd-vcs by Matt Kline, version 0.1.1
Part of the promptd tool set
EOS";

Expand All @@ -54,13 +54,15 @@ Options:
--time-limit, t
The maximum amount of time the program can run before exiting,
in milliseconds.
in milliseconds. Defaults to 500 milliseconds.
Running "git status" can take a long time for big or complex
repositories, but since this program is for a prompt,
we can't delay an arbitrary amount of time without annoying the user.
If it takes longer than this amount of time to get VCS status,
we prematurely kill the status programs and display whatever information
was received so far. Defaults to 500 milliseconds.
If it takes longer than this amount of time to get the repo status,
we prematurely kill "git status" and display whatever information
was received so far. The hope is that in subsequent runs, "git status" will
complete in time since your operating system caches recently-accessed
files and directories.
--no-color
Disables colored output, which is on by default
Expand Down

0 comments on commit 6f15cd5

Please sign in to comment.