/[linux-patches]/genpatches-2.6-misc/scripts/gpdorelease
Gentoo

Diff of /genpatches-2.6-misc/scripts/gpdorelease

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

Revision 1944 Revision 1945
1#!/bin/bash 1#!/bin/bash
2 2
3#updated for 3.0
4
5function usage {
6 echo ">>> USAGE: gpdorelease <version>"
7 echo "This will expand to ${LOCAL_PATCHES_TRUNK}/<version>"
8 echo "To support the 3.0 release of Linux, this script now requires the full kernel version"
9 echo "Example: gpdorelease 3.0 or gpdorelease 2.6.39"
10}
11
3if [[ ${#@} == 0 ]] ; then 12if [[ ${#@} == 0 ]] ; then
4 echo ">>> USAGE: gpdorelease <branch-minor>" 13 usage
5 echo "This will expand to ${LOCAL_PATCHES_TRUNK}/2.6.<branch-minor>" 14 exit -1
6 exit -1
7fi 15fi
8 16
9if [[ ${1} == "--config" ]] ; then 17if [[ ${1} == "--config" ]] ; then
10 echo "Sourcing ${2} instead of ~/.genpatchesrc" 18 echo "Sourcing ${2} instead of ~/.genpatchesrc"
11 source ${2} 19 source ${2}
12 shift 2 20 shift 2
21 if [[ ${#@} == 0 ]] ; then
22 usage
23 exit -1
24 fi
13else 25else
14 echo "Using default config at ~/.genpatchesrc" 26 echo "Using default config at ~/.genpatchesrc"
15 source ~/.genpatchesrc 27 source ~/.genpatchesrc
16fi 28fi
17 29
18BRANCH="2.6.$1" 30BRANCH="$1"
19 31
20if [[ $(svn status ${LOCAL_PATCHES_TRUNK} | wc -l) != "0" ]] ; then 32if [[ $(svn status ${LOCAL_PATCHES_TRUNK} | wc -l) != "0" ]] ; then
21 echo ">>> ERROR: There are uncommited changes in ${LOCAL_PATCHES_TRUNK}" 33 echo ">>> ERROR: There are uncommited changes in ${LOCAL_PATCHES_TRUNK}"
22 exit -1 34 exit -1
23fi 35fi

Legend:
Removed from v.1944  
changed lines
  Added in v.1945

  ViewVC Help
Powered by ViewVC 1.1.20