Magellan Linux

Diff of /trunk/pkgtools/svn-branch.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3104 by niro, Tue May 31 17:42:39 2011 UTC revision 3105 by niro, Fri Mar 15 10:10:11 2019 UTC
# Line 15  MESSAGE="$2" Line 15  MESSAGE="$2"
15  [[ -z ${BRANCH} ]] && usage  [[ -z ${BRANCH} ]] && usage
16  [[ -z ${Message} ]] && MESSAGE="created branch '${BRANCH}'"  [[ -z ${Message} ]] && MESSAGE="created branch '${BRANCH}'"
17    
18  URI="$(svn info | grep 'URL:' | cut -d' ' -f2)"  URI="$(svn info | grep '^URL:' | cut -d' ' -f2)"
19  [[ $? -ne 0 ]] && usage  [[ $? -ne 0 ]] && usage
20  REPO_ROOT="$(svn info | grep 'Repository Root:' | cut -d' ' -f3)"  REPO_ROOT="$(svn info | grep 'Repository Root:' | cut -d' ' -f3)"
21  [[ $? -ne 0 ]] && usage  [[ $? -ne 0 ]] && usage
22    
23  echo "creating branch ${URI} with '${BRANCH}'..."  echo "creating branch ${URI} with '${BRANCH}'..."
24  svn copy -m "${MESSAGE}" "${URI}" "${REPO_ROOT}/branches/${BRANCH}"  svn copy -m "${MESSAGE}" "${URI}" "${REPO_ROOT}/${SUBDIR}/branches/${BRANCH}"

Legend:
Removed from v.3104  
changed lines
  Added in v.3105