fix no dependencies

This commit is contained in:
a-sansara 2017-05-14 03:44:51 +02:00
parent aabfed3613
commit f3c2b3ae53
3 changed files with 12 additions and 6 deletions

7
dist/bes-build vendored
View File

@ -29,8 +29,11 @@ bes.build(){
for entry in "$project/src"/*.sh; do
local vendorName="$(basename $vendor)"
local project="$(basename $(dirname $(dirname $entry)))"
local entrypath="$APP_DIR/vendor/$vendorName/$project/src/$(basename $entry)"
if [ -f "$entrypath" ]; then
tail -n +2 "$entrypath" >> "$APP_BIN"
bes.echo " ${Cspe}- ${Cok}appending ${Cusa}$vendorName/$project/${Coff}src/$(basename $entry)"
tail -n +2 "$APP_DIR/vendor/$vendorName/$project/src/$(basename $entry)" >> "$APP_BIN"
fi
done
fi
done
@ -617,7 +620,7 @@ bes.usage(){
}
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BES_BUILD_VERSION=0.5
BES_BUILD_VERSION=0.6
APP_DIR=$(pwd)
APP_NAME=$(basename $(pwd))
APP_BIN=$APP_DIR/dist/$APP_NAME

View File

@ -29,8 +29,11 @@ bes.build(){
for entry in "$project/src"/*.sh; do
local vendorName="$(basename $vendor)"
local project="$(basename $(dirname $(dirname $entry)))"
local entrypath="$APP_DIR/vendor/$vendorName/$project/src/$(basename $entry)"
if [ -f "$entrypath" ]; then
tail -n +2 "$entrypath" >> "$APP_BIN"
bes.echo " ${Cspe}- ${Cok}appending ${Cusa}$vendorName/$project/${Coff}src/$(basename $entry)"
tail -n +2 "$APP_DIR/vendor/$vendorName/$project/src/$(basename $entry)" >> "$APP_BIN"
fi
done
fi
done

View File

@ -1,7 +1,7 @@
#!/bin/bash
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BES_BUILD_VERSION=0.5
BES_BUILD_VERSION=0.6
APP_DIR=$(pwd)
APP_NAME=$(basename $(pwd))
APP_BIN=$APP_DIR/dist/$APP_NAME