exclude .svn folderst when building rpm

This commit is contained in:
Stanislav Shwartsman 2011-02-25 22:13:04 +00:00
parent 64a30a15fa
commit c6e6b579e7
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ ${MKDIR} ${TMPDIR}/bochs-${VERSION}
test $? = 0 || exit 1
${TAR} cf - * .??* | (cd ${TMPDIR}/bochs-${VERSION} && tar xf -)
test $? = 0 || exit 1
(cd ${TMPDIR}; tar czf bochs-${VERSION}.tar.gz --exclude=CVS bochs-${VERSION})
(cd ${TMPDIR}; tar czf bochs-${VERSION}.tar.gz --exclude=CVS --exclude=.svn bochs-${VERSION})
test $? = 0 || exit 1
${RM} -rf ${TMPDIR}/bochs-${VERSION}
test $? = 0 || exit 1

View File

@ -62,12 +62,12 @@ copy_from_srcdir::
$(TARGZ): all copy_from_srcdir fixperm
rm -f $(TARGZ)
tar cf - --exclude=CVS --exclude=.cvsignore --exclude=*.dbk $(INSTALL_LIST) | gzip > $(TARGZ)
tar cf - --exclude=.svn --exclude=CVS --exclude=.cvsignore --exclude=*.dbk $(INSTALL_LIST) | gzip > $(TARGZ)
install: all copy_from_srcdir
for i in $(DESTDIR)$(docdir); do if test ! -d $$i; then mkdir -p $$i; fi; done
#for i in $(INSTALL_LIST); do cp -r $$i $(DESTDIR)$(docdir); done
for i in $(INSTALL_LIST); do tar cf - --exclude=CVS --exclude=.cvsignore --exclude=*.dbk $$i | ( cd $(DESTDIR)$(docdir); tar xf - ); done
for i in $(INSTALL_LIST); do tar cf - --exclude=.svn --exclude=CVS --exclude=.cvsignore --exclude=*.dbk $$i | ( cd $(DESTDIR)$(docdir); tar xf - ); done
test_sfuser:
@if test "$$SFUSER" = ""; then SFUSER=`whoami`; export SFUSER; fi; \