чување 02e7b11eade0d0f4e5619e36ee965922de35f59b
родитељ 1ed89deb279fadcba0fab94618c978ded26a56e1
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Wed, 16 Jun 2021 07:08:26 +0200
Added the manual page, install.do, uninstall.do
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 9, додавања: 113(+), брисања: 0(-)
diff --git a/date.do b/date.do
@@ -0,0 +1,4 @@
+LC_ALL=C date +'%d %b %Y' >$3
+redo-always
+redo-stamp <$3
+
diff --git a/default.do b/default.do
@@ -1,4 +1,14 @@
for f in *.h; do
echo $f
done | xargs redo-ifchange
+if [ -r $1.in ]; then
+ redo-ifchange $1.in version date
+ read VERSION <version
+ read DATE <date
+ sed -e "s/%VERSION%/$VERSION/g" \
+ -e "s/%DATE%/$DATE/g" <$1.in
+else
+ echo "$0: don't know how to build '$1'" >&2
+ exit 99
+fi
diff --git a/default.gz.do b/default.gz.do
@@ -0,0 +1,3 @@
+redo-ifchange $2
+gzip -cf $2 >$3
+
diff --git a/install.do b/install.do
@@ -0,0 +1,9 @@
+redo-ifchange all
+PREFIX=/usr/local
+BINDIR=$PREFIX/bin
+DOCDIR=$PREFIX/share/doc/poe
+MANDIR=$PREFIX/share/man/man1
+install -d $BINDIR $DOCDIR $MANDIR
+install -m 0755 poe $BINDIR
+install -m 0644 poe.1.gz $MANDIR
+
diff --git a/poe.1 b/poe.1
@@ -0,0 +1,36 @@
+'\"
+.\"
+.
+.mso an-ext.tmac
+.
+.TH POE "1" "16 Jun 2021" "poe 0.1-alpha" "General Commands Manual"
+.SH NAME
+poe \- .po file editor
+.
+.SH SYNOPSIS
+.
+.SY poe
+.YS
+.
+.SH COPYRIGHT
+poe Copyright \(co 2021 Strahinya Radich.
+.br
+This program is licensed under GNU GPL v3 or later. See the file
+.I LICENSE
+in the poe repository for details.
+.
+.SH DESCRIPTION
+.B poe
+is a .po (GNU Gettext) file editor with a terminal UI.
+.
+.SH "KNOWN LIMITATIONS"
+.
+.SH BUGS
+.
+.LP
+Bugs can be reported using the ticket tracker at:
+.UR https://\:sr.ht/\:~strahinja/\:poe/\:trackers
+.UE
+
+.\" vim: set filetype=groff:
+
diff --git a/poe.1.in b/poe.1.in
@@ -0,0 +1,36 @@
+'\"
+.\"
+.
+.mso an-ext.tmac
+.
+.TH POE "1" "%DATE%" "poe %VERSION%" "General Commands Manual"
+.SH NAME
+poe \- .po file editor
+.
+.SH SYNOPSIS
+.
+.SY poe
+.YS
+.
+.SH COPYRIGHT
+poe Copyright \(co 2021 Strahinya Radich.
+.br
+This program is licensed under GNU GPL v3 or later. See the file
+.I LICENSE
+in the poe repository for details.
+.
+.SH DESCRIPTION
+.B poe
+is a .po (GNU Gettext) file editor with a terminal UI.
+.
+.SH "KNOWN LIMITATIONS"
+.
+.SH BUGS
+.
+.LP
+Bugs can be reported using the ticket tracker at:
+.UR https://\:sr.ht/\:~strahinja/\:poe/\:trackers
+.UE
+
+.\" vim: set filetype=groff:
+
diff --git a/poe.do b/poe.do
@@ -1,5 +1,6 @@
for f in *.c; do
echo $f
done | xargs redo-ifchange
+redo-ifchange poe.1.gz
gcc -g -Wall -std=c99 -o $3 po.o poe.o draw.o termbox.o utf8.o util.o
diff --git a/uninstall.do b/uninstall.do
@@ -0,0 +1,7 @@
+redo-always
+PREFIX=/usr/local
+BINDIR=$PREFIX/bin
+DOCDIR=$PREFIX/share/doc/poe
+MANDIR=$PREFIX/share/man/man1
+rm -f $BINDIR/poe $MANDIR/poe.1.gz
+
diff --git a/version.do b/version.do
@@ -0,0 +1,7 @@
+if ! git describe >$3; then
+ echo "$0: can't call git describe, falling back to 'unknown'" >&2
+ echo 'unknown' >$3
+fi
+redo-always
+redo-stamp <$3
+