From 1825d059deb7f1456110a94e8a3a7ba0e782d37c Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 22 Jan 2014 14:58:44 +0200 Subject: Initial set of tools --- AUTHORS | 6 ++++++ gitignore-pjsip | 21 +++++++++++++++++++++ howto | 14 ++++++++++++++ update_tags | 12 ++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 AUTHORS create mode 100644 gitignore-pjsip create mode 100644 howto create mode 100755 update_tags diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..c7f06a6 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,6 @@ +bennylp = Benny Prijono +ismangil = Perry Ismangil +ming = Liong Sauw Ming +nanang = Nanang Izzuddin +riza = Riza Sulistyo +fahris = fahris diff --git a/gitignore-pjsip b/gitignore-pjsip new file mode 100644 index 0000000..b63157c --- /dev/null +++ b/gitignore-pjsip @@ -0,0 +1,21 @@ +.gitignore +cc-auto.mak +os-auto.mak +bin/ +output/ +build.mak +config.log +config.status +pjlib-util/lib/ +pjlib/include/pj/compat/m_auto.h +pjlib/include/pj/compat/os_auto.h +pjlib/include/pj/config_site.h +pjlib/lib/ +pjmedia/include/pjmedia-codec/config_auto.h +pjmedia/include/pjmedia/config_auto.h +pjmedia/lib/ +pjnath/lib/ +pjsip/include/pjsip/sip_autoconf.h +pjsip/lib/ +third_party/lib/ + diff --git a/howto b/howto new file mode 100644 index 0000000..b9322f7 --- /dev/null +++ b/howto @@ -0,0 +1,14 @@ + +# initial clone: trunk and tags +git svn clone -A AUTHORS -T trunk -t tags http://svn.pjsip.org/repos/pjproject pjproject-git +# get the .gitignore file from the tools repo: +ln -s ../git-tools/gitignore-pjsip .gitignore +# optional: fix location of AUTHORS file: +sed -ie '/authorsfile = /s| = .*| = ../AUTHORS|' .git/config + +# Updating +git svn rebase --fetch-all +../git-tools/update_tags + +# If you want to push somewhere: +git push --tags diff --git a/update_tags b/update_tags new file mode 100755 index 0000000..31ad8a4 --- /dev/null +++ b/update_tags @@ -0,0 +1,12 @@ +#!/bin/sh + +git branch -r | egrep 'tags/(|PR)[0-9]' | sed -e 's"tags/\(.*\)"& v\1"' \ + | while read branch tag; do + if ! git show-ref -q "$tag"; then + echo "Tagging $tag from $branch" + git tag $tag $branch + elif [ `git show-ref -s $branch` != `git show-ref -s $tag` ]; then + echo "Updating $tag from $branch" + git tag -f $tag $branch + fi + done -- cgit v1.2.3