Simplify cloning astyle source
This commit is contained in:
@@ -80,12 +80,8 @@ fi
|
|||||||
# Put everything in this directory
|
# Put everything in this directory
|
||||||
FILESDIR=$INSTALL_ROOT/$ASTYLE_VER
|
FILESDIR=$INSTALL_ROOT/$ASTYLE_VER
|
||||||
|
|
||||||
git clone --sparse ${REPO_URL} "$workdir"
|
git clone -b "${ASTYLE_VER}" --depth 1 ${REPO_URL} "$workdir"
|
||||||
cd "$workdir"
|
cd "$workdir"/AStyle
|
||||||
git sparse-checkout set AStyle
|
|
||||||
git checkout tags/${ASTYLE_VER}
|
|
||||||
|
|
||||||
cd "AStyle"
|
|
||||||
|
|
||||||
make_args="DESTDIR=$FILESDIR"
|
make_args="DESTDIR=$FILESDIR"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user