From c930fc4b6a5ec2d7972e6b7144272928361948cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Thu, 22 Aug 2019 16:14:33 +0200 Subject: [PATCH] Better way of creating orig files (2017-08-17) --- HOWTO-orig.sh | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/HOWTO-orig.sh b/HOWTO-orig.sh index a5bbe69..fbcfd35 100755 --- a/HOWTO-orig.sh +++ b/HOWTO-orig.sh @@ -1,8 +1,26 @@ #! /bin/sh -git clone https://github.com/google/protobuf protobuf-2.5.0 && cd protobuf-2.5.0 -git checkout v2.5.0 -curl http://googletest.googlecode.com/files/gtest-1.5.0.tar.bz2 | tar jx -mv gtest-1.5.0 gtest -dh_make --createorig -cd .. +#git clone https://github.com/google/protobuf protobuf-2.5.0 && cd protobuf-2.5.0 +#git checkout v2.5.0 +#curl http://googletest.googlecode.com/files/gtest-1.5.0.tar.bz2 | tar jx +#mv gtest-1.5.0 gtest +#dh_make --createorig +#cd .. + +OWNER=google +TAG=v2.5.0 +name=protobuf +version=2.5.0 +protobuf_version=$version +wget -nv "https://github.com/${OWNER}/${name}/archive/${TAG}/${name}-${version}.tar.gz" +tar xzf "${name}-${version}.tar.gz" + +OWNER=google +TAG=release-1.5.0 +name=googletest +version=1.5.0 +wget -nv "https://github.com/${OWNER}/${name}/archive/${TAG}/${name}-${version}.tar.gz" +tar xzf "${name}-${version}.tar.gz" + +mv -v "${name}-release-${version}/" "protobuf-${protobuf_version}/" +tar -cf - | gzip > "protobuf_${protobuf_version}.orig.tar.gz" "protobuf-${protobuf_version}/gtest" -- 1.8.2.3