Simplify cloning astyle source

This commit is contained in:
Koichiro Iwao 2024-02-08 21:17:03 +09:00
parent 47d4ab1339
commit b8f0094603
1 changed files with 2 additions and 6 deletions

View File

@ -80,12 +80,8 @@ fi
# Put everything in this directory
FILESDIR=$INSTALL_ROOT/$ASTYLE_VER
git clone --sparse ${REPO_URL} "$workdir"
cd "$workdir"
git sparse-checkout set AStyle
git checkout tags/${ASTYLE_VER}
cd "AStyle"
git clone -b "${ASTYLE_VER}" --depth 1 ${REPO_URL} "$workdir"
cd "$workdir"/AStyle
make_args="DESTDIR=$FILESDIR"