Browse Source

some cleanup

master
Von Random 7 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 @@
1
+st/

+ 4
- 3
makest.sh View File

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

+ 0
- 17
st-config-mk.patch View File

@@ -1,17 +0,0 @@
1
---- a/config.mk
2
-+++ b/config.mk
3
-@@ -4,7 +4,7 @@
4
- # Customize below to fit your system
5
- 
6
- # paths
7
--PREFIX = /usr/local
8
-+PREFIX = $(HOME)/.local
9
- MANPREFIX = $(PREFIX)/share/man
10
- 
11
- X11INC = /usr/X11R6/include
12
-@@ -30,4 +30,4 @@
13
- #       `pkg-config --libs freetype2`
14
- 
15
- # compiler and linker
16
--# CC = c99
17
-+CC = tcc

+ 0
- 11
st-fix-argv.patch View File

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

Loading…
Cancel
Save