Skip to content
Snippets Groups Projects

Resolve symlinks in 'stage'

Merged jD91mZM2 requested to merge jD91mZM2/cookbook:symlink into master
1 file
+ 6
5
Compare changes
  • Side-by-side
  • Inline
+ 6
5
@@ -341,15 +341,16 @@ function op {
@@ -341,15 +341,16 @@ function op {
stage)
stage)
op $1 unstage
op $1 unstage
mkdir -p stage
mkdir -p stage
 
stage="$(realpath stage)"
pushd build > /dev/null
pushd build > /dev/null
skip=0
skip=0
if [ "$(type -t recipe_stage)" = "function" ]
if [ "$(type -t recipe_stage)" = "function" ]
then
then
recipe_stage ../stage
recipe_stage "$stage"
fi
fi
if [ "$skip" -eq "0" ]
if [ "$skip" -eq "0" ]
then
then
#TODO xargo install --root "../stage" $CARGOFLAGS
#TODO xargo install --root "$stage" $CARGOFLAGS
if [ "$DEBUG" == 1 ]
if [ "$DEBUG" == 1 ]
then
then
build=debug
build=debug
@@ -370,14 +371,14 @@ function op {
@@ -370,14 +371,14 @@ function op {
then
then
echo "$(tput bold)Note$(tput sgr0): No binaries detected, using example binaries"
echo "$(tput bold)Note$(tput sgr0): No binaries detected, using example binaries"
fi
fi
mkdir -p "../stage/$BINDIR"
mkdir -p "$stage/$BINDIR"
for bin in $bins
for bin in $bins
do
do
if [ "$DEBUG" == 1 ]
if [ "$DEBUG" == 1 ]
then
then
cp -v "$bin" "../stage/$BINDIR/$(basename $bin)"
cp -v "$bin" "$stage/$BINDIR/$(basename $bin)"
else
else
strip -v "$bin" -o "../stage/$BINDIR/$(basename $bin)"
strip -v "$bin" -o "$stage/$BINDIR/$(basename $bin)"
fi
fi
done
done
else
else
Loading