* bin/commit.hb
* config/detect.mk
* config/detfun.mk
* config/detplat.mk
* config/dir.mk
* config/dirsh.mk
* config/global.mk
* config/globsh.mk
* config/instsh.mk
* config/lang.hb
* config/lang2po.hb
* config/po2lang.hb
* config/postinst.hb
* contrib/hbexpat/tests/tohash.prg
* contrib/hbformat/utils/hbformat.ini
* contrib/hbmisc/hbedit.prg
* contrib/hbmxml/tests/testmxml.prg
* contrib/hbnetio/utils/hbnetio/_console.prg
* contrib/hbnetio/utils/hbnetio/_winsvc.prg
* contrib/hbnetio/utils/hbnetio/hbnetio.prg
* contrib/hbnetio/utils/hbnetio/netiomgm.hb
* contrib/hbwin/tests/ole.prg
* contrib/hbwin/tests/oletst2.js
* contrib/hbwin/tests/oletst2.vbs
* contrib/hbxpp/doc/en/binnumx.txt
* contrib/hbxpp/doc/en/dbcmdx.txt
* contrib/xhb/htmutil.prg
* contrib/xhb/tfile.prg
* contrib/xhb/tframe.prg
* contrib/xhb/thtm.prg
* ChangeLog.txt
* debian/copyright
* doc/class_tp.txt
* doc/hdr_tpl.txt
* doc/xhb-diff.txt
* LICENSE.txt
* package/harbour-wce.spec.in
* package/harbour-win.spec.in
* package/harbour.spec
* package/mpkg_rpm_wce.sh
* package/mpkg_rpm_win.sh
* package/mpkg_rpm.sh
* package/mpkg_src.sh
* package/mpkg_ver.sh
* src/rtl/achoice.prg
* src/rtl/getsys53.prg
* src/rtl/tgetlist.prg
* src/rtl/tlabel.prg
* src/rtl/tmenusys.prg
* tests/hbdoc.prg
* tests/langmsg.prg
* tests/rto_get.prg
* tests/rto_tb.prg
+ doc/en/ati.txt
+ doc/en/dirdrive.txt
+ doc/en/hashfunc.txt
+ doc/en/hbtoken.txt
+ doc/en/left.txt
+ doc/en/proc.txt
+ doc/en/strtran.txt
+ doc/en/transfrm.txt
+ doc/en/typefile.txt
* doc/en/*
* more partial sync with 3.4 fork
79 lines
1.7 KiB
Bash
Executable File
79 lines
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script requires 'GNU tar' tool for compression.
|
|
|
|
if [ "$1" = "zip" ] || [ "$1" = "ZIP" ]; then
|
|
hb_archbin="zip"
|
|
hb_ext=".zip"
|
|
elif tar --version >/dev/null 2>&1; then
|
|
hb_archbin="tar"
|
|
hb_gnutar="yes"
|
|
elif gtar --version >/dev/null 2>&1; then
|
|
hb_archbin="gtar"
|
|
hb_gnutar="yes"
|
|
else
|
|
hb_archbin="tar"
|
|
hb_gnutar="no"
|
|
echo "Warning!!! Cannot find GNU TAR"
|
|
fi
|
|
|
|
hb_currdir=`pwd`
|
|
|
|
hb_archopt="-czf"
|
|
[ -n "${hb_ext}" ] || hb_ext=".tar.gz"
|
|
|
|
if [ -f mpkg_ver.sh ]; then
|
|
hb_rootdir=".."
|
|
else
|
|
hb_rootdir=`dirname $0`
|
|
hb_rootdir=`dirname ${hb_rootdir}`
|
|
fi
|
|
. ${hb_rootdir}/package/mpkg_ver.sh
|
|
|
|
hb_ver=`get_hbver ${hb_rootdir}`
|
|
hb_filename="${hb_currdir}/harbour-${hb_ver}.src${hb_ext}"
|
|
rm -f $hb_filename
|
|
|
|
#[ -z "$TZ" ] && export TZ=PST8PDT
|
|
|
|
hb_collect_all_git()
|
|
{
|
|
for f in `git ls-tree HEAD -r --name-only`
|
|
do
|
|
[ -f "$f" ] && echo "$f"
|
|
done
|
|
}
|
|
|
|
hb_collect_all_tree()
|
|
{
|
|
exclude="/obj/|/lib/|/bin/.*/|\.tar|\.zip|\.exe|\.log|/linux/|/win|/config/"
|
|
for f in `find -type f | grep -vE ${exclude}`
|
|
do
|
|
echo ${f:2}
|
|
done
|
|
for f in `find config -type f`
|
|
do
|
|
echo ${f}
|
|
done
|
|
}
|
|
|
|
hb_rmflst="yes"
|
|
hb_flst="bin/hb_flst.tmp"
|
|
if [ -d "$hb_rootdir/.git" ] ; then
|
|
hb_rmflst="yes"
|
|
(cd "$hb_rootdir";hb_collect_all_git) > "$hb_rootdir/$hb_flst"
|
|
echo "$hb_flst" >> "$hb_rootdir/$hb_flst"
|
|
else
|
|
hb_rmflst="yes"
|
|
(cd "$hb_rootdir";hb_collect_all_tree) > "$hb_rootdir/$hb_flst"
|
|
fi
|
|
|
|
if [ "$hb_archbin" = "zip" ]; then
|
|
(cd "$hb_rootdir";$hb_archbin -r -q $hb_filename . "-i@$hb_flst")
|
|
else
|
|
(cd "$hb_rootdir";$hb_archbin $hb_archopt $hb_filename --files-from "$hb_flst")
|
|
fi
|
|
[ "$hb_rmflst" != "yes" ] || rm -fR "$hb_rootdir/$hb_flst"
|
|
|
|
cd "$hb_currdir"
|