<?xml version="1.0" encoding="UTF-8"?>
<doc>
	<back to="packages"/>
	<title>ask</title>
	<section>
	
		<description>
			<para>
				This scpript asks you if you want to install the designated packages and continues if you type y, Y, yes, Yes or YES. Oherwise it terminates paludis.
			</para>
		</description>
		<author>zxy, truc</author>
		<dependencies>
				<item>
					<link href="paludis-wrapper.xml" text="app-paludis/paludis-wrapper" />
				</item>
		</dependencies>
		<title>Installation</title>
		<section>
			<para>
				There are two scripts. One is a hook script, and the other is a _paludis_wrapper. The hook script goes to the <emph>.../hooks/common</emph> folder and is then symlinked to the right hook/ subfolder (see the exact locations below). The wrapper script goes to the <emph>/usr/bin/</emph> folder.
			</para>
			<para>
				You just have to make an alias:
			</para>
			<code>alias paludis="/usr/bin/_paludis_wrapper.bash"</code>
			<para>
				Now you can use paludis with a new option -a or - -ask
			</para>
		
			<code title="Example">paludis -i -a openoffice
paludis -ia openoffice
paludis -i --ask openoffice</code>
	
			<para>
				If you do not like the defauls settings for the hook, you can configure it in the
			</para>
			<location title="configuration file">
				<item>/etc/paludis/hooks/config/paludis-ask.conf</item>
			</location>
			<location title="hook script">
				<item>/usr/share/paludis/hooks/common/paludis-ask.bash</item>
			</location>
			<location title="symlinks">
				<item>install_all_pre</item>
				<item>uninstall_all_pre</item>
				<item>fetch_all_pre</item>
			</location>
			<location title="wrapper script">
				<item>/usr/bin/_paludis_wrapper.bash</item>
			</location>
		</section>
		<sources title="scripts">
			<item href="files/paludis-ask.bash">hook script</item>
			<item href="files/_paludis_wrapper.bash">wrapper script</item>
			<item href="files/paludis-ask.conf">sample configuration file</item>
		</sources>
	
	</section>
</doc>
