From 374252a55c14f92aaed73b3917ed783bf2762911 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 26 Dec 2020 03:23:39 +0300 Subject: docs: update --- ...diting-the-build-file-during-pre_002dbuild.html | 93 ---------------------- 1 file changed, 93 deletions(-) delete mode 100644 src/docs/Editing-the-build-file-during-pre_002dbuild.html (limited to 'src/docs/Editing-the-build-file-during-pre_002dbuild.html') diff --git a/src/docs/Editing-the-build-file-during-pre_002dbuild.html b/src/docs/Editing-the-build-file-during-pre_002dbuild.html deleted file mode 100644 index 7955ddb..0000000 --- a/src/docs/Editing-the-build-file-during-pre_002dbuild.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - -Editing the build file during pre-build (Carbs Linux User Manual) - - - - - - - - - - - - - - - - - -
-

-Up: Hooks   [Contents]

-
-
-

2.3.1 Editing the build file during pre-build

- -

You can edit the build file during pre-build. The file is copied from the -repository to the build directory named as .build.cpt. You can use -sed or any other tool to edit the build file. After the build is -complete, a diff file will be placed to the package database named as -build.diff. Here is an example build file manipulation during the -pre-build hook. -

-
-
cat <<EOF> .build.cpt
-#!/bin/sh -e
-
-for patch in bash50-0??; do
-    patch -p0 < "\$patch"
-done
-
-export LDFLAGS=-static
-
-./configure \
-    --prefix=/usr \
-    --without-bash-malloc \
-    --disable-nls
-
-export MAKEFLAGS="TERMCAP_LIB=/usr/lib/libncursesw.a $MAKEFLAGS"
-
-make
-make DESTDIR="\$1" install
-
-ln -s bash "\$1/usr/bin/sh"
-EOF
-
- - - - - - - - -- cgit v1.2.3