dist-src: target to copy dependent libraries sources
This commit is contained in:
parent
1fe2a4d558
commit
cc65e9a589
@ -35,5 +35,9 @@ bdist:
|
||||
|
||||
bdist-all: bdist-en bdist
|
||||
|
||||
dist-src:
|
||||
rm -fr $(mgwbuildroot)/src-$(mgwconfig) $(mgwbuildroot)/src-$(mgwconfig).zip
|
||||
$(mgwdir)/copysrc.sh
|
||||
|
||||
clean:
|
||||
rm -rf $(mgwbuilddir) $(mgwdestdir) $(mgwdestdir)-en
|
||||
|
@ -5,7 +5,10 @@ export mgwpythonver=`echo $mgwpythondotver | sed 's/[.]//'`
|
||||
|
||||
export mgwdir_s=$mgwdir
|
||||
export mgwdir=`cd $mgwdir && pwd`
|
||||
export mgwconfig=release
|
||||
|
||||
if [ -z "$mgwconfig" ]; then
|
||||
export mgwconfig=release
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
--debug)
|
||||
|
80
plat/win32/gtk-win/copysrc.sh
Executable file
80
plat/win32/gtk-win/copysrc.sh
Executable file
@ -0,0 +1,80 @@
|
||||
#! /bin/sh
|
||||
|
||||
export mgwdir=`dirname $0`
|
||||
. $mgwdir/config.sh || exit 1
|
||||
|
||||
jhsourcedir=$mgwbuilddir/source
|
||||
jhbuilddir=$mgwbuilddir/build
|
||||
destdir=src-$mgwconfig
|
||||
|
||||
do_or_die() {
|
||||
echo "$@"
|
||||
"$@" || exit 1
|
||||
}
|
||||
|
||||
cd $mgwbuildroot
|
||||
|
||||
if [ -e $destdir ]; then
|
||||
echo "Directory $destdir already exists"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
do_or_die mkdir src-$mgwconfig
|
||||
do_or_die cp -lfR $jhsourcedir/* src-$mgwconfig/
|
||||
do_or_die cp -lfR $jhbuilddir/* src-$mgwconfig/
|
||||
|
||||
cd src-$mgwconfig
|
||||
|
||||
{ find . -type d \( -name 'tests' \) -print0 | xargs -0 rm -r ; } || exit 1
|
||||
{ find . -type d \( -name '.libs' -o -name '.deps' \) -print0 | xargs -0 rm -r ; } || exit 1
|
||||
rm -r */docs/html */docs/tmpl */docs/reference */po || exit 1
|
||||
|
||||
find . -type f \( \
|
||||
-name '*.o' -o \
|
||||
-name '*.lo' -o \
|
||||
-name '*.Plo' -o \
|
||||
-name '*.Po' -o \
|
||||
-name '*.dll' -o \
|
||||
-name '*.a' -o \
|
||||
-name '*.la' -o \
|
||||
-name '*.html' -o \
|
||||
-name '*.sgml' -o \
|
||||
-name '*.xml' -o \
|
||||
-name '*.txt' -o \
|
||||
-name '*.po' -o \
|
||||
-name '*.gmo' -o \
|
||||
-name '*.in' -o \
|
||||
-name '*.m4' -o \
|
||||
-name '*.pc' -o \
|
||||
-name '*.spec' -o \
|
||||
-name '*.sh' -o \
|
||||
-name '*.guess' -o \
|
||||
-name '*.log' -o \
|
||||
-name '*.status' -o \
|
||||
-name '*.sub' -o \
|
||||
-name 'AUTHORS' -o \
|
||||
-name 'ChangeLog' -o \
|
||||
-name 'ChangeLog.*' -o \
|
||||
-name 'configure' -o \
|
||||
-name 'COPYING' -o \
|
||||
-name 'depcomp' -o \
|
||||
-name 'INSTALL' -o \
|
||||
-name 'install-sh' -o \
|
||||
-name 'libtool' -o \
|
||||
-name 'MAINTAINERS' -o \
|
||||
-name 'Makefile' -o \
|
||||
-name 'Makefile.*' -o \
|
||||
-name 'missing' -o \
|
||||
-name 'NEWS' -o \
|
||||
-name 'mkinstalldirs' -o \
|
||||
-name 'README' -o \
|
||||
-name 'stamp-h1' -o \
|
||||
-name '*.make' -o \
|
||||
-name '*.def' -o \
|
||||
-name '*.rc' -o \
|
||||
-name '*.symbols' -o \
|
||||
-name '*.lai' \
|
||||
\) -delete || exit 1
|
||||
|
||||
cd $mgwbuildroot
|
||||
do_or_die zip -r src-$mgwconfig.zip src-$mgwconfig
|
Loading…
x
Reference in New Issue
Block a user