diff options
author | Fred Wright <fw@fwright.net> | 2018-12-23 18:48:50 -0800 |
---|---|---|
committer | Fred Wright <fw@fwright.net> | 2018-12-23 18:54:50 -0800 |
commit | da4a2b80309c541df26637d585a04acb346ec4e5 (patch) | |
tree | 3b4d1eefc37cfedb783ffdbfe110d4c949ff032b /SConstruct | |
parent | ffff77fd94cb5612339215caae3c2edc55def84d (diff) | |
download | gpsd-da4a2b80309c541df26637d585a04acb346ec4e5.tar.gz |
Fixes symlink handling in zip target.
By default, zip follows symlinks rather than storing them as links in
the archive. This resulted in redundant copies of the 'gps'
subdirectory, which not only wasted space, but also wouldn't actually
work in practice since they wouldn't get populated with the build
products. Adding the 'y' option to the zip invocation fixes this.
TESTED:
Verified that the resulting zip archive has the expected symlinks, and
that the content matches the repo.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2585,7 +2585,7 @@ if os.path.exists("gpsd.c") and os.path.exists(".gitignore"): # How to build a zip file. zip = env.Command('zip', distfiles, [ - '@zip -r gpsd-${VERSION}.zip $SOURCES', + '@zip -ry gpsd-${VERSION}.zip $SOURCES', '@ls -l gpsd-${VERSION}.zip', ]) env.Clean(zip, ["gpsd-${VERSION}.zip", "packaging/rpm/gpsd.spec"]) |