Subversion Repositories pike

Compare Revisions

Ignore whitespace Rev 110 → Rev 109

/trunk/debian/changelog
29,10 → 29,8
the master object when dumping some modules.
* cflags.dpatch (new): Make pike -x cflags print include_prefix as-is
instead of stripping the last component.
* Drop pike7.8-config; pike -x cflags and pike --dumpversion fills its
functions.
 
-- Magnus Holmgren <holmgren@debian.org> Fri, 30 Jul 2010 12:40:04 +0200
-- Magnus Holmgren <holmgren@debian.org> Fri, 30 Jul 2010 12:37:58 +0200
 
pike7.8 (7.8.352-dfsg-1) experimental; urgency=low
 
/trunk/debian/pike7.8-dev.install
1,4 → 1,5
usr/include/pike?.?/*
usr/bin/pike*-config
usr/lib/pike?.?/modules/Tools.pmod/AutoDoc.pmod
usr/lib/pike?.?/modules/Tools.pmod/Standalone.pmod/module.pike
usr/lib/pike?.?/modules/Tools.pmod/Standalone.pmod/monger.pike
/trunk/debian/rules
201,6 → 201,11
-e "s;@CONFIGURE_ARGS@;$(CFARGS);g" \
debian/specs.in > $(TMP)$(include_prefix)/specs
 
# Install pike-config
sed -e "s#@CFLAGS@#-I$(include_prefix)#;s/@LDFLAGS@//" \
-e "s/@MAJOR@/$(MAJOR)/;s/@MINOR@/$(MINOR)/;s/@BUILD@/$(BUILD)/" \
debian/pike-config.in > $(TMP)/usr/bin/$(PIKE)-config
 
# Fix precompike.pike
sed -i -e "s%\.\./lib%$(lib_prefix)%" $(TMP)$(include_prefix)/precompile.pike
 
/trunk/debian/pike-config.in
0,0 → 1,36
#!/bin/sh
#
# $Id: pike-config.in,v 1.1 2002/08/12 01:02:31 grendel Exp $
#
 
MY_CFLAGS="@CFLAGS@"
MY_LDFLAGS="@LDFLAGS@"
MY_VERSION="@MAJOR@.@MINOR@.@BUILD@"
 
if test -z "$1"; then
cat <<EOF
Usage: pike-config [--cflags] [--ldflags] [--version]
 
--cflags Print the compiler flags required to compile a module
--ldflags Print the linker flags required to link a module
--version Print the pike version for which the compilation is taking
place
 
EOF
exit 1
fi
 
while true; do
if test -z "$1"; then
break
fi
 
case $1 in
--cflags) echo -n "${MY_CFLAGS} " ;;
--ldflags) echo -n "${MY_LDFLAGS} " ;;
--version) echo -n "${MY_VERSION} " ;;
esac
shift
done
 
echo