Remove pushd/popd usage from scripts.

GitOrigin-RevId: 122f8ad7baac5df74cf0837e367fc33231c3d706
This commit is contained in:
levlam 2018-12-24 00:41:38 +03:00
parent a05c43ceeb
commit 51f06cffe2
2 changed files with 4 additions and 7 deletions

View File

@ -24,20 +24,17 @@ OPENSSL_OPTIONS="-DOPENSSL_FOUND=1 \
-DOPENSSL_LIBRARIES=\"$OPENSSL_SSL_LIBRARY;$OPENSSL_CRYPTO_LIBRARY\" \
-DOPENSSL_VERSION=\"1.1.0j\""
pushd .
cd build/wasm
eval emconfigure cmake $TD_ROOT $OPENSSL_OPTIONS || exit 1
popd
cd ../..
pushd .
cd build/asmjs
eval emconfigure cmake $TD_ROOT $OPENSSL_OPTIONS -DASMJS=1 || exit 1
popd
cd ../..
pushd .
cd build/generate
cmake $TD_ROOT -GNinja || exit 1
popd
cd ../..
echo "Generating TDLib autogenerated source files..."
cmake --build build/generate --target prepare_cross_compiling || exit 1

View File

@ -1,6 +1,6 @@
#!/bin/sh
pushd .
cd tdweb
npm install || exit 1
npm run build || exit 1
cd ..