summaryrefslogtreecommitdiff
path: root/contrib/pngminim/encoder/gather.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pngminim/encoder/gather.sh')
-rwxr-xr-xcontrib/pngminim/encoder/gather.sh20
1 files changed, 17 insertions, 3 deletions
diff --git a/contrib/pngminim/encoder/gather.sh b/contrib/pngminim/encoder/gather.sh
index d79cd2b85..2a6529a5a 100755
--- a/contrib/pngminim/encoder/gather.sh
+++ b/contrib/pngminim/encoder/gather.sh
@@ -1,9 +1,23 @@
+
+# Get the source for the pngminus application
cp ../../pngminus/pnm2png.c pnm2pngm.c
+
+# Get the libpng sources
cp ../../../*.h .
cp ../../../*.c .
+
+# Get the libpng scripts for building pnglibconf.h
+cp ../../../scripts/options.awk .
+cp ../../../scripts/pnglibconf.dfa .
+sed -e "s:scripts/::g" ../../../scripts/pnglibconf.mak > pnglibconf.mak
+#14+%
+# Remove libpng sources we won't use
rm example.c pngtest.c pngr*.c pngpread.c
-# Change the next 2 lines if zlib is somewhere else.
+
+# Get the zlib sources
+# Change the following 2 lines if zlib is somewhere else
cp ../../../../zlib/*.h .
cp ../../../../zlib/*.c .
-rm inf*.[ch]
-rm minigzip.c example.c gz*
+
+# Remove zlib sources we won't use
+rm minigzip.c example.c inf*.[ch] gz*