some cleanup

This commit is contained in:
Von Random 2018-12-04 16:15:22 +03:00
parent 143bbcc77e
commit 77f186c3c6
4 changed files with 5 additions and 31 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
st/

View file

@ -5,10 +5,11 @@ ST_CFG=$PWD/config.h
PATCHLIST=(
st-boxdraw.patch
st-bright-bold-text.patch
st-config-mk.patch
st-disable-bold-italic-fonts.patch
st-disable-intensity-styles.patch
st-fix-argv.patch
)
MAKE_OPTS=(
PREFIX=$HOME/.local
)
if [[ ! -r $ST_SRC/.git/config ]]; then
@ -27,4 +28,4 @@ for patch in $PATCHLIST; do
patch -p1 -i ../$patch
done
make $*
make $MAKE_OPTS $*

View file

@ -1,17 +0,0 @@
--- a/config.mk
+++ b/config.mk
@@ -4,7 +4,7 @@
# Customize below to fit your system
# paths
-PREFIX = /usr/local
+PREFIX = $(HOME)/.local
MANPREFIX = $(PREFIX)/share/man
X11INC = /usr/X11R6/include
@@ -30,4 +30,4 @@
# `pkg-config --libs freetype2`
# compiler and linker
-# CC = c99
+CC = tcc

View file

@ -1,11 +0,0 @@
--- a/arg.h
+++ b/arg.h
@@ -6,7 +6,7 @@
#ifndef ARG_H__
#define ARG_H__
-extern char *argv0;
+static char *argv0;
/* use main(int argc, char *argv[]) */
#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\