initial git commit

parents
#!/bin/bash
export xVERSION=7.10
CODENAME="The Nature Of Our Mind"
ERR_MSG=""
EARGS=""
export OLDPATH=$PATH
export PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
source $PWD/.configure/color
section_message () {
case $1 in
Required )
echo -e "\n${BLUE}Checking ${ORANGE}Required ${BLUE}$2:\n"
;;
Optional )
echo -e "\n${BLUE}Checking ${CREAM}Optional ${BLUE}$2:\n"
;;
esac
tput sgr0
}
start_message () {
echo -e "\n${GREEN}BashStyle-NG${YELLOW} v${xVERSION} ${CYAN}${CODENAME}"
tput sgr0
}
ok_message () {
if [[ $2 != "" ]]; then
echo -e "${WHITE}Checking for ${CYAN}$1${MAGENTA} >${GREEN} O.K.${SILVER} ( $2 )"
else echo -e "${WHITE}Checking for ${CYAN}$1${MAGENTA} >${GREEN} O.K."
fi
tput sgr0
}
fail_message () {
if [[ $1 == "m" ]]; then
echo -e "${WHITE}Checking for ${CYAN}$2${MAGENTA} >${RED} !MISSING!"
elif [[ $1 == "o" ]]; then
echo -e "${WHITE}Checking for ${CYAN}$2${MAGENTA} >${RED} !OLDER THAN $3!"
fi
tput sgr0
}
warn_message () {
echo -e "${WHITE}Checking for ${CYAN}$1${MAGENTA} >${YELLOW} Not Available"
tput sgr0
}
maintainer_message () {
echo -e "\n${RED}Maintainer Mode ${WHITE}/ ${GREEN}Disabled Checks\n"
tput sgr0
}
end_message () {
echo -e "\n${YELLOW}Installation Prefix:${WHITE} $PREFIX\n"
if [[ $ERR_MSG != "" ]]; then
echo -e "${YELLOW}Notes:\
\n${WHITE}${ERR_MSG}\n"
fi
tput sgr0
}
#!/bin/bash
check_apps () {
SECTION=$1
CHKS_COUNTER=$(grep -w ${SECTION}[0-9]* .configure/depends | wc -l)
DONE_COUNTER=1
section_message $2 $3
while (( $DONE_COUNTER <= $CHKS_COUNTER )); do
DEPENDENCY=$(grep -w ${SECTION}${DONE_COUNTER} .configure/depends | gawk '{print $2}')
which $DEPENDENCY &>/dev/null
DEP_RETURN=$?
if [[ $DEP_RETURN == 0 ]]; then
ok_message $DEPENDENCY
elif [[ $DEP_RETURN != 0 && $SECTION == OPT* ]]; then
warn_message $DEPENDENCY
ERR_MSG+=$(grep -w ${SECTION}${DONE_COUNTER} .configure/depends | \
gawk -F _ '{ for (x=3; x <= NF; x++) { print $x; } }')
else fail_message m $DEPENDENCY
exit 1
fi
DONE_COUNTER=$(($DONE_COUNTER+1)); done
}
check_libs () {
SECTION=$1
CHKS_COUNTER=$(grep -w ${SECTION}[0-9]* .configure/depends | wc -l)
DONE_COUNTER=1
section_message $2 $3
while (( $DONE_COUNTER <= $CHKS_COUNTER )); do
DEPENDENCY=$(grep -w ${SECTION}${DONE_COUNTER} .configure/depends | gawk '{print $2}')
VERSION=$(grep -w ${SECTION}${DONE_COUNTER} .configure/depends | gawk '{print $3}')
PC_FILE=$(grep -w ${SECTION}${DONE_COUNTER} .configure/depends | gawk '{print $4}')
pkg-config --exists $PC_FILE &>/dev/null
EXIST_RETURN=$?
pkg-config --atleast-version=$VERSION $PC_FILE &>/dev/null
DEP_RETURN=$?
if [[ $EXIST_RETURN != 0 && ! $SECTION == OPT* ]]; then
fail_message m $DEPENDENCY
exit 1
elif [[ $DEP_RETURN == 0 ]]; then
ok_message $DEPENDENCY ${VERSION}+
elif [[ $EXIST_RETURN != 0 && $SECTION == OPT* ]]; then
warn_message $DEPENDENCY
ERR_MSG+=$(grep -w ${SECTION}${DONE_COUNTER} .configure/depends | \
gawk -F _ '{ for (x=3; x <= NF; x++) { print $x; } }')
else fail_message o $DEPENDENCY $VERSION
exit 1
fi
DONE_COUNTER=$(($DONE_COUNTER+1)); done
}
check_pymods () {
SECTION=$1
CHKS_COUNTER=$(grep -w ${SECTION}[0-9]* .configure/depends | wc -l)
DONE_COUNTER=1
section_message $2 $3
while (( $DONE_COUNTER <= $CHKS_COUNTER )); do
DEPENDENCY=$(grep -w ${SECTION}${DONE_COUNTER} .configure/depends | gawk '{print $2}')
python -c "import $DEPENDENCY" &>/dev/null
DEP_RETURN=$?
if [[ $DEP_RETURN == 0 ]]; then
ok_message $DEPENDENCY
elif [[ $DEP_RETURN != 0 && $SECTION == OPT* ]]; then
warn_message $DEPENDENCY
ERR_MSG+=$(grep -w ${SECTION}${DONE_COUNTER} .configure/depends | \
gawk -F _ '{ for (x=3; x <= NF; x++) { print $x; } }')
else fail_message m $DEPENDENCY
exit 1
fi
DONE_COUNTER=$(($DONE_COUNTER+1)); done
}
#!/bin/bash
GREEN="\033[01;32m"
RED="\033[01;31m"
WHITE="\033[01;37m"
YELLOW="\033[01;33m"
CYAN="\033[01;36m"
BLUE="\033[01;34m"
MAGENTA="\033[01;35m"
if [[ $TERM != *xterm* ]]; then
SMOOTHBLUE=$BLUE
ORANGE=$YELLOW
CREAM=$MAGENTA
SILVER=$WHITE
else
SMOOTHBLUE="\033[01;38;5;111m"
ORANGE="\033[01;38;5;714m"
CREAM="\033[01;38;5;5344m"
SILVER="\033[01;38;5;761m"
fi
APP1 bash
APP2 gawk
APP3 grep
APP4 sed
APP5 python
APP6 bc
APP7 less
APP8 msgfmt
OPT_APP1 apm _* The optional apm coulnd't be found. `showbatteryload --apm' won't work\n
OPT_APP2 acpi _* The optional acpi couldn't be found. `showbatteryload --acpi' won't work\n
OPT_APP3 lspci _* The optional lspci couldn't be found. `systeminfos --pci' won't work\n
OPT_APP4 lsusb _* The optional lsusb couldn't be found. `systeminfos --usb' won't work\n
OPT_APP5 ps2pdf _* The optional ps2pdf couldn't be found. `man2pdf' won't work\n
OPT_SBINAPP1 dmidecode _* The optional dmidecode couldn't be found. `systeminfos --bios' won't work\n
LIB1 gtk+ 2.12 gtk+-2.0
LIB2 gconf 2.14 gconf-2.0
PYMOD1 ctypes
PYMOD2 gettext
PYMOD3 gtk
PYMOD4 gconf
PYMOD5 shutil
PYMOD6 vte
#!/bin/bash
display_help () {
echo -e "\n${GREEN}BashStyle-NG ${YELLOW}(configure) ${CYAN}help"
echo -e "\n${WHITE}Options:\n"
echo -e "\n${ORANGE}--help${WHITE} |${GREEN} Display this help message\
\n${ORANGE}--mm${WHITE} |${GREEN} Enter Maintainer Mode (disable checks)\
\n${ORANGE}--prefix=${WHITE} |${GREEN} Change Installation Prefix (default /usr)" | column -t
echo ""
tput sgr0
}
#!/bin/bash
IN_FILES="Makefile rc/nx-rc code/bsng.py data/bashstyle data/bashstyle-ng.pc"
copy_in_files () {
for in_file in $IN_FILES; do
cp ${in_file}.in ${in_file};
done
}
substitute_values () {
# substitute VERSION
sed -e "s>@VERSION@>$xVERSION>g" -i data/bashstyle-ng.pc code/bsng.py rc/nx-rc
# substitute PREFIX
sed -e "s>@PREFIX@>$PREFIX>g" -i Makefile data/bashstyle-ng.pc code/bsng.py\
data/bashstyle rc/nx-rc
}
Christopher Roy Bratušek <zanghar@freenet.de> (http://www.nanolx.org)
This diff is collapsed.
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
COPYING.ICONS
\ No newline at end of file
- Giles Orr (for inspiration and the Bash HowTo)
- The BashPromptTheme People (for inspiration)
- Oxygen Icon Devs (for some icons)
- Everaldo (for some icons)
- Yegappan Lakshmanan (for vim.plugin.taglist)
- Marty Grenfell (for vim.plugin.nerd_tree)
- Marius Groleo (for vim.plugin.tabbar)
- Florian Heinle (for undobuffer pymod)
This diff is collapsed.
How to install BashStyle-NG
I. Check the dependencies:
./configure
(see documentation/chapter00.html for more infos)
II. Compile the terminfo files:
make
III. Install BashStyle-NG:
sudo make install -or- su -c "make install"
Happy Hacking!
GREEN="\\033[1\;32m"
RED="\\033[1\;31m"
WHITE="\\033[01\;37m"
YELLOW="\\033[01\;33m"
CYAN="\\033[01\;36m"
BLUE="\\033[01\;34m"
MAGENTA="\\033[01\;35m"
ifneq "$(TERM)" "xterm"
SMOOTHBLUE=$(BLUE)
else
SMOOTHBLUE="\\033[01\;38\;5\;111m"
endif
EARGS=""
all: mo
@echo$(EARGS) "$(MAGENTA)compiling: $(SMOOTHBLUE)terminfo files: $(CYAN)mostlike bold nebula"
@tic $(PWD)/data/terminfo/mostlike.terminfo -o $(PWD)/data/terminfo/
@tic $(PWD)/data/terminfo/bold.terminfo -o $(PWD)/data/terminfo/
@tic $(PWD)/data/terminfo/nebula.terminfo -o $(PWD)/data/terminfo/
@tput sgr0
pot:
@echo$(EARGS) "$(MAGENTA)recreating: $(SMOOTHBLUE)pot file"
@intltool-extract --type=gettext/glade data/bashstyle7.ui
@xgettext --language=Python --keyword=_ --keyword=N_ --output=translations/pot/bs-ng.pot \
$(PWD)/code/bsng.py.in $(PWD)/data/bashstyle7.ui.h
@tput sgr0
po:
@echo$(EARGS) "$(MAGENTA)updating: $(SMOOTHBLUE)po files: $(CYAN)de it ru"
@msgmerge -o translations/po/bs-ng-de.po translations/po/bs-ng-de.po translations/pot/bs-ng.pot
@msgmerge -o translations/po/bs-ng-it.po translations/po/bs-ng-it.po translations/pot/bs-ng.pot
@msgmerge -o translations/po/bs-ng-ru.po translations/po/bs-ng-ru.po translations/pot/bs-ng.pot
@tput sgr0
mo:
@echo$(EARGS) "$(MAGENTA)creating: $(SMOOTHBLUE)translations: $(CYAN)de it ru"
@msgfmt --output-file=translations/mo/bs-ng-de.mo translations/po/bs-ng-de.po
@msgfmt --output-file=translations/mo/bs-ng-it.mo translations/po/bs-ng-it.po
@msgfmt --output-file=translations/mo/bs-ng-ru.mo translations/po/bs-ng-ru.po
@tput sgr0
distclean: clean
clean:
@echo$(EARGS) "$(SMOOTHBLUE)cleaning up: $(CYAN)everything"
@rm -f data/bashstyle
@rm -f code/bs-ng
@rm -f rc/nx-rc
@rm -f Makefile
@rm -f data/bashstyle-ng.pc
@rm -f data/bashstyle7.ui.h
@rm -f translations/pot/bs-ng.pot
@rm -f translations/mo/bs-ng-de.mo
@rm -f translations/mo/bs-ng-it.mo
@rm -f translations/mo/bs-ng-ru.mo
@rm -f data/terminfo/m/mostlike
@rm -f data/terminfo/n/nebula
@rm -f data/terminfo/b/bold
@tput sgr0
install:
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) directories"
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/data/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/rc/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/rc/settings/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/rc/styles/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/rc/functions/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/system/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/terminfo/b/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/terminfo/m/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/terminfo/n/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/code/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/vim/colors/
@mkdir -p $(DESTDIR)@PREFIX@/share/bashstyle-ng/vim/plugin/
@mkdir -p $(DESTDIR)@PREFIX@/share/applications/
@mkdir -p $(DESTDIR)@PREFIX@/bin/
@mkdir -p $(DESTDIR)@PREFIX@/share/locale/de/LC_MESSAGES/
@mkdir -p $(DESTDIR)@PREFIX@/share/locale/it/LC_MESSAGES/
@mkdir -p $(DESTDIR)@PREFIX@/share/locale/ru/LC_MESSAGES/
@mkdir -p $(DESTDIR)@PREFIX@/share/doc/bashstyle-ng/
@mkdir -p $(DESTDIR)@PREFIX@/share/gconf/schemas
@mkdir -p $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/
@mkdir -p $(DESTDIR)/usr/lib/pkgconfig/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) bashstyle-ng"
@install -m644 code/*[!.in] $(DESTDIR)@PREFIX@/share/bashstyle-ng/code/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) terminfos"
@install -m644 data/terminfo/b/* $(DESTDIR)@PREFIX@/share/bashstyle-ng/terminfo/b/
@install -m644 data/terminfo/m/* $(DESTDIR)@PREFIX@/share/bashstyle-ng/terminfo/m/
@install -m644 data/terminfo/n/* $(DESTDIR)@PREFIX@/share/bashstyle-ng/terminfo/n/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) gtkbuilder file"
@install -m644 data/bashstyle7.ui $(DESTDIR)@PREFIX@/share/bashstyle-ng/data/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) vim color schemes"
@install -m755 data/vim/colors/*.vim $(DESTDIR)@PREFIX@/share/bashstyle-ng/vim/colors/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) vim plugins"
@install -m755 data/vim/plugin/*.vim $(DESTDIR)@PREFIX@/share/bashstyle-ng/vim/plugin/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) icons"
@install -m644 data/icons/*.png $(DESTDIR)/usr/share/icons/hicolor/32x32/apps/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) nx-rc"
@install -m755 rc/nx-rc $(DESTDIR)@PREFIX@/share/bashstyle-ng/rc/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) start-script"
@install -m755 data/bashstyle $(DESTDIR)@PREFIX@/bin/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) scriptchain"
@install -m755 scripts/*[!.in] $(DESTDIR)@PREFIX@/bin/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) desktop file"
@install -m644 data/bs-ng.desktop $(DESTDIR)@PREFIX@/share/applications/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) documentation"
@cp -r documentation/* $(DESTDIR)/@PREFIX@/share/doc/bashstyle-ng/
@chmod -R 755 $(DESTDIR)/@PREFIX@/share/doc/bashstyle-ng/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) settings rc"
@install -m755 rc/settings/*[!.in] $(DESTDIR)@PREFIX@/share/bashstyle-ng/rc/settings/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) styles"
@install -m755 rc/styles/* $(DESTDIR)@PREFIX@/share/bashstyle-ng/rc/styles/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) functions"
@install -m755 rc/functions/* $(DESTDIR)@PREFIX@/share/bashstyle-ng/rc/functions/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) pc file"
@install -m644 data/bashstyle-ng.pc $(DESTDIR)/usr/lib/pkgconfig/
@echo$(EARGS) "$(GREEN)installing:$(YELLOW) gconf schemas"
@install -m644 data/deprecated.schemas $(DESTDIR)@PREFIX@/share/gconf/schemas/bashstyle-deprecated.schemas
@install -m644 data/bashstyle.schemas $(DESTDIR)@PREFIX@/share/gconf/schemas/
@if test ! $(RC_DISABLE) ; then \
echo$(EARGS) "$(GREEN)re-adjusting:$(YELLOW) bashrc entries" ; \
for file in $$(ls /home/*/.bashrc); do \
if [ "x$$(grep nx-rc $$file)" != "x" ] ; then \
sed -e '/nx-rc/d' -i $$file; \
echo "source @PREFIX@/share/bashstyle-ng/rc/nx-rc" >> $$file; \
fi; \
done; \
fi
@echo$(EARGS) "$(GREEN)installing:$(CYAN) translations:$(BLUE) de it ru"
@install -m644 translations/mo/bs-ng-de.mo $(DESTDIR)/usr/share/locale/de/LC_MESSAGES/bashstyle-ng.mo
@install -m644 translations/mo/bs-ng-it.mo $(DESTDIR)/usr/share/locale/it/LC_MESSAGES/bashstyle-ng.mo
@install -m644 translations/mo/bs-ng-ru.mo $(DESTDIR)/usr/share/locale/ru/LC_MESSAGES/bashstyle-ng.mo
@if test ! $(GCONF_DISABLE) ; then \
echo$(EARGS) "$(MAGENTA)deregistering: $(SMOOTHBLUE)deprecated gconf schemas" ; \
GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults \
gconftool-2 --makefile-uninstall-rule data/deprecated.schemas >/dev/null ; \
fi
@if test ! $(GCONF_DISABLE) ; then \
echo$(EARGS) "$(MAGENTA)registering: $(SMOOTHBLUE)gconf schemas" ; \
GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults \
gconftool-2 --makefile-install-rule data/bashstyle.schemas >/dev/null ; \
fi
@if test ! $(CACHE_DISABLE) ; then \
echo$(EARGS) "$(MAGENTA)updating: $(SMOOTHBLUE)icon cache" ; \
gtk-update-icon-cache -f /usr/share/icons/hicolor >/dev/null ; \
fi
@if test ! $(KILL_DISABLE) ; then \
echo$(EARGS) "$(RED)killing: $(SMOOTHBLUE)gconf daemon" ; \
killall -qw gconfd-2 >/dev/null || exit 0; \
fi
@tput sgr0
uninstall:
@echo$(EARGS) "$(RED)removing:$(CYAN) bashstyle-ng"
@rm -rf @PREFIX@/share/bashstyle-ng
@echo$(EARGS) "$(RED)removing:$(CYAN) support scripts"
@rm -f @PREFIX@/bin/countfiles
@rm -f @PREFIX@/bin/showsize
@rm -f @PREFIX@/bin/showuptime
@rm -f @PREFIX@/bin/showtty
@rm -f @PREFIX@/bin/truncpwd
@rm -f @PREFIX@/bin/bs-ng-profiler
@rm -f @PREFIX@/bin/showload
@rm -f @PREFIX@/bin/countprocesses
@rm -f @PREFIX@/bin/showcpuload
@rm -f @PREFIX@/bin/showbatteryload
@rm -f @PREFIX@/bin/showspace
@rm -f @PREFIX@/bin/showip
@rm -f @PREFIX@/bin/rcgenerator
@rm -f @PREFIX@/bin/bs-ng-echo
@rm -f @PREFIX@/bin/man2pdf
@rm -f @PREFIX@/bin/showmem
@rm -f @PREFIX@/bin/sysinfo
@rm -f @PREFIX@/bin/systeminfos
@echo$(EARGS) "$(RED)removing:$(CYAN) startup script"
@rm -f @PREFIX@/bin/bashstyle
@echo$(EARGS) "$(RED)removing:$(CYAN) desktop file"
@rm -f @PREFIX@/share/applications/bs-ng.desktop
@echo$(EARGS) "$(RED)removing:$(CYAN) translations:$(BLUE) de it"
@rm -f /usr/share/locale/de_DE/LC_MESSAGES/bashstyle-ng.mo
@rm -f /usr/share/locale/de/LC_MESSAGES/bashstyle-ng.mo
@rm -f /usr/share/locale/it_IT/LC_MESSAGES/bashstyle-ng.mo
@rm -f /usr/share/locale/it/LC_MESSAGES/bashstyle-ng.mo
@echo$(EARGS) "$(RED)removing:$(CYAN) gconf schemas"
@rm -f @PREFIX@/share/gconf/schemas/bashstyle-deprecated.schemas
@rm -f @PREFIX@/share/gconf/schemas/bashstyle.schemas
@echo$(EARGS) "$(RED)removing:$(CYAN) icons"
@rm -f /usr/share/icons/hicolor/32x32/apps/bs-ng-*.png
@echo$(EARGS) "$(RED)removing:$(CYAN) documentation"
@rm -rf @PREFIX@/share/doc/bashstyle-ng/
@echo$(EARGS) "$(RED)removing:$(CYAN) bashrc entries"
@sed -e '/nx-rc/d' -i /home/*/.bashrc
@echo$(EARGS) "$(RED)removing:$(CYAN) pc file"
@rm -f /usr/lib/pkgconfig/bashstyle-ng.pc
@if test ! $(GCONF_DISABLE) ; then \
echo$(EARGS) "$(MAGENTA)unregistering: $(SMOOTHBLUE)gconf schemas" ; \
GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults \
gconftool-2 --makefile-uninstall-rule data/bashstyle.schemas >/dev/null ; \
fi
@if test ! $(CACHE_DISABLE) ; then \
echo$(EARGS) "$(MAGENTA)updating: $(SMOOTHBLUE)icon cache" ; \
gtk-update-icon-cache -f /usr/share/icons/hicolor >/dev/null ; \
fi
@if test ! $(KILL_DISABLE) ; then \
echo$(EARGS) "$(RED)killing: $(SMOOTHBLUE)gconf daemon" ; \
killall -qw gconfd-2 >/dev/null || exit 0 ; \
fi
@tput sgr0
BashStyle-NG
=== Introduction ===
BashStyle-NG is a graphical Tool for changing the Bashs behaviour and look’n’feel.
Aswell as Readlines, Nanos and Vims.
It shipps a huge functionchain, that is used by the styles shipped with BS-NG, but can also be used separately.
Since v6.3 you have the opportunity to create your own prompts. For important notes on how to do so, refer
back to the documentation.