Update of /cvsroot/monetdb/pathfinder/conf
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8340/pathfinder/conf

Modified Files:
        Makefile.ag 
Added Files:
        monetdb-xquery-config.bat.in monetdb-xquery-config.in 
Log Message:

added minimal monetdb-{template,sql,pathfinder,xml,amdb}-config scripts
that (for now) only support --source, --build, --prefix options
as used by the next version of Mtest.py


Index: Makefile.ag
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/conf/Makefile.ag,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Makefile.ag 3 Jan 2007 12:33:04 -0000       1.8
+++ Makefile.ag 18 Aug 2007 22:38:00 -0000      1.9
@@ -27,3 +27,14 @@
        install-sh missing \
        ltmain.sh \
        config.h.in
+
+scripts_sh = {
+       EXT = ""
+       DIR = bindir
+       SOURCES = monetdb-xquery-config.in
+}
+
+scripts_bat = {
+       DIR = bindir
+       SOURCES = monetdb-xquery-config.bat.in 
+}

--- NEW FILE: monetdb-xquery-config.in ---
[EMAIL PROTECTED]@

# The contents of this file are subject to the MonetDB Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is the MonetDB Database System.
#
# The Initial Developer of the Original Code is CWI.
# Portions created by CWI are Copyright (C) 1997-2007 CWI.
# All Rights Reserved.

# minimal inital version as required by Mtest.py

pkg="@PACKAGE@"
source="@QPATHFINDER_SOURCE@"
build="@QPATHFINDER_BUILD@"
prefix="@Qprefix@"

usage()
{
    cat <<EOF
Usage: `basename $0` [OPTION]

Known values for OPTION are:

  --build               print ${pkg} build directory
  --source              print ${pkg} source directory
  --help                display this help and exit

Install directories ${pkg} was configured to
  --prefix

EOF

    exit $1
}

if test $# -eq 0; then
    usage 1 >&2
fi

while test $# -gt 0; do
    case "$1" in
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
    esac

    case "$1" in

    --prefix)
        echo $prefix
        ;;

    --build)
        echo $build
        ;;

    --source)
        echo $source
        ;;

    --help)
        usage 0
        ;;

    *)
        usage 1 >&2
        ;;
    esac
    shift
done

exit 0

--- NEW FILE: monetdb-xquery-config.bat.in ---
@echo off

REM minimal inital version as required by Mtest.py

REM     set prefix=%~dp0
REM     set prefix=%prefix:~0,-4%

set [EMAIL PROTECTED]@
set [EMAIL PROTECTED]@
set [EMAIL PROTECTED]@
set [EMAIL PROTECTED]@

if "%1" == ""   goto usage

goto case

:shift
shift

:case
if "%1" == ""                   goto :EOF
if "%1" == "--help"             goto usage
if "%1" == "--source"           echo %source%           & goto shift
if "%1" == "--build"            echo %build%            & goto shift
if "%1" == "--prefix"           echo %prefix%           & goto shift

:usage
        echo.
        echo Usage: monetdb-config [OPTION]
        echo.
        echo Known values for OPTION are:
        echo.
        echo   --build          print %pkg% build directory
        echo   --source         print %pkg% source directory
        echo   --help           display this help and exit
        echo.
        echo Install directories %pkg% was configured to
        echo   --prefix
        echo.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to