mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-27 03:03:43 +00:00
add closure? (#1294)
This commit is contained in:
+5
-1
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
set -e
|
||||
|
||||
g_script_path=$(dirname $(readlink -e $0))
|
||||
g_toplevel_path=$(pushd $g_script_path > /dev/null 2>&1; \
|
||||
@@ -56,7 +56,9 @@ generate_tarball()
|
||||
{
|
||||
local tarball_name="${g_name}-${g_version}"
|
||||
local tarball_dir="${g_rpmbuild_topdir}/SOURCES"
|
||||
|
||||
pushd ${g_toplevel_path}
|
||||
|
||||
git archive "v${g_version}" \
|
||||
--format="${g_format}" \
|
||||
--prefix="${tarball_name}/" \
|
||||
@@ -74,6 +76,8 @@ generate_tarball()
|
||||
&& rm "${tarball_dir}/sub_mod.tar" \
|
||||
&& popd) \
|
||||
done
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
while getopts "hv:f:" opt
|
||||
|
||||
Reference in New Issue
Block a user