X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=makedist.sh;h=30863852f8113a5f95fada94e4545467e2c078ea;hb=0139e8deda4112d2c3dcd52e0ad72162e54caa03;hp=2a56cf59021bb2c9ec64c4631ca0a9d0ecdf0a29;hpb=8a642c7fe2f6d615bb87070e5fe05dab5acfe29d;p=nncp.git diff --git a/makedist.sh b/makedist.sh index 2a56cf5..3086385 100755 --- a/makedist.sh +++ b/makedist.sh @@ -6,60 +6,78 @@ release=$1 [ -n "$release" ] git clone . $tmp/nncp-$release -repos=" - src/github.com/davecgh/go-xdr - src/github.com/dustin/go-humanize - src/github.com/flynn/noise - src/golang.org/x/crypto - src/golang.org/x/net - src/golang.org/x/sys - src/gopkg.in/check.v1 - src/gopkg.in/yaml.v2 +cd $tmp/nncp-$release +git checkout v$release +rm -fr .git + +mod_name=go.cypherpunks.ru/nncp/v5 +mv src src.orig +mkdir -p src/$mod_name +mv src.orig/* src/$mod_name +rmdir src.orig + +mods=" +github.com/davecgh/go-xdr +github.com/dustin/go-humanize +github.com/flynn/noise +github.com/gorhill/cronexpr +github.com/hjson/hjson-go +go.cypherpunks.ru/balloon +golang.org/x/crypto +golang.org/x/net +golang.org/x/sys " -for repo in $repos; do - git clone $repo $tmp/nncp-$release/$repo +for mod in $mods; do + mod_path=$(sed -n "s#^ \($mod\) \(.*\)\$#\1@\2#p" src/$mod_name/go.mod) + [ -n "$mod_path" ] + mkdir -p src/$mod + ( cd $GOPATH/pkg/mod/$mod_path ; tar cf - --exclude ".git*" * ) | tar xfC - src/$mod + chmod -R +w src/$mod done -cd $tmp/nncp-$release -git checkout $release -git submodule update --init cat > $tmp/includes <8 ------------------------ NNCP's home page is: http://www.nncpgo.org/ -Also available as I2P service: -http://ryeyslcg6oajmyruje3weqayepze5e5oglxndhkavzfatgnxcd7q.b32.i2p/ Source code and its signature for that version can be found here: @@ -175,8 +197,6 @@ $(git cat-file -p $release | sed -n '6,/^.*BEGIN/p' | sed '$d') ------------------------ >8 ------------------------ Домашняя страница NNCP: http://www.nncpgo.org/ -Также доступная как I2P сервис: -http://ryeyslcg6oajmyruje3weqayepze5e5oglxndhkavzfatgnxcd7q.b32.i2p/ Коротко об утилитах: http://www.nncpgo.org/Ob-utilitakh.html Исходный код и его подпись для этой версии находятся здесь: