Changeset 821


Ignore:
Timestamp:
Feb 3, 2010, 9:41:34 PM (15 years ago)
Author:
joergs
Message:

added support for multiple OSC_PACKAGES

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dassbuild/trunk/usr/bin/dassbuild_osc.sh

    r762 r821  
    6969fi
    7070
    71 # remove double slashes (/)
    72 OSC_PACKAGE=`sed 's|/[/]*|/|g' <<< $OSC_PACKAGE`
     71for i in $OSC_PACKAGE; do
     72    # remove double slashes (/)
     73    OSC_PACKAGE=`sed 's|/[/]*|/|g' <<< $i`
    7374
    74 osc co $OSC_PACKAGE || {
    75     echo
    76     echo 'An existing "openSUSE Build Service" project must be specified.'
    77     echo 'To specify it, use the config file OSC_PACKAGE or the environment variable OSBS_PROJECT'
    78     exit 1
    79 }
    80 # rsync is not usable, because ":" is interpretaded as remote host
    81 #rsync -av "$BUILDSRC_DIR/*" "$OSC_PACKAGE/."
    82 #cp -av $BUILDSRC_DIR/* $OSC_PACKAGE/.
     75    osc co $OSC_PACKAGE || {
     76        echo
     77        echo 'An existing "openSUSE Build Service" project must be specified.'
     78        echo 'To specify it, use the config file OSC_PACKAGE or the environment variable OSBS_PROJECT'
     79        exit 1
     80    }
     81    # rsync is not usable, because ":" is interpretaded as remote host
     82    #rsync -av "$BUILDSRC_DIR/*" "$OSC_PACKAGE/."
     83    #cp -av $BUILDSRC_DIR/* $OSC_PACKAGE/.
    8384
    84 cd $OSC_PACKAGE || exit 1
    85 # rsync -a: -rlptgoD
    86 # but we don't want to check for timestamps
    87 # NOTE: this doesn't help, if the data (tar.bz2)
    88 #   contains dynamic data like the Changes file
    89 rsync --checksum -r -v --delete $BUILDSRC_DIR/. . --exclude .osc
     85    cd $OSC_PACKAGE || exit 1
     86    # rsync -a: -rlptgoD
     87    # but we don't want to check for timestamps
     88    # NOTE: this doesn't help, if the data (tar.bz2)
     89    #   contains dynamic data like the Changes file
     90    rsync --checksum -r -v --delete $BUILDSRC_DIR/. . --exclude .osc
    9091
    91 if [ "$LOCAL_BUILD" ]; then
    92     echo 'skipped. Use
    93 # local build:
    94 # osc repos | while read DIST ARCH; do osc build --no-verify $DIST $ARCH; done
    95 # '
    96 else
    97     osc addremove
    98     osc commit -m "release $VERSION"
    99 fi
    100 
     92    if [ "$LOCAL_BUILD" ]; then
     93        echo 'skipped. Use
     94    # local build:
     95    # osc repos | while read DIST ARCH; do osc build --no-verify $DIST $ARCH; done
     96    # '
     97    else
     98        osc addremove
     99        osc commit -m "release $VERSION"
     100    fi
     101    cd -
     102done
Note: See TracChangeset for help on using the changeset viewer.