Skip to content

Commit

Permalink
* fixed sourcearchive target
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Gerhardy committed Nov 29, 2010
1 parent 64c1a7c commit e34e1b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.gitattributes export-ignore
.gitignore export-ignore
base export-ignore
contrib export-ignore
17 changes: 1 addition & 16 deletions build/install.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,4 @@ create-dev: dataarchive wininstaller linuxinstaller macinstaller sourcearchive
# Generate a tar archive of the sources.
#
sourcearchive:
# Create the tarsrc/ufoai-$(VERSION)-source directory in order that the
# resulting tar archive extracts to one directory.
mkdir -p ./tarsrc
ln -fsn ../ tarsrc/ufoai-$(UFOAI_VERSION)-source
# Take a list of files from SVN. Trim SVN's output to include only the filenames
# and paths. Then feed that list to tar.
svn status -v|grep -v "^?"|cut -c 7-|awk '{print $$4}'|sed "s/^/ufoai-$(UFOAI_VERSION)-source\//"> ./tarsrc/filelist
# Also tell tar to exclude base/ and contrib/ directories.
tar -cvjh --no-recursion \
-C ./tarsrc \
--exclude "*base/*" \
--exclude "*contrib*" \
-T ./tarsrc/filelist \
-f ./tarsrc/ufoai-$(UFOAI_VERSION)-source.tar.bz2
mv ./tarsrc/ufoai-$(UFOAI_VERSION)-source.tar.bz2 ./
rm -rf ./tarsrc
$(Q)git archive --format=tar --prefix=ufoai-$(UFOAI_VERSION)-source/ HEAD | bzip2 -9 > ufoai-$(UFOAI_VERSION)-source.tar.bz2

0 comments on commit e34e1b9

Please sign in to comment.