Commit c76d9040 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all: bash.profile locale.conf inputrc
tar xf bash-4.4.18.tar.gz
cd bash-4.4.18 && ./configure --build=$(CLFS_TARGET) --prefix=/usr --docdir=/usr/share/doc/bash-4.4.18 --without-bash-malloc --with-installed-readline
$(MAKE) -C bash-4.4.18
if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \
cd bash-4.4.18 ; \
chown -Rv nobody . ; \
su nobody -s /bin/bash -c "PATH=$$PATH make tests" ; \
fi
$(MAKE) -C bash-4.4.18 install
mv -vf /usr/bin/bash /bin
mkdir /etc/bash_completion.d
@echo "$$BASHPROFILE" > /etc/profile
@echo "$$LOCALECONF" > /etc/locale.conf
@echo "$$INPUTRC" > /etc/inputrc
rm -rf bash-4.4.18
bash.profile:
define BASHPROFILE
# Begin /etc/profile
source /etc/locale.conf
for f in /etc/bash_completion.d/*
do
if [ -e $${f} ]; then source $${f}; fi
done
unset f
export INPUTRC=/etc/inputrc
# End /etc/profile
endef
export BASHPROFILE
locale.conf:
define LOCALECONF
# Begin /etc/locale.conf
LANG=$(SYSTEM_LOCALE)
# End /etc/locale.conf
endef
export LOCALECONF
inputrc:
define INPUTRC
# Begin /etc/inputrc
# Modified by Chris Lynn <roryo@roryo.dynup.net>
# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off
# Enable 8bit input
set meta-flag On
set input-meta On
# Turns off 8th bit stripping
set convert-meta Off
# Keep the 8th bit for display
set output-meta On
# none, visible or audible
set bell-style none
# All of the following map the escape sequence of the
# value contained inside the 1st argument to the
# readline specific functions
"\eOd": backward-word
"\eOc": forward-word
# for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for Konsole
"\e[H": beginning-of-line
"\e[F": end-of-line
# End /etc/inputrc
endef
export INPUTRC
bin
/bin/.*
/usr/bin/.*
headers
/usr/include/.*
locale
/usr/share/locale/.*
doc
/usr/share/doc/.*
info
/usr/share/info/.*
man
/usr/share/man/.*
pkg
/usr/lib/pkgconfig/.*
lib
/usr/lib/bash/.*
etc
/etc/.*
<project name="bash">
<target name="temporary-bash">
<property name="makedir" value="${builddir}/bash-4.4.18"/>
<exec executable="tar" failonerror="true">
<arg line="xf packages/bash/bash-4.4.18.tar.gz -C ${builddir}"/>
</exec>
<echo file="${makedir}/config.cache">ac_cv_func_mmap_fixed_mapped=yes
ac_cv_func_strcoll_works=yes
ac_cv_func_working_mktime=yes
bash_cv_func_sigsetjmp=present
bash_cv_getcwd_malloc=yes
bash_cv_job_control_missing=present
bash_cv_printf_a_format=yes
bash_cv_sys_named_pipes=present
bash_cv_ulimit_maxfds=yes
bash_cv_under_sys_siglist=yes
bash_cv_unusable_rtsigs=no
gt_cv_int_divbyzero_sigfpe=yes
</echo>
<exec executable="./configure" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
<arg line="--prefix=${sysrootdir}/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --without-bash-malloc --cache-file=config.cache"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
<arg line="install"/>
</exec>
<delete dir="${makedir}"/>
</target>
</project>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment