xaizek / hstr (License: Apachev2) (since 2018-12-07)
Bash and Zsh shell history suggest box - easily view, navigate, search and manage your command history.
<root> / dist / 1-dist.sh (1c18e4f95e4261ff4d8189941798207288fbae36) (1,067B) (mode 100755) [raw]
#!/bin/bash

export AUTOMAKE_LIB=`automake --print-libdir`

./clean.sh

cd ..
aclocal
automake --force-missing --add-missing
autoconf

rm -rvf autom*te.cache config.sub config.guess

if [ -d ${AUTOMAKE_LIB} ]
then
    rm -vf compile depcomp install-sh missing
    cp -vf ${AUTOMAKE_LIB}/compile .
    cp -vf ${AUTOMAKE_LIB}/depcomp .
    cp -vf ${AUTOMAKE_LIB}/install-sh .
    cp -vf ${AUTOMAKE_LIB}/missing .
    # platform specific detection in configure.ac
    cp -vf ${AUTOMAKE_LIB}/config.sub .
    cp -vf ${AUTOMAKE_LIB}/config.guess .
else 
    echo "****************************************************************"
    echo "Error: automake ${AUTOMAKE_LIB} not found - exiting!"
    exit 1
fi

# detect Bash@Ubuntu@Windows
export VENDOR_FILE=/proc/version
export HINT_FILE=/tmp/hh-ms-wsl

if [ -e "${VENDOR_FILE}" ]
then
    IS_MS=`grep Microsoft ${VENDOR_FILE}`
    if [[ ! -z "${IS_MS}" ]]
    then
	echo "DETECTED Bash on Linux on Windows (MS WSL)"
	touch ${HINT_FILE}
    else
	rm -vf ${HINT_FILE}
    fi
else
    rm -vf ${HINT_FILE}
fi

cd dist

# eof
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