mirror of
https://github.com/dvorka/hstr.git
synced 2024-09-20 14:56:14 +08:00
Ubuntu package can be build on a clean system now.
This commit is contained in:
parent
139022295c
commit
cfbf25d65b
11
bin/deb-build.sh
Executable file
11
bin/deb-build.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
rm -vf *.*~
|
||||
|
||||
# copy hstr/ source code to a work directory and run this script to create DEB package
|
||||
cd ..
|
||||
bzr commit -m "Sync."
|
||||
bzr builddeb -- -us -uc
|
||||
bzr builddeb -S && cd ../build-area && pbuilder-dist raring build hh_0.7-0ubuntu1.dsc
|
||||
|
||||
# eof
|
9
debian/control
vendored
9
debian/control
vendored
|
@ -1,8 +1,8 @@
|
|||
Source: hh
|
||||
Section: admin
|
||||
Priority: extra
|
||||
Section: universe/admin
|
||||
Priority: optional
|
||||
Maintainer: Martin Dvorak <martin.dvorak@mindforger.com>
|
||||
Build-Depends: debhelper (>= 8.0.0), autotools-dev
|
||||
Build-Depends: debhelper (>= 8.0.0), autotools-dev, libreadline-dev, libncurses5-dev
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: https://github.com/dvorka/hstr
|
||||
Vcs-Git: https://github.com/dvorka/hstr.git
|
||||
|
@ -10,7 +10,8 @@ Vcs-Browser: https://github.com/dvorka/hstr
|
|||
|
||||
Package: hh
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, libreadline5
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
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.
|
||||
Tag: implemented-in::c++, interface::commandline, role::program
|
|
@ -8,10 +8,6 @@
|
|||
*/
|
||||
|
||||
#include "include/hstr_history.h"
|
||||
#include "include/hashset.h"
|
||||
#include "include/radixsort.h"
|
||||
|
||||
#include "include/hstr_utils.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <assert.h>
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#include <unistd.h>
|
||||
#include <stdbool.h>
|
||||
#include "hstr_utils.h"
|
||||
#include "hashset.h"
|
||||
#include "radixsort.h"
|
||||
|
||||
#define ENV_VAR_USER "USER"
|
||||
#define ENV_VAR_HOME "HOME"
|
||||
|
|
|
@ -10,6 +10,13 @@
|
|||
#ifndef RADIXSORT_H_
|
||||
#define RADIXSORT_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
#include "hstr_utils.h"
|
||||
|
||||
#define SLOT_SIZE 1000
|
||||
|
||||
typedef struct radixitem {
|
||||
|
|
|
@ -8,12 +8,6 @@
|
|||
*/
|
||||
|
||||
#include "include/radixsort.h"
|
||||
#include "include/hstr_utils.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define GET_TOP_INDEX(KEY) KEY/SLOT_SIZE
|
||||
#define GET_LOW_INDEX(KEY) KEY%SLOT_SIZE
|
||||
|
|
Loading…
Reference in a new issue