ALT Linux repos
S: | 115.2.2-alt1 |
5.0: | 2.0.0.21-alt0.M50.3 |
4.1: | 2.0.0.21-alt0.M41.1 |
4.0: | 2.0.0.21-alt0.M40.1 |
3.0: | 1.0.6-alt2.1 |
+updates: | 1.0.8-alt0.M30.1 |
Group :: Networking/Mail
RPM: thunderbird
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
build_dist.sh 0000755 0000000 0000000 00000003232 11176163747 0013552 0 ustar 00root root 0000000 0000000 #!/bin/sh -e
#
# $Id: build_dist.sh,v 1.0 2004/03/07 17:53:42 legion Exp $
#
indexfile="${indexfile:=./thunderbird-content-index}"
# Generation target directories
top_dir="${top_dir:=./dist}"
dist_bindir="${top_dir}/bin"
dist_includedir="${top_dir}/include"
dist_idldir="${top_dir}/idl"
# Real directories
real_bindir="${real_bindir:=/usr/lib/thunderbird}"
real_includedir="${real_includedir:=/usr/include/thunderbird}"
real_idldir="${real_idldir:=/usr/share/idl/thunderbird}"
# Make top build dir
[ -d "$top_dir" ] || mkdir "$top_dir"
# Make target directories
[ -d "$dist_bindir" ] || mkdir "$dist_bindir"
[ -d "$dist_idldir" ] || mkdir "$dist_idldir"
[ -d "$dist_includedir" ] || mkdir "$dist_includedir"
make_link() {
distdir="$1"; realdir="$2"; f="$3"
d="${f%/*}"
[ ! -e "${distdir}/${d}" -a -n "$d" -a -d "${realdir}/${d}" ] && mkdir -p "${distdir}/${d}"
[ ! -e "${distdir}/${f}" -a -f "${realdir}/${f}" ] && ln -s "${realdir}/${f}" "${distdir}/${f}"
}
[ -f "$indexfile" ] || { echo "$indexfile: not found">&2; exit 1; }
while read f; do
case "$f" in
$real_bindir/*) make_link "${dist_bindir}" "${real_bindir}" "${f##$real_bindir/}" ||: ;;
$real_includedir/*) make_link "${dist_includedir}" "${real_includedir}" "${f##$real_includedir/}" ||: ;;
$real_idldir/*) make_link "${dist_idldir}" "${real_idldir}" "${f##$real_idldir/}" ||: ;;
*) echo "Ignore: $f" ;;
esac
done < "$indexfile"
# Extensions may want to write at follow files.
rm -f "$dist_bindir/chrome/installed-chrome.txt" "$dist_bindir/chrome/chromelist.txt"
touch "$dist_bindir/chrome/installed-chrome.txt" "$dist_bindir/chrome/chromelist.txt"
exit 0