You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-common-other/release/pack

61 lines
1.9 KiB

#!/bin/bash
# This is the main script.
# Call it with the package name as argument, like: ./pack kdelibs
# Make sure to update the version numbers inside "common" first.
#
# Environment variables that can be set
# $scriptpath = path to kde-common/release (by default: .. )
source `dirname $0`/common $1 $2
MEINPROCPATH=`type -p meinproc`
if test -f "$MEINPROCPATH"; then
MEINPROCPATH=`dirname $MEINPROCPATH`
fi
if test -n "$MEINPROCPATH"; then
export PATH=$MEINPROCPATH:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
echo "PATH changed to $PATH"
fi
test -n "$package" || { echo "requires modulename as parameter"; exit 1; }
test -d clean || { echo "create clean subdir with cvs checkout"; exit 1; }
test -d dirty || mkdir dirty || { echo "create empty subdir dirty"; exit 1; }
test -d sources || mkdir sources || { echo "create empty subdir sources"; exit 1; }
test -d sources-old || { echo "create empty subdir sources-old with reference files for xdelta"; exit 1; }
if test $isl10n -eq 1; then
test -d sources/$package || mkdir sources/$package || { echo "create empty subdir sources/$package"; exit 1; }
fi
test -d clean/$package || { echo "clean/$package does not exist"; exit 1; }
test -d dirty/$package-$version && { echo "rm -rf dirty/$package-$version"; rm -rf dirty/$package-$version; }
test -d dirty/$package && { echo "rm -rf dirty/$package"; rm -rf dirty/$package; }
if test -z "$HARDLINKS"; then
echo "cp -pr clean/$package dirty"
cp -pr clean/$package dirty || exit 1
else
echo "cp -prl clean/$package dirty"
cp -prl clean/$package dirty || exit 1
fi
echo "cd dirty"
cd dirty || exit 1
# Anonymize checkout
echo "anon $package"
$scriptpath/anon $package || exit 1
if test -z "$DOINGSNAPSHOT"; then
# Generate docu
echo "docu $package"
$scriptpath/docu $package
fi
# Prepare for distribution
echo "dist $package"
$scriptpath/dist $package $version || exit 1
# Final packaging
echo "taritup $package"
$scriptpath/taritup $package $version || exit 1