⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 release.sh

📁 此包是为perl或者 Python等高级语言提供一个库
💻 SH
字号:
#!/bin/shGIT_ROOT="git://git.inl.fr/git/nfqueue-bindings"GIT_TAG="origin"set -eVERSION=$(grep "^SET.VERSION" CMakeLists.txt | sed 's/.*"\([^"]\+\)".*/\1/')cleanup(){  :}trap cleanup EXITTGZ="nfqueue-bindings-$VERSION.tar.gz"git archive --format=tar --prefix="nfqueue-bindings-$VERSION/" "$GIT_TAG" | gzip -9 - > $TGZecho "Release file $TGZ is ok"echo -n "$TGZ: "SIZE=$(stat -c "%s" $TGZ)echo "$SIZE bytes"echo -n "MD5 : "SUM=$(md5sum $TGZ | cut -f 1 -d' ')echo "$SUM"echo -n "SHA1: "SUM=$(sha1sum $TGZ | cut -f 1 -d' ')echo "$SUM"echo ""echo "Don't forget to run:"echo "git tag -s nfqueue-bindings-$VERSION"

⌨️ 快捷键说明

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