mkhdr.sh

来自「cryptlib安全工具包」· Shell 代码 · 共 35 行

SH
35
字号
#!/bin/sh
# Create the headers/interface files for non-C languages from the cryptlib
# C header file.

# Create the Delphi and VB headers.

perl tools/GenPas.pl
perl tools/GenVB.pl
mv -f cryptlib.?as bindings

# Create the Perl headers

perl tools/GenPerl.pl
mv -f PerlCryptLib.ph bindings

# Create the Java, Python, and .NET interface.

python tools/cryptlibConverter.py cryptlib.h bindings java
python tools/cryptlibConverter.py cryptlib.h bindings python
python tools/cryptlibConverter.py cryptlib.h bindings net

# Bundle everything up for download.  We have to send the pushd output to
# /dev/null since bash performs an implicit 'dirs' if the pushd/popd
# succeeds.

rm -f bindings.zip
pushd bindings > /dev/null
zip -qo9 ../bindings cryptlib.bas cryptlib.cs cryptlib.jar cryptlib.pas java_jni.c PerlCryptLib.* Makefile.PL python.c setup.py
popd > /dev/null

# Tell the user what we've done

echo "Updated language bindings have been moved to file 'bindings.zip'."
echo

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?