[gegl] meson: remove PNG reference images before creating tarball



commit 6346ecf464248d96a1d188f3f04d6ba542f46bfe
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Aug 13 20:06:40 2019 +0200

    meson: remove PNG reference images before creating tarball
    
    This reduces the size of our distributed code by a fifth, medium term we
    want to replace many of these tests with the per op built in hashes.

 dist-script.sh | 7 +++++++
 meson.build    | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/dist-script.sh b/dist-script.sh
new file mode 100755
index 000000000..7ddb34ccd
--- /dev/null
+++ b/dist-script.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+echo hoit hoi `pwd`
+cd meson-dist
+echo 'Removing reference image to shrink size of tarball'
+rm -v `find . | grep png | grep reference`
+echo $MESON_SOURCE_ROOT $MESON_BUILD_ROOT
diff --git a/meson.build b/meson.build
index 9dafa60bb..e0de98195 100644
--- a/meson.build
+++ b/meson.build
@@ -353,7 +353,7 @@ pkgconfig.generate(filebase: 'gegl-' + api_version,
 )
 
 
-
+meson.add_dist_script('dist-script.sh')
 
 message('\n'.join(['',
 'Building GEGL with prefix=@0@'.format(get_option('prefix')),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]