Browse Source

Moved utils script to utils/ (instead of trunk)

master
Andrea Luzzardi 18 years ago
parent
commit
9f56f75b6e
2 changed files with 8 additions and 3 deletions
  1. +3
    -1
      pam_usb/utils/fetch_doc.rb
  2. +5
    -2
      pam_usb/utils/roll_release.sh

fetch_doc.rb → pam_usb/utils/fetch_doc.rb View File

@ -9,7 +9,7 @@
require 'open-uri' require 'open-uri'
BASE_URI = 'http://www.pamusb.org/wiki/doc/' BASE_URI = 'http://www.pamusb.org/wiki/doc/'
DOC_PATH = './pam_usb/doc/'
DOC_PATH = '../doc/'
DOCS = [ 'installation', 'upgrading', 'configuration', 'faq' ] DOCS = [ 'installation', 'upgrading', 'configuration', 'faq' ]
MANS = [ 'pusb_hotplug', 'pusb_conf', 'pusb_check' ] MANS = [ 'pusb_hotplug', 'pusb_conf', 'pusb_check' ]
@ -50,6 +50,8 @@ def fetch_doc(name)
body body
end end
Dir.chdir(File.dirname($0))
DOCS.each do |doc| DOCS.each do |doc|
print "Fetching doc:#{doc}... " print "Fetching doc:#{doc}... "
STDOUT.flush STDOUT.flush

roll_release.sh → pam_usb/utils/roll_release.sh View File

@ -6,7 +6,7 @@
# and performs basic QA checks. # and performs basic QA checks.
# #
TRUNK_PATH="./pam_usb"
TRUNK_PATH="../"
clean_sources() clean_sources()
{ {
@ -37,7 +37,10 @@ create_release()
echo "* Rolling release $1 on $BUILD_ENV..." echo "* Rolling release $1 on $BUILD_ENV..."
cp -r $TRUNK_PATH ${SRC_PATH} cp -r $TRUNK_PATH ${SRC_PATH}
echo "* Cleaning up..."
find "$SRC_PATH" -type d -name ".svn" -exec rm -rf "{}" + find "$SRC_PATH" -type d -name ".svn" -exec rm -rf "{}" +
rm -rf $SRC_PATH/utils
echo "* Tagging release \"$1\"" echo "* Tagging release \"$1\""
sed -ri "s/(PUSB_VERSION) \"[^\"]*\"/\1 \"${1}\"/" ${SRC_PATH}/src/version.h sed -ri "s/(PUSB_VERSION) \"[^\"]*\"/\1 \"${1}\"/" ${SRC_PATH}/src/version.h
@ -47,7 +50,7 @@ create_release()
tar -zcf $TARBALL pam_usb-${1} tar -zcf $TARBALL pam_usb-${1}
cd - > /dev/null cd - > /dev/null
cp -a $SRC_PATH ../tags/${1}
cp -a $SRC_PATH ${TRUNK_PATH}/../../tags/${1}
cp ${BUILD_ENV}/${TARBALL} . cp ${BUILD_ENV}/${TARBALL} .
rm -rf $BUILD_ENV rm -rf $BUILD_ENV

Loading…
Cancel
Save