[ale] Bash-fu question

Michael Hirsch mdhirsch at gmail.com
Fri Oct 23 19:25:13 EDT 2009


On Fri, Oct 23, 2009 at 3:49 PM, Doctor Who <whodoctor at gmail.com> wrote:
> I had a script for this that I accidentally deleted today...
>
> This is for claws-mail that I update regularly from CVS.  I have a
> separate plug-ins directory that itself contains a number of
> directories like vcalendar and att_reminder.  I would normally go into
> each of these directories manually and run './autogen.sh && make &&
> sudo make install'  Once it completes I would cd ../next_directory and
> repeat for each plugin I want to install.
>
> The script I had was something like DIRS= vcalendar pdf_viewer
> other_plugin_I_want
>
> Then the script would cycle through each directory and do the
> "./autogen.sh, make, and make install" dance for each.  If there was
> an error at any point (like missing dependency) it would just error
> out at that point.
>
> Can someone help me with the framework/skeleton to get this working?

I think this should work:

for ii in vcalendar pdf_viewer; do
    cd $ii
    ./autogen.sh && make && sudo make install
    cd ..
done

Michael



More information about the Ale mailing list