* restore-kconfig.sh: copy saved kernel configs from CVSROOT/wrapfs/
authorezk <ezk>
Sun, 8 Dec 2019 21:13:44 +0000 (21:13 +0000)
committerezk <ezk>
Sun, 8 Dec 2019 21:13:44 +0000 (21:13 +0000)
  repo to individual wrapfs-x.y.z repos.

* backup-kconfig.sh: back up kernel configs from individual
  wrapfs-x.y.z repos to CVSROOT/wrapfs/ repo.

* update-stable.sh: comment out unused variable.

* 4a-gits: support l flag to include wrapfs-latest in list.

4a-gits
ChangeLog
backup-kconfig.sh [new file with mode: 0755]
restore-kconfig.sh [new file with mode: 0755]
update-stable.sh

diff --git a/4a-gits b/4a-gits
index 9ebf12547486b3d1751fa44ab20ef7b25206a72c..526a6b619b79ad6a525e927e42ebdb19d8149a64 100755 (executable)
--- a/4a-gits
+++ b/4a-gits
@@ -1,13 +1,18 @@
 #!/bin/sh
 
-LIST=`echo wrapfs-2* wrapfs-3.[0-9] wrapfs-3.[0-9][0-9] wrapfs-4.[0-9] wrapfs-4.[0-9][0-9] wrapfs-latest`
+LIST=`echo wrapfs-2* wrapfs-3.[0-9] wrapfs-3.[0-9][0-9] wrapfs-4.[0-9] wrapfs-4.[0-9][0-9]`
 #LIST=`echo wrapfs-4.[0-9] wrapfs-4.[0-9][0-9]`
 
 if test -z "$1" ; then
-       echo "Usage: $0 [+[alw]] cmd [args...]"
+       echo "Usage: $0 [+l] cmd [args...]"
        exit 1
 fi
 
+if test "$1" = "+l" ; then
+       LIST="${LIST} wrapfs-latest"
+       shift
+fi
+
 for i in $LIST
 do
        echo :::$i:::
index f7bf203c2a336d103a4f17d546713e136d83c308..658a07c4ac1e37aee695050ae0516bf47aba7c34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2019-12-08  Erez Zadok  <ezk@fsl.cs.sunysb.edu>
+
+       * restore-kconfig.sh: copy saved kernel configs from CVSROOT/wrapfs/
+         repo to individual wrapfs-x.y.z repos.
+
+       * backup-kconfig.sh: back up kernel configs from individual
+         wrapfs-x.y.z repos to CVSROOT/wrapfs/ repo.
+
+       * update-stable.sh: comment out unused variable.
+
+       * 4a-gits: support +l flag to include wrapfs-latest in list.
+
 2019-12-06  Erez Zadok  <ezk@fsl.cs.sunysb.edu>
 
        * README: fix typo.
diff --git a/backup-kconfig.sh b/backup-kconfig.sh
new file mode 100755 (executable)
index 0000000..5019786
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+# backup kernel .config files from individual wrapfs-x.y.z repos
+
+SRC=$HOME/proj/wrapfs/centos-6.10-configs-fusion
+
+# function to execute commands
+runcmd() {
+    echo "CMD: $@"
+    $@
+    ret=$?
+    if [ $ret -ne 0 ] ; then
+        echo "ERROR in running cmd: $@"
+       exit $ret
+    fi
+}
+
+THIS_REPO=`basename $PWD | sed -e 's/^wrapfs-//'`
+runcmd cp -av .config $SRC/wrapfs-$THIS_REPO.config
+
diff --git a/restore-kconfig.sh b/restore-kconfig.sh
new file mode 100755 (executable)
index 0000000..f373888
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+# copy proper kernel .config over to individual wrapfs-x.y.z repos
+
+SRC=$HOME/proj/wrapfs/centos-6.10-configs-fusion
+
+# function to execute commands
+runcmd() {
+    echo "CMD: $@"
+    $@
+    ret=$?
+    if [ $ret -ne 0 ] ; then
+        echo "ERROR in running cmd: $@"
+       exit $ret
+    fi
+}
+
+THIS_REPO=`basename $PWD | sed -e 's/^wrapfs-//'`
+runcmd cp -av $SRC/wrapfs-$THIS_REPO.config .config
+#runcmd ls -l $SRC/wrapfs-$THIS_REPO.config
index 55e84ecab6c60942242a55f4c6f99dc7196e2f35..0724964fdff6e3752598c700306c4e508be159cb 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh
 # update a wrapfs repo from stable branch
 
-FSL_GIT="ssh://git.fsl.cs.sunysb.edu/scm/git/ROHIT"
+# $FSL_GIT unused in this script
+#FSL_GIT="ssh://git.fsl.cs.sunysb.edu/scm/git/ROHIT"
 KORG_GIT="git://git.kernel.org/pub/scm/linux/kernel/git"
 
 # function to execute commands