[Frugalware-git] fw32: fw32.c: add FW32_DIRS from shell implementation

Michel Hermier hermier at frugalware.org
Wed Nov 2 10:51:22 CET 2011


FW32_ROOT should be a macro defined by configure, and defaulted as
something like: LIBPREFIX"/fw32".
Another thing, can this variable be overwritted by an env variable ? would
make sense for some system I think.

> Git-Url:
> http://git.frugalware.org/gitweb/gitweb.cgi?p=fw32.git;a=commitdiff;h=dd3e9841f31fa274b9a97d3eae8da5bce636bd32
>
> commit dd3e9841f31fa274b9a97d3eae8da5bce636bd32
> Author: James Buren <ryuo at frugalware.org>
> Date:   Wed Nov 2 04:00:25 2011 -0500
>
> fw32.c: add FW32_DIRS from shell implementation
>
> diff --git a/fw32.c b/fw32.c
> index d1d8d87..16d1ed7 100644
> --- a/fw32.c
> +++ b/fw32.c
> @@ -7,7 +7,25 @@
> #include <limits.h>
> #include <assert.h>
>
> -#define FW32_ROOT "/usr/lib/fw32"
> +static const char *FW32_ROOT = "/usr/lib/fw32";
> +
> +static const char *FW32_DIRS[] =
> +{
> +  "/proc",
> +  "/sys",
> +  "/dev",
> +  "/etc",
> +  "/home",
> +  "/tmp",
> +  "/var/tmp",
> +  "/var/cache/pacman-g2/pkg",
> +  "/usr/share/kde",
> +  "/usr/share/icons",
> +  "/usr/share/fonts",
> +  "/usr/share/themes",
> +  "/media",
> +  "/mnt"
> +};
>
> static void
> error(const char *fmt,...)
> _______________________________________________
> Frugalware-git mailing list
> Frugalware-git at frugalware.org
> http://frugalware.org/mailman/listinfo/frugalware-git
>




More information about the Frugalware-git mailing list