2016-08-23 23:10:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Creating git archive"
|
|
|
|
version=`python -c "from hscommon.build import get_module_version; print(get_module_version('core'))"`
|
|
|
|
dest="dupeguru-src-${version}.tar"
|
|
|
|
|
|
|
|
git archive -o ${dest} HEAD
|
|
|
|
|
|
|
|
# Now, we need to include submodules
|
2020-01-01 02:28:35 +00:00
|
|
|
submodules="cocoalib"
|
2016-08-23 23:10:03 +00:00
|
|
|
|
|
|
|
for submodule in $submodules; do
|
|
|
|
echo "Adding submodule ${submodule} to archive"
|
|
|
|
archive_name="${submodule}.tar"
|
|
|
|
git -C ${submodule} archive -o ../${archive_name} --prefix ${submodule}/ HEAD
|
|
|
|
tar -A ${archive_name} -f ${dest}
|
|
|
|
rm ${archive_name}
|
|
|
|
done
|
|
|
|
|
2020-01-01 02:28:35 +00:00
|
|
|
xz ${dest}
|
|
|
|
echo "Built source package ${dest}.xz"
|