Commit 5907794f authored by gerd's avatar gerd

release 1.2.7

generating _oasis from _oasis.in



git-svn-id: https://godirepo.camlcity.org/svn/lib-pxp/trunk@767 dbe99aee-44db-0310-b2b3-d33182c8eb97
parent 7a7a4b6a
......@@ -77,6 +77,12 @@ RELEASE:
./configure -version >RELEASE
# for oasis
.PHONY: _oasis
_oasis: _oasis.in
sed -e 's/@VERSION@/$(VERSION)/' _oasis.in >_oasis
oasis setup
.PHONY: postconf
postconf:
echo 'pkg_version="$(VERSION)"' >>setup.data
cat setup.save >>setup.data
OASISFormat: 0.4
Name: pxp
Version: 1.2.6
Version: @VERSION@
Synopsis: XML parser
Authors: Gerd Stolpmann et al.
ConfType: custom (0.4)
......@@ -18,25 +18,25 @@ XCustomInstall: make install
XCustomUninstall: make uninstall
Flag "lex"
Description: Enable ocamllex-based lexer
Description: lex: Enable ocamllex-based lexer
Default: true
Flag "wlex"
Description: Enable wlex-based lexer (UTF-8)
Description: wlex: Enable wlex-based lexer (UTF-8)
Default: false
Flag "ulex"
Description: Enable ulex-based lexer (UTF-8)
Description: ulex: Enable ulex-based lexer (UTF-8)
Default: false
Flag "pp"
Description: Enable the preprocessor pxp-pp
Description: pp: Enable the preprocessor pxp-pp
Default: true
Library "pxp"
Path: src/pxp
BuildDepends: pxp-engine
Build: true
BuildDepends: pxp-engine
Library "pxp-engine"
Path: src/pxp-engine
......@@ -46,6 +46,7 @@ Library "pxp-engine"
Library "pxp-pp"
Path: src/pxp-pp
BuildDepends: pxp
BuildDepends: camlp4
Build: false
if flag(pp)
Build: true
......
......@@ -9,7 +9,7 @@ with_wlex_compat=1
with_ulex=1
with_pp=1
lexlist="utf8,iso88591,iso88592,iso88593,iso88594,iso88595,iso88596,iso88597,iso88598,iso88599,iso885910,iso885913,iso885914,iso885915,iso885916"
version="1.2.6"
version="1.2.7"
exec_suffix=""
help_lex="Enable/disable ocamllex-based lexical analyzer for the -lexlist encodings"
......@@ -93,12 +93,24 @@ while [ "$#" -gt 0 ]; do
eval "with_$opt=1"
shift
;;
-enable-*)
opt=`echo "$1" | sed -e 's/-enable-//' -e 's/-/_/g'`
check_opt "$opt"
eval "with_$opt=1"
shift
;;
-without-*)
opt=`echo "$1" | sed -e 's/-without-//' -e 's/-/_/g'`
check_opt "$opt"
eval "with_$opt=0"
shift
;;
-disable-*)
opt=`echo "$1" | sed -e 's/-disable-//' -e 's/-/_/g'`
check_opt "$opt"
eval "with_$opt=0"
shift
;;
-lexlist)
if [ "$2" = "all" ]; then
lexlist="$lexlist_options"
......@@ -108,6 +120,14 @@ while [ "$#" -gt 0 ]; do
shift
shift
;;
-prefix|--prefix)
echo "[prefix ignored]"; shift 2 ;;
--prefix=)
echo "[prefix ignored]"; shift ;;
-destdir|--destdir)
echo "[destdir ignored]"; shift 2 ;;
--destdir=)
echo "[destdir ignored]"; shift ;;
-version*)
echo "$version"
exit 0
......@@ -452,6 +472,26 @@ CAMLP4_OPTS = $camlp4_opts
NETUNIDATA = $netunidata
_EOF_
######################################################################
# make oasis happy: setup.save will be picked up by "make postconf"
# and will be appended to setup.data. That way the config update
# will reach oasis.
rm -f setup.save
echo "pkg_version=\"$version\"" >>setup.save
echo "prefix=\"<not interpreted>\"" >>setup.save
echo "destdir=\"\"" >>setup.save
for opt in $options; do
e="o=\$with_$opt"
eval "$e"
if [ $o -gt 0 ]; then
echo "$opt=\"true\"" >>setup.save
else
echo "$opt=\"false\"" >>setup.save
fi
done
######################################################################
# Finish
......
......@@ -184,6 +184,8 @@ same namespaces.</p></li>
<sect2>
<title>Recent Changes</title>
<ul>
<li><p><em>1.2.7:</em> tweaking support for oasis.</p></li>
<li><p><em>1.2.6:</em> Adding _oasis file.</p></li>
<li><p><em>1.2.5:</em> Build against ocamlnet-4.</p></li>
......
......@@ -2,6 +2,8 @@
set -e
make _oasis
version=`./configure -version 2>/dev/null`
destdir="pxp-$version"
trunk="https://godirepo.camlcity.org/svn/lib-pxp/trunk"
......
(* setup.ml generated for the first time by OASIS v0.4.4 *)
(* OASIS_START *)
(* DO NOT EDIT (digest: ddc83700918a1c799c7019e47de8ba1b) *)
(* DO NOT EDIT (digest: 993b1000c271b613c6f4c39ef1aa00d6) *)
(*
Regenerated by OASIS v0.4.4
Visit http://oasis.forge.ocamlcore.org for more information and
......@@ -5651,8 +5651,8 @@ let setup_t =
findlib_version = None;
alpha_features = [];
beta_features = [];
name = "ocamlnet";
version = "1.2.6";
name = "pxp";
version = "1.2.5";
license =
OASISLicense.DEP5License
(OASISLicense.DEP5Unit
......@@ -6435,7 +6435,7 @@ let setup_t =
};
oasis_fn = Some "_oasis";
oasis_version = "0.4.4";
oasis_digest = Some ";\127\182M\167\0026\165\143\004\128H\139\175P\155";
oasis_digest = Some "w_<\142\226\201@\130\028!\152\202uk\162/";
oasis_exec = None;
oasis_setup_args = [];
setup_update = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment