1 Star 0 Fork 2

Guoge / third_party_sonic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mkorig 788 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# This file was written by Bill Cox in 2010, and is licensed under the Apache
# 2.0 license.
# Build an original tar-ball for a debian package free of a debian directory and
# .git.
version=`head -1 debian/changelog | sed 's/.*(//
s/-.*//'`
sed -i "s/LIB_TAG=.*/LIB_TAG=$version/" Makefile
if [ "`basename $PWD`" != "sonic-$version" ]; then
echo "Directory name should be sonic-$version"
exit 1
fi
make clean
make -f debian/rules clean
echo "sonic_${version} (git: `git log -1 --oneline | sed 's/ .*//'`)" > version
git2cl > ChangeLog
cd ..
if ! tar -cvzf sonic_$version.orig.tar.gz --exclude-vcs --exclude=debian sonic-$version; then
echo "Could not create sonic_$version.orig.tar.gz"
exit 1
fi
echo "Successfully created sonic_$version.orig.tar.gz"
1
https://gitee.com/yichenGGG/third_party_sonic.git
git@gitee.com:yichenGGG/third_party_sonic.git
yichenGGG
third_party_sonic
third_party_sonic
master

搜索帮助