1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-12-21 10:59:03 +00:00

Add 'make srcpkg'

This commit is contained in:
Virgil Dupras 2016-08-23 19:10:03 -04:00
parent eb3f7d65de
commit 63558d647a
2 changed files with 28 additions and 3 deletions

View File

@ -19,6 +19,10 @@ default : | run.py
run.py : | env i18n modules qt/dg_rc.py
cp qt/run_template.py run.py
.PHONY : run
run: | run.py
./env/bin/python run.py
.PHONY : reqs
reqs :
@ret=`${PYTHON} -c "import sys; print(int(sys.version_info[:2] >= (3, ${REQ_MINOR_VERSION})))"`; \
@ -76,9 +80,9 @@ mergepot :
normpo :
./env/bin/python build.py --normpo
.PHONY : run
run: | run.py
./env/bin/python run.py
.PHONY : srcpkg
srcpkg :
./scripts/srcpkg.sh
.PHONY : clean
clean:

21
scripts/srcpkg.sh Executable file
View File

@ -0,0 +1,21 @@
#!/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
submodules="hscommon qtlib cocoalib"
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
gzip -f ${dest}
echo "Built source package ${dest}.gz"