Compare commits
No commits in common. "main" and "v1.4" have entirely different histories.
7 changed files with 10 additions and 48 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,4 +1,2 @@
|
||||||
lolcat.o
|
lolcat.o
|
||||||
censor.o
|
censor.o
|
||||||
lolcat
|
|
||||||
censor
|
|
||||||
|
|
|
||||||
10
Makefile
10
Makefile
|
|
@ -3,7 +3,7 @@ CC ?= gcc
|
||||||
CFLAGS ?= -std=c11 -Wall -Wextra -O3 -Wno-sign-compare
|
CFLAGS ?= -std=c11 -Wall -Wextra -O3 -Wno-sign-compare
|
||||||
LIBS := -lm
|
LIBS := -lm
|
||||||
|
|
||||||
PREFIX ?= /usr/local
|
DESTDIR ?= /usr/local/bin
|
||||||
|
|
||||||
all: lolcat censor
|
all: lolcat censor
|
||||||
|
|
||||||
|
|
@ -16,14 +16,14 @@ xterm256lut.h: xterm256lut_gen.py
|
||||||
python $< > $@
|
python $< > $@
|
||||||
|
|
||||||
lolcat: lolcat.c xterm256lut.h
|
lolcat: lolcat.c xterm256lut.h
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
|
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
|
||||||
|
|
||||||
censor: censor.c
|
censor: censor.c
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
|
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
|
||||||
|
|
||||||
install: lolcat censor
|
install: lolcat censor
|
||||||
install lolcat $(DESTDIR)$(PREFIX)/bin/lolcat
|
install lolcat $(DESTDIR)/lolcat
|
||||||
install censor $(DESTDIR)$(PREFIX)/bin/censor
|
install censor $(DESTDIR)/censor
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f lolcat censor
|
rm -f lolcat censor
|
||||||
|
|
|
||||||
2
PKGBUILD
2
PKGBUILD
|
|
@ -1,7 +1,7 @@
|
||||||
# Maintainer: Ricardo (XenGi) Band <email@ricardo.band>
|
# Maintainer: Ricardo (XenGi) Band <email@ricardo.band>
|
||||||
|
|
||||||
pkgname=c-lolcat
|
pkgname=c-lolcat
|
||||||
pkgver=v1.5
|
pkgver=v1.3
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="High-performance implementation of lolcat"
|
pkgdesc="High-performance implementation of lolcat"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
# What?
|
# What?
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Screenshot
|
## Screenshot
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
@ -44,8 +44,6 @@ $ make lolcat
|
||||||
|
|
||||||
### Others
|
### Others
|
||||||
|
|
||||||
Note: Debian users may need the `python-is-python3` package.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ make && sudo make install
|
$ make && sudo make install
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.69])
|
AC_PREREQ([2.69])
|
||||||
AC_INIT([lolcat], [1.5], [jaseg <github@jaseg.de>])
|
AC_INIT([lolcat], [1.3], [jaseg <github@jaseg.de>])
|
||||||
AC_CONFIG_SRCDIR([../lolcat.c])
|
AC_CONFIG_SRCDIR([../lolcat.c])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_AUX_DIR([autoscripts])
|
AC_CONFIG_AUX_DIR([autoscripts])
|
||||||
|
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
|
||||||
echo "do_release.sh must be called with a version number as its first argument."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$(git status --porcelain|grep -v '^??')" ]; then
|
|
||||||
echo "do_release.sh must be called from a clean working directory."
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
VER="$1"
|
|
||||||
|
|
||||||
if echo "$VER" | grep -v '^[0-9]\+\.[0-9]\+$'; then
|
|
||||||
echo "do_release.sh must be called with a version number formatted like "1.23" as its first argument, with no leading \"v\"."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Updating files for version v$VER"
|
|
||||||
|
|
||||||
sed -i "/L\"lolcat version [0-9.]\+, (c) [0-9]\+ jaseg\\\\n\"/s/version [0-9.]\+/version $VER/" lolcat.c
|
|
||||||
sed -i "s/^pkgver=v[0-9.]\+/pkgver=v$VER/" PKGBUILD
|
|
||||||
sed -i "/^AC_INIT/s/\[[0-9.]\+\]/[$VER]/" autotools/configure.ac
|
|
||||||
git add lolcat.c PKGBUILD autotools/configure.ac
|
|
||||||
git commit -m 'Bump version to v$VER'
|
|
||||||
git tag "v$VER"
|
|
||||||
echo "Success."
|
|
||||||
|
|
||||||
5
lolcat.c
5
lolcat.c
|
|
@ -180,7 +180,7 @@ static void usage(void)
|
||||||
|
|
||||||
static void version(void)
|
static void version(void)
|
||||||
{
|
{
|
||||||
wprintf(L"lolcat version 1.5, (c) 2024 jaseg\n");
|
wprintf(L"lolcat version 1.4, (c) 2023 jaseg\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -390,11 +390,8 @@ int main(int argc, char** argv)
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
l++;
|
l++;
|
||||||
i = 0;
|
i = 0;
|
||||||
cc = -1;
|
|
||||||
if (invert) {
|
if (invert) {
|
||||||
wprintf(L"\033[49m");
|
wprintf(L"\033[49m");
|
||||||
} else {
|
|
||||||
wprintf(L"\033[0m");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue