Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change dist target so that it uses git to find files instead of svn.

  • Loading branch information...
commit 736c07a25da2fa7faf44477b9e930b74ab42dc12 1 parent 8138e3b
@smgoller smgoller authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 Makefile
View
5 Makefile
@@ -45,7 +45,7 @@ install:
cp -av up2date_client/repoBackends/*.py $(DESTDIR)$(datadir)/mrepo/up2date_client/repoBackends/
[ "$(DESTDIR)" -o ! -f "$(DESTDIR)$(sysconfdir)/cron.d/mrepo" ] && install -Dp -m0644 config/mrepo.cron $(DESTDIR)$(sysconfdir)/cron.d/mrepo || :
-
+
install -Dp -m0644 config/mrepo.logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/mrepo
@if [ -z "$(DESTDIR)" -a -x "/sbin/chkconfig" ]; then \
@@ -58,8 +58,7 @@ docs:
make -C docs
dist: clean
- svn up
- svn list -R | pax -d -w -x ustar -s ,^,$(name)-$(version)/, | bzip2 >../$(name)-$(version).tar.bz2
+ git ls-tree -r --name-only --full-tree `git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | pax -d -w -x ustar -s ,^,$(name)-$(version)/, | bzip2 >../$(name)-$(version).tar.bz2
rpm: dist
rpmbuild -tb --clean --rmspec --define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" --define "_rpmdir ../" ../$(name)-$(version).tar.bz2
Please sign in to comment.
Something went wrong with that request. Please try again.