Code

Use Makefile's variables (to support a shortcut in sfsnapshot)
authorTon Voon <tonvoon@users.sourceforge.net>
Sat, 8 Mar 2003 00:23:26 +0000 (00:23 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Sat, 8 Mar 2003 00:23:26 +0000 (00:23 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@377 f882894a-f735-0410-b71e-b25c423dba1c

Makefile.am

index 5ba96212606d572e9d6b153cb8757e8c66db6324..60e4d3c2b37e37a91abf409101926418e6b40b79 100644 (file)
@@ -9,14 +9,14 @@ contrib nagios-plugins.spec.in
 ACLOCAL_AMFLAGS = -I lib
 
 dist-hook:
-       sed "s/%%{VER}/@VER@/;s/%%{REL}/@REL@/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
+       sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
 
 test:
        cd plugins; $(MAKE) test
        cd plugins-scripts; $(MAKE) test
 
 nagios-plugins.spec: nagios-plugins.spec.in
-       sed "s/%%{VER}/@VER@/;s/%%{REL}/@REL@/;" $? > $@
+       sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@
 
 # Solaris pkgmk
 PACKDIR=build-pkg