[vhffs-dev] [1594] Oops

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1594
Author:   gradator
Date:     2010-04-10 03:18:58 +0200 (Sat, 10 Apr 2010)
Log Message:
-----------
Oops

Added Paths:
-----------
    trunk/vhffs-cron/Makefile.am
    trunk/vhffs-cron/src/Makefile.am

Added: trunk/vhffs-cron/Makefile.am
===================================================================
--- trunk/vhffs-cron/Makefile.am	                        (rev 0)
+++ trunk/vhffs-cron/Makefile.am	2010-04-10 01:18:58 UTC (rev 1594)
@@ -0,0 +1,5 @@
+if INSTALL_CRON
+
+SUBDIRS = src
+
+endif # INSTALL_CRON

Added: trunk/vhffs-cron/src/Makefile.am
===================================================================
--- trunk/vhffs-cron/src/Makefile.am	                        (rev 0)
+++ trunk/vhffs-cron/src/Makefile.am	2010-04-10 01:18:58 UTC (rev 1594)
@@ -0,0 +1,15 @@
+crondir = @CRONDIR@
+dist_cron_SCRIPTS = vhffscron.pl
+
+# Define the substitution we need to point perl script at correct location
+do_sed = $(SED) --in-place \
+	-e 's,%PERL%,$(PERL),g' \
+	-e 's,%localedir%,$(localedir),g' \
+	-e 's,'%VHFFS_LIB_DIR%',$(VHFFS_LIBDIR),g'
+
+# Because automake, exec-hook is executed before install-scripts
+# so install-data is after. Here we use a data-hook
+install-data-hook :
+	for f in $(dist_cron_SCRIPTS) ; do \
+		$(do_sed) $(DESTDIR)$(crondir)/$$f; \
+	done


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/