...
 
Commits (3)
delay (1.0-1) unstable; urgency=low
* Initial release (Closes: #860572)
-- Kun-Hung Tsai (蔡昆宏) <moonape1226@gmail.com> Tue, 27 Nov 2018 18:57:10 +0800
Source: delay
Section: misc
Priority: optional
Maintainer: Kun-Hung Tsai (蔡昆宏) <moonape1226@gmail.com>
Uploaders: SZ Lin (林上智) <szlin@debian.org>
Build-Depends: debhelper (>= 11)
Standards-Version: 4.2.1
Homepage: https://github.com/rom1v/delay
Vcs-Browser: https://salsa.debian.org/debian/delay
Vcs-Git: https://salsa.debian.org/debian/delay.git
Package: delay
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Constant delay generator
delay introduces a constant delay between its standard input
and its standard output. The data from its stdin will be
stored until it has been written to stdout.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: delay
Source: https://github.com/rom1v/delay
Files: *
Copyright: 2014-2018 Romain Vimont <rom@rom1v.com>
License: GPL-3+
Files: debian/*
Copyright: 2018 Kun-Hung Tsai (蔡昆宏) <moonape1226@gmail.com>
License: GPL-3+
License: GPL-3+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, the complete text of the GNU General
Public License can be found in the file
`/usr/share/common-licenses/GPL-3'.
.TH "DELAY" "1" "21 Nov 2018" "Version 1.0" "User Commands
.Dd Nov 21, 2018
.Dt DELAY 1
.Os
.Sh NAME
.Nm delay
.Nd a constant delay generator
.Sh SYNOPSIS
.Nm
.Op Ar -b bufsize
.Op Ar delay
.Sh DESCRIPTION
.Nm
introduces a constant delay between its standard input and its standard output. The data from its stdin will be stored until it has been written to stdout. The required \fBdelay\fP argument specifies the delay time in millisecond.
.Pp
.Nm
supports the following options:
.Pp
delay
delay is the desired delay time, in milliseconds. The following modifiers are accepted:
12s means 12 seconds
12m means 12 minutes
12h means 12 hours
.Pp
.Fl "b bufsize"
buffer size stores the data until it has been written to stdout, in bytes. The following modifiers are accepted:
12k means 12Kb
12m means 12Mb
12g means 12Gb
.Pp
.Sh EXAMPLES
.Pp
.Bd -literal
delay the output of command_A to command_B by 5 seconds:
$ command_A | delay 5s | command_B
.Pp
delay the output of command_A to command_B by 5 seconds with 10MB buffer:
$ command_A | delay -b 10m 5s | command_B
.Ed
.Sh AUTHORS
.An Romain Vimont Aq Mt rom@rom1v.com
.Sh HOME
.Em https://github.com/rom1v/delay
From: Kun-Hung Tsai <moonape1226@gmail.com>
Date: Thu, 8 Nov 2018 18:57:54 +0800
Subject: Add debug option in makefile
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 29f0376..27d3251 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
OUT = delay
OBJ = main.o dtbuf.o time_ms.o
-CFLAGS = -Wall -O3
+CFLAGS = -Wall -O3 -g
release: delay
From: Kun-Hung Tsai <moonape1226@gmail.com>
Date: Fri, 9 Nov 2018 21:27:23 +0800
Subject: Modify makefile to add C and LD flags
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 27d3251..4aa5f27 100644
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,12 @@
OUT = delay
OBJ = main.o dtbuf.o time_ms.o
-CFLAGS = -Wall -O3 -g
+CFLAGS += -Wall -O3 -g
release: delay
delay: $(OBJ)
- $(CC) $(CFLAGS) -o $(OUT) $(OBJ)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(OUT) $(OBJ)
$(OBJ): dtbuf.h time_ms.h
From: Kun-Hung Tsai <moonape1226@gmail.com>
Date: Thu, 8 Nov 2018 17:56:33 +0800
Subject: Modify makfile to install binary on /usr/bin
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 6f84648..29f0376 100644
--- a/Makefile
+++ b/Makefile
@@ -26,4 +26,5 @@ clean:
rm -f $(OBJ) $(OUT)
install: release
- install $(OUT) $(DESTDIR)/usr/local/bin
+ mkdir -p $(DESTDIR)/usr/bin
+ install $(OUT) $(DESTDIR)/usr/bin
Modify-makfile-to-install-binary-on-usr-bin.patch
Add-debug-option-in-makefile.patch
Modify-makefile-to-add-C-and-LD-flags.patch
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
Tests: test
Depends: @
#!/bin/sh
# autopkgtest check: Build and run a program against glib, to verify that the
# headers and pkg-config file are installed correctly
# Author: Kun-Hung Tsai (蔡昆宏) <moonape1226@gmail.com>
set -e
echo "run: Test example"
echo $(ls -al)
{ for i in {1..15}; do sleep $(bc <<< "scale=1;$i/10"); echo $i; done } |
tee /dev/stderr | sed -u 's/^/\t/' | delay 1s
echo "run: OK"
Bug-Database: https://github.com/rom1v/delay/issues
Bug-Submit: https://github.com/rom1v/delay/issues/new
Name: delay
Repository: https://github.com/rom1v/delay.git
Repository-Browse: https://github.com/rom1v/delay
version=4
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%<project>-$1.tar.gz%" \
https://github.com/rom1v/delay/releases \
(?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate