mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-06 11:46:56 +00:00
Update of the repack script to integrate the https://github.com/opencollab/llvm-toolchain-integration-test-suite/ repo
This commit is contained in:
parent
a744c12727
commit
0261307bc4
38
debian/orig-tar.sh
vendored
38
debian/orig-tar.sh
vendored
@ -33,6 +33,20 @@ if test -n "${JENKINS_HOME}"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
GIT_BASE_URL=https://github.com/llvm/llvm-project
|
GIT_BASE_URL=https://github.com/llvm/llvm-project
|
||||||
|
GIT_TOOLCHAIN_CHECK=https://github.com/opencollab/llvm-toolchain-integration-test-suite.git
|
||||||
|
|
||||||
|
|
||||||
|
function reset-repo {
|
||||||
|
cd $1
|
||||||
|
git clean -qfd
|
||||||
|
git checkout .
|
||||||
|
git remote update > /dev/null
|
||||||
|
git reset --hard origin/master > /dev/null
|
||||||
|
git clean -qfd
|
||||||
|
git checkout master > /dev/null
|
||||||
|
git pull
|
||||||
|
cd -
|
||||||
|
}
|
||||||
|
|
||||||
PATH_DEBIAN="$(pwd)/$(dirname $0)/../"
|
PATH_DEBIAN="$(pwd)/$(dirname $0)/../"
|
||||||
cd "$PATH_DEBIAN"
|
cd "$PATH_DEBIAN"
|
||||||
@ -41,11 +55,13 @@ if test -z "$MAJOR_VERSION"; then
|
|||||||
echo "Could not detect the major version"
|
echo "Could not detect the major version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CURRENT_VERSION=$(dpkg-parsechangelog | sed -rne "s,^Version: 1:([0-9.]+)(~|-)(.*),\1,p")
|
CURRENT_VERSION=$(dpkg-parsechangelog | sed -rne "s,^Version: 1:([0-9.]+)(~|-)(.*),\1,p")
|
||||||
if test -z "$CURRENT_VERSION"; then
|
if test -z "$CURRENT_VERSION"; then
|
||||||
echo "Could not detect the full version"
|
echo "Could not detect the full version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd - &> /dev/null
|
cd - &> /dev/null
|
||||||
echo "MAJOR_VERSION=$MAJOR_VERSION / CURRENT_VERSION=$CURRENT_VERSION"
|
echo "MAJOR_VERSION=$MAJOR_VERSION / CURRENT_VERSION=$CURRENT_VERSION"
|
||||||
if test -n "$1"; then
|
if test -n "$1"; then
|
||||||
@ -84,21 +100,22 @@ cd git-archive
|
|||||||
if test -d $EXPORT_PATH/llvm-project; then
|
if test -d $EXPORT_PATH/llvm-project; then
|
||||||
echo "Updating repo in $EXPORT_PATH/llvm-project"
|
echo "Updating repo in $EXPORT_PATH/llvm-project"
|
||||||
# Update it
|
# Update it
|
||||||
cd $EXPORT_PATH/llvm-project
|
reset-repo $EXPORT_PATH/llvm-project
|
||||||
git clean -qfd
|
|
||||||
git checkout .
|
|
||||||
git remote update > /dev/null
|
|
||||||
git reset --hard origin/master > /dev/null
|
|
||||||
git clean -qfd
|
|
||||||
git checkout master > /dev/null
|
|
||||||
git pull
|
|
||||||
cd ..
|
|
||||||
else
|
else
|
||||||
# Download it
|
# Download it
|
||||||
echo "Cloning the repo in $EXPORT_PATH/llvm-project"
|
echo "Cloning the repo in $EXPORT_PATH/llvm-project"
|
||||||
git clone $GIT_BASE_URL $EXPORT_PATH/llvm-project
|
git clone $GIT_BASE_URL $EXPORT_PATH/llvm-project
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -d $EXPORT_PATH/llvm-toolchain-integration-test-suite; then
|
||||||
|
echo "Updating repo in $EXPORT_PATH/llvm-toolchain-integration-test-suite"
|
||||||
|
# Update it
|
||||||
|
reset-repo $EXPORT_PATH/llvm-toolchain-integration-test-suite
|
||||||
|
else
|
||||||
|
echo "Clone llvm-toolchain-integration-test-suite into $EXPORT_PATH/llvm-toolchain-integration-test-suite"
|
||||||
|
git clone $GIT_TOOLCHAIN_CHECK $EXPORT_PATH/llvm-toolchain-integration-test-suite
|
||||||
|
fi
|
||||||
|
|
||||||
cd $EXPORT_PATH/llvm-project
|
cd $EXPORT_PATH/llvm-project
|
||||||
if test -z "$TAG" -a -z "$FINAL_RELEASE"; then
|
if test -z "$TAG" -a -z "$FINAL_RELEASE"; then
|
||||||
# Building a branch
|
# Building a branch
|
||||||
@ -142,8 +159,11 @@ rm -rf */www/
|
|||||||
cd ../
|
cd ../
|
||||||
BASE="llvm-toolchain-${MAJOR_VERSION}_${VERSION}"
|
BASE="llvm-toolchain-${MAJOR_VERSION}_${VERSION}"
|
||||||
FILENAME="${BASE}.orig.tar.xz"
|
FILENAME="${BASE}.orig.tar.xz"
|
||||||
|
|
||||||
|
cp -R llvm-toolchain-integration-test-suite llvm-project/integration-test-suite
|
||||||
echo "Compressing to $FILENAME"
|
echo "Compressing to $FILENAME"
|
||||||
tar Jcf $CURRENT_PATH/"$FILENAME" --exclude .git --transform="s|llvm-project|$BASE|" -C $EXPORT_PATH llvm-project
|
tar Jcf $CURRENT_PATH/"$FILENAME" --exclude .git --transform="s|llvm-project|$BASE|" -C $EXPORT_PATH llvm-project
|
||||||
|
rm -rf llvm-project/integration-test-suite
|
||||||
|
|
||||||
export DEBFULLNAME="Sylvestre Ledru"
|
export DEBFULLNAME="Sylvestre Ledru"
|
||||||
export DEBEMAIL="sylvestre@debian.org"
|
export DEBEMAIL="sylvestre@debian.org"
|
||||||
|
Loading…
Reference in New Issue
Block a user