appending main.sh at end
This commit is contained in:
parent
e79a367f9d
commit
68abf31b41
6
dist/bes-build
vendored
6
dist/bes-build
vendored
|
@ -108,9 +108,15 @@ if [ -d "$APP_DIR/src" ]; then
|
||||||
echo "#!/bin/bash" > $APP_BIN
|
echo "#!/bin/bash" > $APP_BIN
|
||||||
bes.echo.action "reading ${Coff}src/"
|
bes.echo.action "reading ${Coff}src/"
|
||||||
for entry in "$APP_DIR/src"/*.sh; do
|
for entry in "$APP_DIR/src"/*.sh; do
|
||||||
|
if [ "$(basename $entry)" != "main.sh" ]; then
|
||||||
bes.echo " - appending ${Coff}src/$(basename $entry)"
|
bes.echo " - appending ${Coff}src/$(basename $entry)"
|
||||||
tail -n +2 "$entry" >> "$APP_BIN"
|
tail -n +2 "$entry" >> "$APP_BIN"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
if [ -f "$APP_DIR/src/main.sh" ]; then
|
||||||
|
tail -n +2 "$APP_DIR/src/main.sh" >> "$APP_BIN"
|
||||||
|
bes.echo " - appending ${Coff}src/main.sh"
|
||||||
|
fi
|
||||||
bes.echo.state 0
|
bes.echo.state 0
|
||||||
bes.echo.action "set execution mode"
|
bes.echo.action "set execution mode"
|
||||||
chmod +x $APP_BIN
|
chmod +x $APP_BIN
|
||||||
|
|
|
@ -25,9 +25,15 @@ if [ -d "$APP_DIR/src" ]; then
|
||||||
echo "#!/bin/bash" > $APP_BIN
|
echo "#!/bin/bash" > $APP_BIN
|
||||||
bes.echo.action "reading ${Coff}src/"
|
bes.echo.action "reading ${Coff}src/"
|
||||||
for entry in "$APP_DIR/src"/*.sh; do
|
for entry in "$APP_DIR/src"/*.sh; do
|
||||||
|
if [ "$(basename $entry)" != "main.sh" ]; then
|
||||||
bes.echo " - appending ${Coff}src/$(basename $entry)"
|
bes.echo " - appending ${Coff}src/$(basename $entry)"
|
||||||
tail -n +2 "$entry" >> "$APP_BIN"
|
tail -n +2 "$entry" >> "$APP_BIN"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
if [ -f "$APP_DIR/src/main.sh" ]; then
|
||||||
|
tail -n +2 "$APP_DIR/src/main.sh" >> "$APP_BIN"
|
||||||
|
bes.echo " - appending ${Coff}src/main.sh"
|
||||||
|
fi
|
||||||
bes.echo.state 0
|
bes.echo.state 0
|
||||||
bes.echo.action "set execution mode"
|
bes.echo.action "set execution mode"
|
||||||
chmod +x $APP_BIN
|
chmod +x $APP_BIN
|
||||||
|
|
Loading…
Reference in New Issue
Block a user