diff options
| author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
|---|---|---|
| committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
| commit | 6d80ae38e4bfa82323398ceba27f25f94072bf5f (patch) | |
| tree | 8ff7b57768c1e395e55e3c177687fb76d9d74ea3 /release/pack | |
| download | other-6d80ae38e4bfa82323398ceba27f25f94072bf5f.tar.gz other-6d80ae38e4bfa82323398ceba27f25f94072bf5f.zip | |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'release/pack')
| -rwxr-xr-x | release/pack | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/release/pack b/release/pack new file mode 100755 index 0000000..410f13c --- /dev/null +++ b/release/pack @@ -0,0 +1,60 @@ +#!/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 + |
