Commit dff77a9a by Christian Kern

Revert "merge examples script on jenkins has spaces in path, old script failed…

Revert "merge examples script on jenkins has spaces in path, old script failed to do rsync. Corrected."

This reverts commit d517d62a.
parent 9b0b67b3
...@@ -110,7 +110,7 @@ EXAMPLES_DIR="$MYTMPDIR_BUILD/doc/examples_raw" ...@@ -110,7 +110,7 @@ EXAMPLES_DIR="$MYTMPDIR_BUILD/doc/examples_raw"
INTEGRATE_SNIPPETS_SCRIPT="insert_snippets.py" INTEGRATE_SNIPPETS_SCRIPT="insert_snippets.py"
EXAMPLES_TARGET_DIR="$PROJECT_DIR_FULLPATH/doc/examples" EXAMPLES_TARGET_DIR="$PROJECT_DIR_FULLPATH/doc/examples"
if [ -f "$EXAMPLES_DIR/$INTEGRATE_SNIPPETS_SCRIPT" ]; then if [ -f $EXAMPLES_DIR/$INTEGRATE_SNIPPETS_SCRIPT ]; then
cd "$EXAMPLES_DIR" cd "$EXAMPLES_DIR"
...@@ -124,12 +124,12 @@ if [ -f "$EXAMPLES_DIR/$INTEGRATE_SNIPPETS_SCRIPT" ]; then ...@@ -124,12 +124,12 @@ if [ -f "$EXAMPLES_DIR/$INTEGRATE_SNIPPETS_SCRIPT" ]; then
exit 1 exit 1
fi fi
if [ ! -d "$EXAMPLES_TARGET_DIR" ]; then if [ ! -d $EXAMPLES_TARGET_DIR ]; then
echo "---> Examples target dir does not exist. Creating..." echo "---> Examples target dir does not exist. Creating..."
redirect_cmd mkdir "$EXAMPLES_TARGET_DIR" redirect_cmd mkdir $EXAMPLES_TARGET_DIR
fi fi
if [ -d "$EXAMPLES_TARGET_DIR" ]; then if [ -d $EXAMPLES_TARGET_DIR ]; then
echo "---> Copy integrated examples back" echo "---> Copy integrated examples back"
#The examples have been integrated. Copy the integrated source files back. #The examples have been integrated. Copy the integrated source files back.
redirect_cmd rsync --delete --archive --recursive "$EXAMPLES_DIR/" "$EXAMPLES_TARGET_DIR/" \ redirect_cmd rsync --delete --archive --recursive "$EXAMPLES_DIR/" "$EXAMPLES_TARGET_DIR/" \
...@@ -137,18 +137,12 @@ if [ -f "$EXAMPLES_DIR/$INTEGRATE_SNIPPETS_SCRIPT" ]; then ...@@ -137,18 +137,12 @@ if [ -f "$EXAMPLES_DIR/$INTEGRATE_SNIPPETS_SCRIPT" ]; then
--exclude=*fragmented.h \ --exclude=*fragmented.h \
--exclude=*snippet.cc \ --exclude=*snippet.cc \
--exclude=*fragmented.cc \ --exclude=*fragmented.cc \
--exclude="*$INTEGRATE_SNIPPETS_SCRIPT" --exclude=*$INTEGRATE_SNIPPETS_SCRIPT
echo redirect_cmd rsync --delete --archive --recursive "$EXAMPLES_DIR/" "$EXAMPLES_TARGET_DIR/" \
--exclude=*snippet.h \
--exclude=*fragmented.h \
--exclude=*snippet.cc \
--exclude=*fragmented.cc \
--exclude="*$INTEGRATE_SNIPPETS_SCRIPT"
# for commiting, we must be in the project dir # for commiting, we must be in the project dir
cd "$PROJECT_DIR_FULLPATH" cd "$PROJECT_DIR_FULLPATH"
redirect_cmd git add -u "$EXAMPLES_TARGET_DIR" redirect_cmd git add -u $EXAMPLES_TARGET_DIR
redirect_cmd git add "$EXAMPLES_TARGET_DIR" redirect_cmd git add $EXAMPLES_TARGET_DIR
redirect_cmd git commit -m 'Integrating examples_raw to examples using merge_examples.sh script.' redirect_cmd git commit -m 'Integrating examples_raw to examples using merge_examples.sh script.'
fi fi
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment