#!/bin/bash hvbuild() { # For Gnome 2 variables var_add_path "PATH" /etc/profile "/opt/${GNOME2_VER}/bin" var_export "PATH" /etc/profile var_add_path "PKG_CONFIG_PATH" /etc/profile "/opt/${GNOME2_VER}/lib/pkgconfig" var_add_path "PKG_CONFIG_PATH" /etc/profile "/opt/${GNOME2_VER}/share/pkgconfig" var_export "PKG_CONFIG_PATH" /etc/profile var_add_path "LIBGLADE_MODULE_PATH" /etc/profile "${GNOME2_PREFIX}/lib/libglade/2.0" var_export "LIBGLADE_MODULE_PATH" /etc/profile var_add_path "XDG_CONFIG_DIRS" /etc/profile "/etc/gnome/${GNOME2_VER}/xdg" var_export "XDG_CONFIG_DIRS" /etc/profile # For Gnome 1 and 2 common variable var_add_path "GNOME_LIBCONFIG_PATH" /etc/profile "/usr/lib" var_export "GNOME_LIBCONFIG_PATH" /etc/profile string_add "/opt/${GNOME2_VER}/lib" /etc/ld.so.conf var_add_path "MANPATH" /etc/profile "/opt/${GNOME2_VER}/man" var_export "MANPATH" /etc/profile # There is a third mechanism for customizing the search path. If a # `dirlist' file exists in acdir, then that file is assumed to contain a # list of directories, one per line, to be added to the search list. These # directories are searched after all other directories. touch /usr/share/aclocal/dirlist string_add "/opt/${GNOME2_VER}/share/aclocal" /usr/share/aclocal/dirlist cat > /etc/skel/.gtkrc-2.0 << "EOF" gtk-icon-theme-name="Tango" EOF }