Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: better function version handling



The version in the function installation directory should be interpreted at
compile time, not configure time, since you don't have to reconfigure for a
version number change.  This doesn't actually affect anyone that recompiles
a new version from scratch each time, but it's logically more correct (and
affects me).

Index: configure.in
===================================================================
RCS file: /home/pws/CVSROOT/projects/zsh/configure.in,v
retrieving revision 1.13
diff -u -r1.13 configure.in
--- configure.in	2000/01/07 22:46:44	1.13
+++ configure.in	2000/01/12 18:48:11
@@ -213,11 +213,12 @@
 undefine([fndir])dnl
 AC_ARG_ENABLE(fndir,
 [  --enable-fndir=DIR         where functions go (default DATADIR/zsh/functions)],
+dnl ${VERSION} to be determined at compile time.
 [if test $enableval = yes; then
-  fndir=${datadir}/${tzsh_name}/${VERSION}/functions
+  fndir=${datadir}/${tzsh_name}/'${VERSION}'/functions
 else
   fndir="$enableval"
-fi], [fndir=${datadir}/${tzsh_name}/${VERSION}/functions])
+fi], [fndir=${datadir}/${tzsh_name}/'${VERSION}'/functions])
 
 undefine([function_subdirs])
 AC_ARG_ENABLE(function-subdirs,

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>



Messages sorted by: Reverse Date, Date, Thread, Author