#!/bin/bash
set -x
set -e

rm -f arb.tgz arb-dev.tgz

tar -czf arb.tgz -T <(
  find demo.arb arb_install.sh arb_*.txt
  find bin lib PERL_SCRIPTS SH \
     ! -type d \
     ! -path \*/pts/\* \
     ! -path \*/.svn/\* \
     ! -path \*/unused/\* \
     ! -path \*ChangeLog \
     ! -path \*lib/nas/names.dat \
     ! -name \#\* 
)
   
tar -czhf arb-dev.tgz -T <(
  find . -name \*.a -o -path \*/INCLUDE/\*.h\*
)

ls -al arb*.tgz
