svn commit: r1849550 [3/3] - /ofbiz/tools/demo-backup/Nicolas/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1849550 [3/3] - /ofbiz/tools/demo-backup/Nicolas/

jleroux@apache.org
Added: ofbiz/tools/demo-backup/Nicolas/old-manual-nicely.sh
URL: http://svn.apache.org/viewvc/ofbiz/tools/demo-backup/Nicolas/old-manual-nicely.sh?rev=1849550&view=auto
==============================================================================
--- ofbiz/tools/demo-backup/Nicolas/old-manual-nicely.sh (added)
+++ ofbiz/tools/demo-backup/Nicolas/old-manual-nicely.sh Sat Dec 22 13:57:56 2018
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+nohup nice -n 19 ionice -c2 -n7 ./old-manual.sh &
\ No newline at end of file

Propchange: ofbiz/tools/demo-backup/Nicolas/old-manual-nicely.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/tools/demo-backup/Nicolas/old-manual-nicely.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/tools/demo-backup/Nicolas/old-manual-nicely.sh
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/tools/demo-backup/Nicolas/old-manual-nicely.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/tools/demo-backup/Nicolas/old-manual.sh
URL: http://svn.apache.org/viewvc/ofbiz/tools/demo-backup/Nicolas/old-manual.sh?rev=1849550&view=auto
==============================================================================
--- ofbiz/tools/demo-backup/Nicolas/old-manual.sh (added)
+++ ofbiz/tools/demo-backup/Nicolas/old-manual.sh Sat Dec 22 13:57:56 2018
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+OFBIZ_DIR="/home/ofbizDemo/branch13.7"
+cd $OFBIZ_DIR
+
+#update source code
+svn up
+
+#reset user file modification
+svn revert -R *
+
+#remove user adding file not versionned
+IFS=$'\n'
+for i in $(svn st | grep ^? |cut -c 9-); do rm -fr "$i"; done;
+if [ -n "$(svn st | grep ^?)" ]; then
+    # this to remove all unsupported file name like C:/ created and not cover by previous command
+    for i in $(svn st | grep ^? |cut -c 9-); do
+        rename_file = "$(echo $i| sed s/[:\\\ ]/_/g)";
+        mv "$i" "$rename_file";
+        rm "$rename_file";
+    done;
+fi
+
+#remove unecessary config for demo
+if [ -n "$(ls $OFBIZ_DIR/framework/base/config/*)" ]; then
+    rm $OFBIZ_DIR/framework/base/config/*.jks
+fi
+if [ -r "$OFBIZ_DIR/framework/base/config/jesse.properties" ]; then
+    rm $OFBIZ_DIR/framework/base/config/jesse.properties
+fi
+
+#Stop, clean and run OFBiz
+./ant stop -Dportoffset=20000
+./ant clean-all
+./ant load-demo
+./ant svninfo
+./ant start-batch-secure -Dportoffset=20000
+

Propchange: ofbiz/tools/demo-backup/Nicolas/old-manual.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/tools/demo-backup/Nicolas/old-manual.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/tools/demo-backup/Nicolas/old-manual.sh
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/tools/demo-backup/Nicolas/old-manual.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/tools/demo-backup/Nicolas/stable-manual-nicely.sh
URL: http://svn.apache.org/viewvc/ofbiz/tools/demo-backup/Nicolas/stable-manual-nicely.sh?rev=1849550&view=auto
==============================================================================
--- ofbiz/tools/demo-backup/Nicolas/stable-manual-nicely.sh (added)
+++ ofbiz/tools/demo-backup/Nicolas/stable-manual-nicely.sh Sat Dec 22 13:57:56 2018
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+echo This does not work, see OFBIZ-10287. You need for now to use all-manual-nicely.sh
+
+#~ nohup nice -n 19 ionice -c2 -n7 ./stable-manual.sh &
+

Propchange: ofbiz/tools/demo-backup/Nicolas/stable-manual-nicely.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/tools/demo-backup/Nicolas/stable-manual-nicely.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/tools/demo-backup/Nicolas/stable-manual-nicely.sh
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/tools/demo-backup/Nicolas/stable-manual-nicely.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/tools/demo-backup/Nicolas/stable-manual.sh
URL: http://svn.apache.org/viewvc/ofbiz/tools/demo-backup/Nicolas/stable-manual.sh?rev=1849550&view=auto
==============================================================================
--- ofbiz/tools/demo-backup/Nicolas/stable-manual.sh (added)
+++ ofbiz/tools/demo-backup/Nicolas/stable-manual.sh Sat Dec 22 13:57:56 2018
@@ -0,0 +1,39 @@
+#!/bin/bash
+OFBIZ_DIR = "/home/ofbizDemo/branch16.11"
+echo "This can't be used alone, see OFBIZ-10287. You need for now to use all-manual-nicely.sh";
+
+cd $OFBIZ_DIR
+
+#update source code
+svn up
+
+#reset user file modification
+svn revert -R *
+
+#remove user adding file not versionned
+IFS=$'\n'
+for i in $(svn st | grep ^? |cut -c 9-); do rm -fr "$i"; done;
+if [ -n "$(svn st | grep ^?)" ]; then
+    # this to remove all unsupported file name like C:/ created and not cover by previous command
+    for i in $(svn st | grep ^? |cut -c 9-); do
+        rename_file = "$(echo $i| sed s/[:\\\ ]/_/g)";
+        mv "$i" "$rename_file";
+        rm "$rename_file";
+    done;
+fi
+
+#remove unecessary confi for demo
+if [ -n "$(ls $OFBIZ_DIR/framework/base/config/*)" ]; then
+    rm $OFBIZ_DIR/framework/base/config/*.jks
+fi
+if [ -r "$OFBIZ_DIR/framework/base/config/jesse.properties" ]; then
+    rm $OFBIZ_DIR/framework/base/config/jesse.properties
+fi
+
+# Stop, clean and run OFBiz
+./gradlew --no-daemon "ofbiz --shutdown --portoffset 10000"
+./gradlew --no-daemon cleanAll
+./gradlew --no-daemon "ofbiz --load-data"
+./gradlew --no-daemon svnInfoFooter
+./gradlew --no-daemon "ofbizBackground --start --portoffset 10000"
+

Propchange: ofbiz/tools/demo-backup/Nicolas/stable-manual.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/tools/demo-backup/Nicolas/stable-manual.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/tools/demo-backup/Nicolas/stable-manual.sh
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/tools/demo-backup/Nicolas/stable-manual.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/tools/demo-backup/Nicolas/trunk-manual-nicely.sh
URL: http://svn.apache.org/viewvc/ofbiz/tools/demo-backup/Nicolas/trunk-manual-nicely.sh?rev=1849550&view=auto
==============================================================================
--- ofbiz/tools/demo-backup/Nicolas/trunk-manual-nicely.sh (added)
+++ ofbiz/tools/demo-backup/Nicolas/trunk-manual-nicely.sh Sat Dec 22 13:57:56 2018
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+echo This does not work, see OFBIZ-10287. You need for now to use all-manual-nicely.sh
+
+#nohup nice -n 19 ionice -c2 -n7 ./trunk-manual.sh &
+

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk-manual-nicely.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk-manual-nicely.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk-manual-nicely.sh
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk-manual-nicely.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/tools/demo-backup/Nicolas/trunk-manual.sh
URL: http://svn.apache.org/viewvc/ofbiz/tools/demo-backup/Nicolas/trunk-manual.sh?rev=1849550&view=auto
==============================================================================
--- ofbiz/tools/demo-backup/Nicolas/trunk-manual.sh (added)
+++ ofbiz/tools/demo-backup/Nicolas/trunk-manual.sh Sat Dec 22 13:57:56 2018
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+echo This does not work, see OFBIZ-10287. You need for now to use all-manual-nicely.sh
+
+#~ cd /home/ofbizDemo/trunk
+#~ svn up
+#~ ./gradlew --no-daemon pullAllPluginsSource
+#~ ./gradlew --no-daemon "ofbiz --shutdown"
+#~ ./gradlew --no-daemon cleanAll
+#~ ./gradlew --no-daemon loadAll
+#~ ./gradlew --no-daemon svnInfoFooter
+#~ ./gradlew --no-daemon ofbizBackground
+

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk-manual.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk-manual.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk-manual.sh
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk-manual.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/tools/demo-backup/Nicolas/trunk.sh
URL: http://svn.apache.org/viewvc/ofbiz/tools/demo-backup/Nicolas/trunk.sh?rev=1849550&view=auto
==============================================================================
--- ofbiz/tools/demo-backup/Nicolas/trunk.sh (added)
+++ ofbiz/tools/demo-backup/Nicolas/trunk.sh Sat Dec 22 13:57:56 2018
@@ -0,0 +1,39 @@
+#!/bin/bash
+OFBIZ_DIR="/home/ofbizDemo/trunk"
+cd $OFBIZ_DIR
+
+#Stop OFBiz
+./gradlew --no-daemon terminateOfbiz
+./gradlew --no-daemon cleanAll
+
+#update source code
+svn up
+
+#reset user file modification
+svn revert -R *
+
+#remove user adding file not versionned
+IFS=$'\n'
+for i in $(svn st | grep ^? |cut -c 9-); do rm -fr "$i"; done;
+if [ -n "$(svn st | grep ^?)" ]; then
+    # this to remove all unsupported file name like C:/ created and not cover by previous command
+    for i in $(svn st | grep ^? |cut -c 9-); do
+        rename_file = "$(echo $i| sed s/[:\\\ ]/_/g)";
+        mv "$i" "$rename_file";
+        rm "$rename_file";
+    done;
+fi
+
+#remove unecessary confi for demo
+if [ -n "$(ls $OFBIZ_DIR/framework/base/config/*)" ]; then
+    rm $OFBIZ_DIR/framework/base/config/*.jks
+fi
+if [ -r "$OFBIZ_DIR/framework/base/config/jesse.properties" ]; then
+    rm $OFBIZ_DIR/framework/base/config/jesse.properties
+fi
+
+# run OFBiz
+./gradlew --no-daemon loadAll
+./gradlew --no-daemon svnInfoFooter
+./gradlew --no-daemon ofbizBackground
+

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk.sh
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/tools/demo-backup/Nicolas/trunk.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain