Changeset 745 for trunk/server/release-scripts
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/release-scripts/create-tarball
r429 r745 4 4 OPT_BRANCH="" 5 5 OPT_DOCSDIR="" 6 OPT_TAG=""7 6 OPT_KEYID="" 8 7 … … 33 32 echo " --branch <name> Specify the branch to to create the archive file from" 34 33 echo " --copy-docs <dir> Copy documentation from <dir> rather than building" 35 echo " --tag <name> Tag name for release"36 34 echo " --keyid <email> The GnuPG key ID used to sign the release tag" 37 35 echo "" … … 68 66 shift 69 67 ;; 70 --tag)71 shift72 if [ -z "$1" ]; then73 printUsage74 return 175 fi76 OPT_TAG="$1"77 shift78 ;;79 68 --keyid) 80 69 shift … … 101 90 102 91 ## 103 ## Build the do pcumentation (may be a no-op)92 ## Build the documentation (may be a no-op) 104 93 ## 105 94 … … 146 135 function createReleaseTag 147 136 { 148 if [ -z "${OPT_TAG}" ]; then 149 echo "Tagging disabled" 150 return 0 151 fi 152 153 if [ "x`git tag -l ${OPT_TAG}`" != "x" ]; then 154 echo -n "Tag exists. Do you wish to overwrite? (y/N): " 137 tagname="$1" 138 139 if [ "x`git tag -l ${tagname}`" != "x" ]; then 140 echo -n "Tag '${tagname}' exists. Do you wish to overwrite? (y/N): " 155 141 read answer 156 142 … … 169 155 fi 170 156 171 git tag -u ${OPT_KEYID} ${ OPT_TAG}172 exitOnError $? "Failed to create tag "157 git tag -u ${OPT_KEYID} ${tagname} 158 exitOnError $? "Failed to create tag '${tagname}'" 173 159 174 160 return 0 … … 214 200 # the DFSG) 215 201 216 #if [ -d source4 ]; then 217 # echo "Removing RFCs" 218 # find source4/ -name "rfc*.txt" -exec rm -f {} \; 219 #fi 202 if [ -d source4 ]; then 203 echo "Removing RFCs" 204 find source4/ -name "rfc*.txt" -exec /bin/rm -f {} \; 205 /bin/rm -f source4/ldap_server/devdocs/draft-armijo-ldap-syntax-00.txt 206 /bin/rm -f source4/ldap_server/devdocs/ldapext-ldapv3-vlv-04.txt 207 fi 208 209 /bin/rm -f Makefile configure configure.developer 220 210 221 211 packaging/bin/update-pkginfo ${version} 1 "" … … 238 228 popd 239 229 240 createReleaseTag 230 createReleaseTag "samba-${version}" 241 231 exitOnError $? "Failed to create release tag" 242 232
Note:
See TracChangeset
for help on using the changeset viewer.