Ubuntu packaging: remove .git trees from sources

Oops, I thought I had done that but that was flat out wrong.
Now the source upload shrinks from over 70MB to around 26MB. Much better.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-12-02 22:01:07 -08:00
parent 43a8287779
commit 89c333e4b6
2 changed files with 2 additions and 0 deletions

View file

@ -25,6 +25,7 @@ Build-Depends: asciidoc,
qttools5-dev-tools, qttools5-dev-tools,
qt5-qmake, qt5-qmake,
libqt5svg5-dev, libqt5svg5-dev,
libqt5webkit5-dev,
qtscript5-dev, qtscript5-dev,
qt5-default qt5-default
Standards-Version: 3.9.5 Standards-Version: 3.9.5

View file

@ -17,6 +17,7 @@ fi
mkdir subsurface_$VERSION mkdir subsurface_$VERSION
(cd subsurface ; tar cf - . ) | (cd subsurface_$VERSION ; tar xf - ) (cd subsurface ; tar cf - . ) | (cd subsurface_$VERSION ; tar xf - )
cd subsurface_$VERSION cd subsurface_$VERSION
rm -rf .git libdivecomputer/.git libgit2/.git
echo $GITVERSION > .gitversion echo $GITVERSION > .gitversion
dh_make --email dirk@hohndel.org -c gpl2 --createorig --single --yes -p subsurface_$VERSION dh_make --email dirk@hohndel.org -c gpl2 --createorig --single --yes -p subsurface_$VERSION