Skip to content

Commit

Permalink
s/cp -a /cp -Rp/ for macos compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
docelic committed Oct 7, 2009
1 parent f410996 commit 98b5975
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ $O:
OUTPUT/files: $(shell find files) bin/dbgen OUTPUT/files: $(shell find files) bin/dbgen
echo "C $@/" echo "C $@/"
rm -rf $@/ rm -rf $@/
cp -a files $O/ cp -Rp files $O/
rm -rf `find $@ -name CVS` rm -rf `find $@ -name CVS`
rm -rf `find $@ -name .git` rm -rf `find $@ -name .git`
cp bin/dbgen $O/files/ cp bin/dbgen $O/files/
cd files; for p in *; do \ cd files; for p in *; do \
if test "$$p" != "CVS"; then \ if test "$$p" != "CVS"; then \
if test "$$p" != ".git"; then \ if test "$$p" != ".git"; then \
if test -d "$$p"; then \ if test -d "$$p"; then \
cp -a $$p ../$O/files/; \ cp -Rp $$p ../$O/files/; \
tar --exclude=CVS --exclude=.git -cf ../$O/files/$$p.tar $$p; \ tar --exclude=CVS --exclude=.git -cf ../$O/files/$$p.tar $$p; \
tar --exclude=CVS --exclude=.git -zcf ../$O/files/$$p.tar.gz $$p; \ tar --exclude=CVS --exclude=.git -zcf ../$O/files/$$p.tar.gz $$p; \
tar --exclude=CVS --exclude=.git -jcf ../$O/files/$$p.tar.bz2 $$p \ tar --exclude=CVS --exclude=.git -jcf ../$O/files/$$p.tar.bz2 $$p \
Expand All @@ -109,7 +109,7 @@ OUTPUT/files: $(shell find files) bin/dbgen
OUTPUT/images: $(shell find images) OUTPUT/images: $(shell find images)
echo "C $@/" echo "C $@/"
rm -rf $@/ rm -rf $@/
cp -a images $O/ cp -Rp images $O/
rm -rf `find $@ -name CVS` rm -rf `find $@ -name CVS`
rm -rf `find $@ -name .git` rm -rf `find $@ -name .git`
OUTPUT/xmldocs.css: docbook/xmldocs.css OUTPUT/xmldocs.css: docbook/xmldocs.css
Expand Down

0 comments on commit 98b5975

Please sign in to comment.