diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..0acdd59be8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +.gitattributes export-ignore +.gitignore export-ignore +base export-ignore +contrib export-ignore diff --git a/build/install.mk b/build/install.mk index 393c0e15ee..0ddda61e73 100644 --- a/build/install.mk +++ b/build/install.mk @@ -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