Files
harbour-core/harbour/bin/pack_src.sh
Przemyslaw Czerpak bfc607d9fb 2007-12-02 04:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/mouse53.c
    * do not include unnecessary header files

  * harbour/bin/pack_src.sh
    * changed packing procedure - now it does not scan chosen directories
      and files but all contents of all .svn/entries to extract files
      stores in SVN repository and then pack them - it's very good method
      to pack whole Harbour repository without .svn/* data and risk of
      packing local files.

  * harbour/harbour.spec
  * harbour/harbour-ce-spec
  * harbour/harbour-w32-spec
    * updated for recent changes in directory and library names
2007-12-02 03:00:51 +00:00

41 lines
883 B
Bash
Executable File

#!/bin/sh
#
# $Id$
#
# This script requires "TAR" utilities for compression.
hb_archbin="tar"
hb_archopt="-cz --ignore-failed-read -f"
hb_ext=".tar.gz"
if [ -f bin/hb-func.sh ]; then
hb_rootdir="."
else
hb_rootdir=`dirname $0`
hb_rootdir="${hb_rootdir}/.."
hb_archopt="-C $hb_rootdir $hb_archopt"
fi
. ${hb_rootdir}/bin/hb-func.sh
hb_ver=`get_hbver ${hb_rootdir}`
hb_filename="harbour-${hb_ver}.src${hb_ext}"
rm -f $hb_filename
#[ -z "$TZ" ] && export TZ=PST8PDT
hb_collect_all()
{
for d in `find . -name ".svn"`
do
for f in `sed -e '/^[ ]*name="..*"$/ !d' -e 's/^[ ]*name="\(.*\)"$/\1/g' $d/entries`
do
f="`dirname $d`/$f"
[ -f "$f" ] && echo "$f"
done
done
}
hb_flst="$hb_rootdir/bin/hb_flst.tmp"
(cd "$hb_rootdir";hb_collect_all) > "$hb_flst"
$hb_archbin $hb_archopt $hb_filename --files-from "$hb_flst"
rm -fR "$hb_flst"