mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 04:23:49 +00:00
15 lines
420 B
Bash
Executable File
15 lines
420 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Backward-compatible maintainer entrypoint for the offline release archive.
|
|
set -euo pipefail
|
|
root=$(git rev-parse --show-toplevel)
|
|
name=shadowsocks-c
|
|
directory=$root
|
|
while getopts "n:o:" opt; do
|
|
case "$opt" in
|
|
n) name=$OPTARG ;;
|
|
o) directory=$OPTARG ;;
|
|
*) exit 1 ;;
|
|
esac
|
|
done
|
|
exec python3 "$root/scripts/source_archive.py" "$directory/$name.tar.gz" --prefix "$name"
|