On Thursday 31 May 2007, Jonathan Underwood wrote: > So how do we feel about > > emacs --no-site-file --version | head -n1 | awk '{print $3}' > > and > > xemacs --no-site-file --version | head -n1 | awk '{print $2}' > > (not guaranteed that it will work in future emacs versions which may > change their formatting of --version info.) Bad, as explained before. Instead, how about adding some pkgconfig files which are generated during build and thus we have complete control over their contents? Eg. the attached one to xemacs-devel: $ pkg-config xemacs --modversion 21.5.28 $ pkg-config xemacs --variable=sitestartdir /usr/share/xemacs/site-packages/lisp/site-start.d $ pkg-config xemacs --variable=sitepkglispdir /usr/share/xemacs/site-packages/lisp $ pkg-config xemacs --variable=sitemoduledir /usr/lib64/xemacs/site-modules $ pkg-config xemacs --cflags -I/usr/lib64/xemacs-21.5-b28/x86_64-redhat-linux/include
prefix=/usr includedir=/usr/lib64/xemacs-21.5-b28/x86_64-redhat-linux/include sitestartdir=/usr/share/xemacs/site-packages/lisp/site-start.d sitepkglispdir=/usr/share/xemacs/site-packages/lisp sitemoduledir=/usr/lib64/xemacs/site-modules Name: xemacs Description: Different version of Emacs Version: 21.5.28 Cflags: -I${includedir}
-- Fedora-packaging mailing list Fedora-packaging@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-packaging