#!/bin/sh set -o errexit # First argument of this script is the package name # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} cd ${LFS_TMP}/${1}-build ../${1}/configure \ --prefix=/usr \ --without-sound \ --with-x=no \ --without-dbus \ --with-xpm=no \ --with-jpeg=no \ --with-png=no \ --with-gif=no \ --with-tiff=no \ --without-rsvg \ --libexecdir=/usr/sbin \ --localstatedir=/var make -j ${MAKEJOBS} bootstrap make install cat > /etc/skel/.emacs << "EOF" ;; ~/.emacs ;; Emacs initialization file ;; Do not display a splash screen on startup (setq inhibit-splash-screen t) ;; Pour avoir les accents (set-keyboard-coding-system 'utf-8) ;; Set up the keyboard so the delete key on both the regular keyboard ;; and the keypad delete the character under the cursor and to the right ;; under X, instead of the default, backspace behavior. (global-set-key [delete] 'delete-char) (global-set-key [kp-delete] 'delete-char) ;; Turn on font-lock mode for Emacs (global-font-lock-mode t) ;; Always end a file with a newline (setq require-final-newline t) ;; Stop at the end of the file, not just add lines (setq next-line-add-newlines nil) ;; Replaces tabs in files with spaces (setq-default indent-tabs-mode nil) ;; Makes the compilation buffer always scrolls to follow ;; output as it comes in. (setq compilation-scroll-output t) ;;=========================================================== ;; Key bindings for compiling programs ;;=========================================================== ;; Must add helper function for the make also, otherwise ;; the first definition caused both F3 and F4 to execute "make clean". (defun compile-make-clean () (interactive) ;; can be called from kbd (compile "make clean")) (defun compile-make () (interactive) (compile "make")) (defun checkpatch() (interactive) (compile (concat "checkpatch.pl --no-tree --emacs --strict --file " (buffer-file-name)))) ;; buffer-cycle.el ;; F1: Switch to previous buffers (autoload 'cycle-buffer-prev "buffer-cycle" t) (global-set-key [f1] 'cycle-buffer-prev) ;; F2: Switch to next buffers (autoload 'cycle-buffer-next "buffer-cycle" t) (global-set-key [f2] 'cycle-buffer-next) ;; F4: make clean (global-set-key [f4] 'compile-make-clean) ;; F5: make (global-set-key [f5] 'compile-make) ;; F6: go to next error (global-set-key [f6] 'next-error) ;; F7: comment region (global-set-key [f7] 'comment-region) ;; F8: code indentation (global-set-key [f8] 'indent-region) ;; F9: run checkpatch.pl (global-set-key [f9] 'checkpatch) EOF exit $?