mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 13:26:16 +01:00
update-pcre: Use a subshell to avoid cd ..
Shellcheck warning SC2103. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
51651ac67e
commit
c7d2206df3
@ -43,7 +43,8 @@ cd pcre
|
|||||||
# the file and then distribute it with GRegex.
|
# the file and then distribute it with GRegex.
|
||||||
echo "Generating pcre_chartables.c"
|
echo "Generating pcre_chartables.c"
|
||||||
cp -R "${PCRE}" tmp-build
|
cp -R "${PCRE}" tmp-build
|
||||||
cd tmp-build
|
(
|
||||||
|
cd tmp-build || exit 1
|
||||||
./configure --enable-utf8 --enable-unicode-properties --disable-cpp > /dev/null
|
./configure --enable-utf8 --enable-unicode-properties --disable-cpp > /dev/null
|
||||||
make pcre_chartables.c > /dev/null
|
make pcre_chartables.c > /dev/null
|
||||||
cat > ../pcre_chartables.c << \EOF
|
cat > ../pcre_chartables.c << \EOF
|
||||||
@ -52,7 +53,7 @@ cat > ../pcre_chartables.c << \EOF
|
|||||||
*/
|
*/
|
||||||
EOF
|
EOF
|
||||||
cat pcre_chartables.c >> ../pcre_chartables.c
|
cat pcre_chartables.c >> ../pcre_chartables.c
|
||||||
cd ..
|
)
|
||||||
rm -R tmp-build
|
rm -R tmp-build
|
||||||
|
|
||||||
# Compiled C files.
|
# Compiled C files.
|
||||||
|
Loading…
Reference in New Issue
Block a user