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:
parent
eb3f7d65de
commit
63558d647a
10
Makefile
10
Makefile
@ -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
21
scripts/srcpkg.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user