add post_install/pre_remove to make

NEWS/INSTALL updated
parent 22532a49
......@@ -32,7 +32,7 @@ gconfd_kill () {
post_install () {
if [[ ! $DISABLE_POSTINSTALL ]]; then
register_schemas --install
update_cache
gconfd_kill
......@@ -41,7 +41,7 @@ post_install () {
}
post_remove () {
pre_remove () {
if [[ ! $DISABLE_POSTREMOVE ]]; then
......
......@@ -6,13 +6,21 @@ I. Check the dependencies:
(see documentation/chapter00.html for more infos)
II. Compile the terminfo files:
II. Generate the terminfo/translation files:
make
./make build
III. Install BashStyle-NG:
sudo make install -or- su -c "make install"
sudo ./make install
-or-
su -c "./make install"
IV. Uninstall BashStyle-NG:
sudo ./make remove
-or-
su -c "./make remove"
Happy Hacking!
......
Overview of changes in v7.12 "Planetary Collapse"
!!! IMPORTANT NOTE !!!
!!! IMPORTANT NOTE #1 !!!
This version of BS-NG installs wrappers for cp, mv and rm, which
honour the NoCopy, NoMove and NoDelete .dirinfo-flags (see below).
To disable them, pass --dirinfo-disable to configure!
!!! IMPORTANT NOTE #2 !!!
We do now have a custom make system. See INSTALL.
=== Bugfixes ===
* #105 (unmark): properly unalias the bookmark
* #106 (bookmark): don't create a bookmark when no name is given
......@@ -41,6 +44,7 @@ To disable them, pass --dirinfo-disable to configure!
* improved checking for python modules
* majorly revised the configure script
* added custom build system
=== Added Features ===
* dbg_log (internal)
......
#!/bin/bash
source $PWD/.configure/results
MODULES=( adjust build clean color files help i18n install installdirs )
for mod in ${MODULES[@]}; do
source $PWD/.make/$mod
done
if [[ ! -e $PWD/.configure/results ]]; then
echo -e "\n${RED}You need to run configure first!\n"
exit 1
fi
if [[ $1 == *destdir* ]]; then
export DESTDIR=${1/*=}
shift
fi
case $1 in
pot ) generate_pot ;;
po ) update_po;;
build ) build && touch .make/build_done;;
clean ) clean ;;
distclean ) distclean ;;
export ) git_export $HOME/Desktop/bashstyle-ng-$2 ;;
install ) if [[ -e $PWD/.make/build_done ]]; then
installdirs_create && install_bsng && post_install
else echo -e "\n${RED}You need to run ./make all first!\n"
fi ;;
remove ) pre_remove && remove_bsng && installdirs_remove ;;
changelog ) $PWD/.make/changelog ;;
* ) help_message ;;
esac
unset DESTDIR
tput sgr0
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