xaizek / hstr (License: Apachev2) (since 2018-12-07)
Bash and Zsh shell history suggest box - easily view, navigate, search and manage your command history.
Commit 9decd1ad01ebf91692436d7dc5962cd70ece880b

Making Mac related build process changes: unfortunately single configure.ac cannot be used as macro detecting the platform doesn't work when releasing hstr via launchpad.
Author: Martin Dvorak
Author date (UTC): 2015-02-26 22:38
Committer name: Martin Dvorak
Committer date (UTC): 2015-02-26 22:38
Parent(s): 10fca39f4a2139cebb7710fb62c077a485f5c5c9
Signing key:
Tree: ac02d91aa9939e4ebdcc4342d50353471383b052
File Lines added Lines deleted
INSTALLATION.md 1 0
configure.ac 4 14
dist/github-env.sh 2 2
dist/mac/configure.ac 7 14
dist/ubuntu-make-all-distros.sh 3 3
File INSTALLATION.md changed (mode: 100644) (index b74253d..6fd0589)
... ... port install ncurses
100 100
101 101 Build and install: Build and install:
102 102 ```bash ```bash
103 cp -vf dist/mac/configure.ac configure.ac
103 104 autoreconf -fvi autoreconf -fvi
104 105 ./configure CFLAGS=-I$(brew --prefix)/opt/readline/include LDFLAGS=-L$(brew --prefix)/opt/readline/lib ./configure CFLAGS=-I$(brew --prefix)/opt/readline/include LDFLAGS=-L$(brew --prefix)/opt/readline/lib
105 106 make make
File configure.ac changed (mode: 100644) (index d77b1e8..24cd46e)
4 4
5 5 AC_PREREQ([2.69]) AC_PREREQ([2.69])
6 6
7 AC_INIT(hh, 1.15, martin.dvorak@mindforger.com)
7 AC_INIT(hh, 1.16, martin.dvorak@mindforger.com)
8 8 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])
9 9
10 10 # Checks for src dir existence. # Checks for src dir existence.
 
... ... AM_INIT_AUTOMAKE
16 16 # Checks for programs. # Checks for programs.
17 17 AC_PROG_CC AC_PROG_CC
18 18
19 # Mac-specific ncurses check
20 AC_CANONICAL_HOST
21 AS_CASE([$host_os],
22 [darwin*],
23 [
24 AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])])
25 AC_CHECK_HEADER(curses.h)
26 ],
27 [
28 AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
29 AC_CHECK_HEADER(ncursesw/curses.h)
30 ]
31 )
19 # ncurses check.
20 AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
21 AC_CHECK_HEADER(ncursesw/curses.h)
32 22
33 23 # Checks for libraries. # Checks for libraries.
34 24 AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])]) AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])])
File dist/github-env.sh changed (mode: 100755) (index 72e110e..f054ad9)
... ... export NOW=`date +%Y-%m-%d--%H-%M-%S`
4 4 export GH_RELEASE_DIR=~/p/hstr/release export GH_RELEASE_DIR=~/p/hstr/release
5 5 export GH_DISTRO_DIR=${GH_RELEASE_DIR}/release-${NOW} export GH_DISTRO_DIR=${GH_RELEASE_DIR}/release-${NOW}
6 6
7 export HHVERSION="1.15"
8 export GH_MSG="Enter first item auto-select, Vim keybinding, doc improvements."
7 export HHVERSION="1.16"
8 export GH_MSG="History timestamps, Zsh support and management fixes."
9 9
10 10 # eof # eof
File dist/mac/configure.ac copied from file configure.ac (similarity 74%) (mode: 100644) (index d77b1e8..f85c8a3)
4 4
5 5 AC_PREREQ([2.69]) AC_PREREQ([2.69])
6 6
7 AC_INIT(hh, 1.15, martin.dvorak@mindforger.com)
7 AC_INIT(hh, 1.16, martin.dvorak@mindforger.com)
8 8 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])
9 9
10 10 # Checks for src dir existence. # Checks for src dir existence.
 
... ... AM_INIT_AUTOMAKE
16 16 # Checks for programs. # Checks for programs.
17 17 AC_PROG_CC AC_PROG_CC
18 18
19 # Mac-specific ncurses check
20 AC_CANONICAL_HOST
21 AS_CASE([$host_os],
22 [darwin*],
23 [
24 AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])])
25 AC_CHECK_HEADER(curses.h)
26 ],
27 [
28 AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
29 AC_CHECK_HEADER(ncursesw/curses.h)
30 ]
31 )
19 # Mac specific ncurses check
20 # Unfortunately AC_CANONICAL_HOST macro cannot be used to
21 # detect Linux/Mac platform as it actives the use of config.sub/config.guess
22 # which doesn't work when building for launchpad (and @ launchpad)
23 AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])])
24 AC_CHECK_HEADER(curses.h)
32 25
33 26 # Checks for libraries. # Checks for libraries.
34 27 AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])]) AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])])
File dist/ubuntu-make-all-distros.sh changed (mode: 100755) (index b0af814..c45035c)
1 1 #!/bin/bash #!/bin/bash
2 2
3 export HHBZRMSG="Enter first item auto-select, Vim keybinding, doc improvements."
4 export VERSION=1.15.
5 export MINOR=3
3 export HHBZRMSG="History timestamps, Zsh support and management fixes."
4 export VERSION=1.16.
5 export MINOR=1
6 6
7 7 # precise quantal saucy / precise trusty utopic # precise quantal saucy / precise trusty utopic
8 8 for DISTRO in trusty utopic for DISTRO in trusty utopic
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/hstr

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/hstr

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master