Browse Source

some cleanup

master
Von Random 3 years ago
parent
commit
77f186c3c6
  1. 1
      .gitignore
  2. 7
      makest.sh
  3. 17
      st-config-mk.patch
  4. 11
      st-fix-argv.patch

1
.gitignore

@ -0,0 +1 @@
st/

7
makest.sh

@ -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 $*

17
st-config-mk.patch

@ -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

11
st-fix-argv.patch

@ -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--;\
Loading…
Cancel
Save