summaryrefslogtreecommitdiff
path: root/glib/update-pcre/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'glib/update-pcre/update.sh')
-rw-r--r--glib/update-pcre/update.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/glib/update-pcre/update.sh b/glib/update-pcre/update.sh
index 0e558dd5c..69d7f8aa7 100644
--- a/glib/update-pcre/update.sh
+++ b/glib/update-pcre/update.sh
@@ -43,7 +43,8 @@ cd pcre
# the file and then distribute it with GRegex.
echo "Generating pcre_chartables.c"
cp -R "${PCRE}" tmp-build
-cd tmp-build
+(
+cd tmp-build || exit 1
./configure --enable-utf8 --enable-unicode-properties --disable-cpp > /dev/null
make pcre_chartables.c > /dev/null
cat > ../pcre_chartables.c << \EOF
@@ -52,7 +53,7 @@ cat > ../pcre_chartables.c << \EOF
*/
EOF
cat pcre_chartables.c >> ../pcre_chartables.c
-cd ..
+)
rm -R tmp-build
# Compiled C files.