mirror of
https://github.com/dvorka/hstr.git
synced 2024-12-24 08:25:01 +08:00
Adding DEB scripts and configs
This commit is contained in:
parent
9ad1b946c1
commit
139022295c
14 changed files with 94 additions and 12 deletions
|
@ -1,3 +1,2 @@
|
|||
# hh make
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
SUBDIRS = src man
|
18
README.md
18
README.md
|
@ -18,9 +18,16 @@ DOWNLOAD
|
|||
https://github.com/dvorka/hstr/releases
|
||||
|
||||
|
||||
BUILD
|
||||
------------
|
||||
* install from the source distribution:
|
||||
|
||||
`./configure && make && make install`
|
||||
|
||||
|
||||
INSTALLATION
|
||||
------------
|
||||
* add `hh` to `$PATH`
|
||||
* make sure `hh` is in `${PATH}`
|
||||
* add
|
||||
|
||||
`shopt -s histappend`
|
||||
|
@ -33,18 +40,13 @@ INSTALLATION
|
|||
|
||||
`bind '"\C-r": "\C-k\C-uhh\C-j"'`
|
||||
|
||||
or F12:
|
||||
|
||||
`bind '"\e[24~":"\C-k\C-uhh\C-j"'`
|
||||
|
||||
or Ctrl-F12:
|
||||
|
||||
`bind '"\e[24;5~":"\C-k\C-uhh\C-j"'`
|
||||
|
||||
To determine the character sequence emitted by a pressed key in terminal,
|
||||
type CTRL-v and then press the key. For example, F12 gives `^[[24~`.
|
||||
Replace the `^[` with `\e`. To clear the line first, add `\C-k \C-u` in
|
||||
front of the actual command. Check your current bindings using:
|
||||
type CTRL-v and then press the key. To clear the line first, add `\C-k \C-u`
|
||||
in front of the actual command. Check your current bindings using:
|
||||
|
||||
`bind -S`
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
rm -vrf ../.git ../.settings ../Debug ../Release ../.cproject ../.project ../.gitignore
|
||||
|
||||
rm -vf *.*~ ../*.*~ ../src/*.*~
|
||||
rm -rvf ../atom5te.cache
|
||||
rm -vf ../man/Makefile ../man/Makefile.in
|
||||
|
|
18
bin/deb.sh
Executable file
18
bin/deb.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# copy hstr/ source code to a work directory and run this script to create DEB package
|
||||
mv -vf ../debian ../..
|
||||
./dist.sh
|
||||
cd ../..
|
||||
mv hstr hh-0.7
|
||||
tar zcf hh-0.7.tgz hh-0.7
|
||||
bzr dh-make hh 0.7 hh-0.7.tgz
|
||||
cd hh
|
||||
rm -rvf debian
|
||||
cp -vrf ../debian .
|
||||
bzr commit -m "Initial commit of Debian packaging."
|
||||
bzr builddeb -- -us -uc
|
||||
|
||||
bzr builddeb -S && cd ../build-area && pbuilder-dist raring build hh_0.7-0ubuntu1.dsc
|
||||
|
||||
# eof
|
|
@ -4,8 +4,14 @@
|
|||
|
||||
cd ..
|
||||
aclocal
|
||||
automake --add-missing
|
||||
automake --force-missing --add-missing
|
||||
autoconf
|
||||
|
||||
rm -vf depcomp install-sh missing
|
||||
cp -vf /usr/share/automake-1.11/depcomp .
|
||||
cp -vf /usr/share/automake-1.11/install-sh .
|
||||
cp -vf /usr/share/automake-1.11/missing .
|
||||
|
||||
cd bin
|
||||
|
||||
# eof
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
hh (0.7-0ubuntu1) raring; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Martin Dvorak (Dvorka) <martin.dvorak@mindforger.com> Wed, 25 Dec 2013 17:21:31 +0100
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
8
|
16
debian/control
vendored
Normal file
16
debian/control
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
Source: hh
|
||||
Section: admin
|
||||
Priority: extra
|
||||
Maintainer: Martin Dvorak <martin.dvorak@mindforger.com>
|
||||
Build-Depends: debhelper (>= 8.0.0), autotools-dev
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: https://github.com/dvorka/hstr
|
||||
Vcs-Git: https://github.com/dvorka/hstr.git
|
||||
Vcs-Browser: https://github.com/dvorka/hstr
|
||||
|
||||
Package: hh
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, libreadline5
|
||||
Description: Suggest box like shell history completion
|
||||
A command line utility that brings improved shell command completion
|
||||
from the history. It aims to make completion easier and faster than Ctrl-R.
|
18
debian/copyright
vendored
Normal file
18
debian/copyright
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: hh
|
||||
Source: https://github.com/dvorka/hstr
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2013 Martin Dvorak <martin.dvorak@mindforger.com>
|
||||
License: Apache-2.0
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License
|
1
debian/docs
vendored
Normal file
1
debian/docs
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
README.md
|
13
debian/rules
vendored
Executable file
13
debian/rules
vendored
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@ --with autotools-dev
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
|
@ -1,6 +1,6 @@
|
|||
# http://mij.oltrelinux.com/devel/autoconf-automake/
|
||||
AM_CFLAGS = --pedantic -Wall -std=c99 -O2
|
||||
AM_LDFLAGS = -lncurses -lreadline -lm
|
||||
AM_LDFLAGS =
|
||||
|
||||
# bin_ installs to bin; hh_ is the binary name
|
||||
bin_PROGRAMS = hh
|
||||
|
|
|
@ -249,7 +249,7 @@ char *selection_loop(HistoryItems *history) {
|
|||
int selectionCursorPosition=SELECTION_CURSOR_IN_PROMPT;
|
||||
int previousSelectionCursorPosition=SELECTION_CURSOR_IN_PROMPT;
|
||||
|
||||
int y = 1, c, maxHistoryItems, cursorX, cursorY, deleteOccurences;
|
||||
int y = 1, c, maxHistoryItems, cursorX=0, cursorY=0, deleteOccurences;
|
||||
bool done = FALSE;
|
||||
char prefix[SELECTION_PREFIX_MAX_LNG]="";
|
||||
char *result="", *msg, *delete;
|
||||
|
|
Loading…
Reference in a new issue