Skip to content

Commit

Permalink
modify bash files
Browse files Browse the repository at this point in the history
  • Loading branch information
sadoneli committed Aug 5, 2021
1 parent ad9b614 commit a9b28bc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 32 deletions.
21 changes: 0 additions & 21 deletions build_all.sh

This file was deleted.

8 changes: 5 additions & 3 deletions checkout-build-files.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
git status|grep tar.gz|cut -d ' ' -f4|xargs git checkout
git status|grep version|cut -d ' ' -f4|xargs git checkout
git status|grep config.json.js|cut -d ' ' -f4|xargs git checkout
#!/bin/bash

git status|grep tar.gz|cut -d ' ' -f4|xargs git checkout
git status|grep version|cut -d ' ' -f4|xargs git checkout
git status|grep config.json.js|cut -d ' ' -f4|xargs git checkout
15 changes: 7 additions & 8 deletions softcenter/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@

#CURR_PATH=$(pwd)
CURR_PATH="$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd )"
cd ${CURR_PATH}
SOFT_PATH=$(dirname $CURR_PATH)
cd ${SOFT_PATH}

modules=$(find . -maxdepth 1 -type d | grep -iv "\.\/\."|sed 's/.\///g'|sed '/\./d')
for module in ${modules}; do
#echo ${module}
if [ -f ${CURR_PATH}/${module}/build.sh ]; then
echo "add .valid to ${module}"
cd ${CURR_PATH}/${CURR_PATH}
echo hnd > .valid
cd ../..
if [ -f ${SOFT_PATH}/${module}/build.sh ]; then
cd ${SOFT_PATH}/${module}

echo "add .valid to ${module}"
echo arm384 >${SOFT_PATH}/${module}/${module}/.valid

echo "build ${module}"
cd ${CURR_PATH}/${module}
sh build.sh
cd ..
else
echo "${module}: this module do not have build.sh script!"
fi
Expand Down

0 comments on commit a9b28bc

Please sign in to comment.