]> Dogcows Code - chaz/tar/commitdiff
Check whether date accepts +format argument (for backup scripts).
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 6 May 2004 09:11:32 +0000 (09:11 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 6 May 2004 09:11:32 +0000 (09:11 +0000)
configure.ac

index f6a48f93706e8867a3b468c1e82dc00520333b10..a495abfa9700aa0e639610bf1f0436562792d9b5 100644 (file)
@@ -243,6 +243,14 @@ AC_CHECK_TYPE(iconv_t,:,
 #endif
 ])
 
+AC_SUBST(BACKUP_SED_COND)
+if date +%Y-%m-%d 2>/dev/null >&2; then
+       BACKUP_SED_COND='/^#ELSE_DATE_FORMAT_OK/,/^#ENDIF_DATE_FORMAT_OK/d;/^#IF_DATE_FORMAT_OK/d'
+else
+       BACKUP_SED_COND='/^#IF_DATE_FORMAT_OK/,/^#ELSE_DATE_FORMAT_OK/d;/^#ENDIF_DATE_FORMAT_OK/d'
+fi
+
+
 AC_OUTPUT([Makefile\
            doc/Makefile\
            lib/Makefile\
This page took 0.023078 seconds and 4 git commands to generate.