Merge pull request #91 from bauen1/remove-sh

Changed scripts to use bash or removed time usage
This commit is contained in:
Ivan Davidov 2017-11-13 22:49:54 +02:00 committed by GitHub
commit d62fdcc76b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 33 additions and 33 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# TODO - this shell script file needs serios refactoring since right now it does
# too many things:
@ -54,7 +54,7 @@ OVERLAY_BUNDLES="$(grep -i ^OVERLAY_BUNDLES .config | cut -f2 -d'=')"
if [ ! "$OVERLAY_BUNDLES" = "" ] ; then
echo "Generating additional overlay bundles. This may take a while..."
cd minimal_overlay
time sh overlay_build.sh
time ./overlay_build.sh
cd $SRC_DIR
else
echo "Generation of additional overlay bundles has been skipped."

View File

@ -8,7 +8,7 @@
all: clean
@echo "Launching the main build script..."
@time sh build_minimal_linux_live.sh 2>&1 | tee minimal_linux_live.log
@time ./build_minimal_linux_live.sh 2>&1 | tee minimal_linux_live.log
clean:
@echo "Removing generated work artifacts..."
@ -33,7 +33,7 @@ src:
@echo "Generating source archive..."
@rm -f minimal_linux_live_*_src.tar.xz
@mkdir -p work
@sh 08_prepare_src.sh 1>/dev/null
@./08_prepare_src.sh 1>/dev/null
@$(eval DATE_PARSED := $(shell LANG=en_US ; date +"%d-%b-%Y"))
@cd work/src && tar -cpf - `ls -A` | xz - > ../../minimal_linux_live_$(DATE_PARSED)_src.tar.xz && cd ../..
@echo "Source archive: minimal_linux_live_$(DATE_PARSED)_src.tar.xz"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#!/bin/bash
for script in $(ls | grep '^[0-9]*_.*.sh'); do
echo "$script"
time sh "$script"
time ./"$script"
done

View File

@ -2,8 +2,8 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_install.sh
./01_get.sh
./02_install.sh
cd $SRC_DIR

View File

@ -2,8 +2,8 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_build.sh
./01_get.sh
./02_build.sh
cd $SRC_DIR

View File

@ -2,8 +2,8 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_install.sh
./01_get.sh
./02_install.sh
cd $SRC_DIR

View File

@ -2,8 +2,8 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_build.sh
./01_get.sh
./02_build.sh
cd $SRC_DIR

View File

@ -2,7 +2,7 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_build.sh
./01_get.sh
./02_build.sh
cd $SRC_DIR

View File

@ -2,10 +2,10 @@
SRC_DIR=$(pwd)
time sh 01_prepare.sh
time sh 02_disk_erase.sh
time sh 03_installer.sh
time sh 04_install.sh
./01_prepare.sh
./02_disk_erase.sh
./03_installer.sh
./04_install.sh
cd $SRC_DIR

0
src/minimal_overlay/bundles/ncurses/01_get.sh Normal file → Executable file
View File

0
src/minimal_overlay/bundles/ncurses/02_build.sh Normal file → Executable file
View File

4
src/minimal_overlay/bundles/ncurses/bundle.sh Normal file → Executable file
View File

@ -2,8 +2,8 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_build.sh
./01_get.sh
./02_build.sh
cd $SRC_DIR

View File

@ -2,8 +2,8 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_install.sh
./01_get.sh
./02_install.sh
cd $SRC_DIR

View File

@ -2,8 +2,8 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_install.sh
./01_get.sh
./02_install.sh
cd $SRC_DIR

View File

@ -2,8 +2,8 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_build.sh
./01_get.sh
./02_build.sh
cd $SRC_DIR

View File

@ -2,8 +2,8 @@
SRC_DIR=$(pwd)
time sh 01_get.sh
time sh 02_build.sh
./01_get.sh
./02_build.sh
cd $SRC_DIR

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
SRC_DIR=$(pwd)
@ -19,7 +19,7 @@ if [ "$OVERLAY_BUNDLES" = "" ] ; then
exit 1
fi
time sh overlay_clean.sh
time ./overlay_clean.sh
BUNDLES_LIST="$(echo $OVERLAY_BUNDLES | tr ',' ' ')"
@ -42,7 +42,7 @@ do
cd $BUNDLE_DIR
echo "Building overlay bundle '$BUNDLE'..."
time sh $BUNDLE_SCRIPT
time $BUNDLE_SCRIPT
cd $SRC_DIR
done