Changeset 821 for dassbuild/trunk/usr
- Timestamp:
- Feb 3, 2010, 9:41:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dassbuild/trunk/usr/bin/dassbuild_osc.sh
r762 r821 69 69 fi 70 70 71 # remove double slashes (/) 72 OSC_PACKAGE=`sed 's|/[/]*|/|g' <<< $OSC_PACKAGE` 71 for i in $OSC_PACKAGE; do 72 # remove double slashes (/) 73 OSC_PACKAGE=`sed 's|/[/]*|/|g' <<< $i` 73 74 74 osc co $OSC_PACKAGE || {75 echo76 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 179 }80 # rsync is not usable, because ":" is interpretaded as remote host81 #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/. 83 84 84 cd $OSC_PACKAGE || exit 185 # rsync -a: -rlptgoD86 # but we don't want to check for timestamps87 # NOTE: this doesn't help, if the data (tar.bz2)88 # contains dynamic data like the Changes file89 rsync --checksum -r -v --delete $BUILDSRC_DIR/. . --exclude .osc85 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 90 91 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 - 102 done
Note:
See TracChangeset
for help on using the changeset viewer.