glib-config replacement



Instead of the current glib-config:
#!/bin/sh

echo glib-config-2.0 is no longer supported. Please use pkg-config instead 
2>&1
exit 0

I propose forwarding switches to pkg-config, while recognising --version, 
which will not return the correct number if sent to pkg-config:
#!/bin/sh
for option
do
  case "$option" in
   -version | --version)
    echo "1.3.3" 2>&1
    exit 0 ;;
  esac
done
pkg-config glib-2.0 $@
exit 0

I'm not subscribed to this list, btw; I just fixed this problem and thought 
somebody might be interested in using it.

-- 
#include <stdio.h>
char quote[] = "[05:09:14] <Xenix-guy> I can't get kde to run on Microsoft 
xenix 2.0";
void not_quite_random(char *rq){printf("Not-quite-random quote:\n%s\n", rq);}
int main(){not_quite_random(quote);}
// Triskelios - trisk quasarnet org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]