$(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \
done
$(E) " GZIP $(infodir)/libext2fs.info*"
- -$(Q) gzip -9 $(DESTDIR)$(infodir)/libext2fs.info*
+ -$(Q) gzip -9n $(DESTDIR)$(infodir)/libext2fs.info*
uninstall-doc-libs:
$(RM) -rf $(DESTDIR)$(infodir)/libext2fs.info*
distclean: clean
$(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
-#
-# Kludge to create a "special" e2fsprogs distribution file.
-#
-
-SRCROOT = `echo e2fsprogs-@E2FSPROGS_VERSION@ | sed -e 's/-WIP//' \
- -e 's/pre-//' -e 's/-PLUS//'`
-TAR=tar
-
-$(top_srcdir)/.exclude-file:
- a=$(SRCROOT); \
- (cd $(top_srcdir)/.. ; find e2fsprogs \( -name \*~ -o -name \*.orig \
- -o -name CVS -o -name \*.rej \) -print) \
- | sed -e "s/e2fsprogs/$$a/" > $(top_srcdir)/.exclude-file
- echo "$(SRCROOT)/build" >> $(top_srcdir)/.exclude-file
- echo "$(SRCROOT)/rpm.log" >> $(top_srcdir)/.exclude-file
- echo "$(SRCROOT)/powerquest" >> $(top_srcdir)/.exclude-file
- echo "$(SRCROOT)/.exclude-file" >> $(top_srcdir)/.exclude-file
- echo $(SRCROOT)/e2fsprogs-@E2FSPROGS_VERSION@.tar.gz \
- >> $(top_srcdir)/.exclude-file
- echo $(SRCROOT)/e2fsprogs-ALL-@E2FSPROGS_VERSION@.tar.gz \
- >> $(top_srcdir)/.exclude-file
-
-source_tar_file: $(top_srcdir)/.exclude-file
- (cd $(top_srcdir)/..; a=$(SRCROOT); rm -f $$a ; ln -sf e2fsprogs $$a ; \
- $(TAR) -c -h -v -f - \
- -X $$a/.exclude-file $$a | \
- gzip -9 > e2fsprogs-ALL-@E2FSPROGS_VERSION@.tar.gz)
- rm -f $(top_srcdir)/.exclude-file
-
# +++ Dependency line eater +++
#
# Makefile dependencies follow. This must be the last section in
;;
esac
+if test -z "$SOURCE_DATE_EPOCH" ; then
+ export SOURCE_DATE_EPOCH=$(cd $top_srcdir; git log -1 --pretty=%ct)
+fi
+
mv ../e2fsprogs.spec $top_srcdir/e2fsprogs.spec
(cd $top_srcdir/.. ; find $base_e2fsprogs \( -name \*~ -o -name \*.orig \
-o -name CVS -o -name \*.rej -o -name Makefile.pq \
(cd $top_srcdir/.. ; rm -f $SRCROOT ; ln -sf $base_e2fsprogs $SRCROOT)
-(cd $top_srcdir/.. ; tar -c -h -v -f - -X $exclude $SRCROOT) \
- | $GZIP -9 -c > $SRCROOT.tar.gz
+(cd $top_srcdir/.. ; \
+ tar -c -h -f - -X $exclude --sort=name --owner=0 --group=0 \
+ --numeric-owner --mtime="@${SOURCE_DATE_EPOCH}" $SRCROOT) \
+ | $GZIP -9n -c > $SRCROOT.tar.gz
$GZIP -l $SRCROOT.tar.gz
(cd $top_srcdir/.. ; rm -f $SRCROOT)