Browse Source

some cleanup

master
Von Random 9 months ago
parent
commit
77f186c3c6
4 changed files with 5 additions and 31 deletions
  1. 1
    0
      .gitignore
  2. 4
    3
      makest.sh
  3. 0
    17
      st-config-mk.patch
  4. 0
    11
      st-fix-argv.patch

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
st/

+ 4
- 3
makest.sh 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 $*

+ 0
- 17
st-config-mk.patch 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

+ 0
- 11
st-fix-argv.patch 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--;\

Loading…
Cancel
Save