5 if [ ! -f formats.txt
]
7 echo "Run this script from the main directory"
11 if [ -f src
/deark-config2.h
]
13 echo "Remove src/deark-config2.h first"
20 D
=".build-tmp/deark-$VER"
22 #echo "Using temporary directory .build-tmp/deark-$VER"
27 cp -p src
/*.c src
/*.h src
/*.rc src
/*.manifest
$D/src
/
30 cp -p modules
/*.c
$D/modules
/
33 cp -p foreign
/* $D/foreign
/
36 cp -p scripts
/*.sh
scripts
/*.pl
$D/scripts
/
40 cp -p proj
/vs2019
/*.sln proj
/vs2019
/*.vcxproj proj
/vs2019
/*.vcxproj.filters
$D/proj
/vs2019
/
44 cp -p obj
/src
/.gitignore
$D/obj
/src
/
46 cp -p obj
/modules
/.gitignore
$D/obj
/modules
/
48 cp -p readme.md technical.md formats.txt COPYING Makefile deps.mk .editorconfig
$D/
51 cp -p Release64
/deark.exe
$D/x64
/
53 echo "Writing deark-${VER}.tar.gz"
54 tar --directory .build-tmp
-c --owner=root
:0 --group=root
:0 -O deark-
$VER |
gzip -9 > deark-
${VER}.
tar.gz