Developing lightweight computation at the DSG edge

create_repository.sh 427 Bytes
Newer Older
1
2
#!/bin/bash
. options.conf
3
. options.conf.local
4
5
6
7
8
9
10
11
12
13
14
15
16
17
OUTDIR="${1:-repository}"
[ ! -d $OUTDIR ] && mkdir -p $OUTDIR
echo "-> Output directory: $OUTDIR"
for link in $OUTDIR/*; do
  unlink $link 2>/dev/null
done
for target in $(cat $targets_list); do
  for arch in $release/$target/sdk/bin/packages/*; do
    [ -d "$arch" ] && {
      echo "-> Creating symlink for $arch"
      ln -s $PWD/$arch $OUTDIR/ 2>/dev/null
    }
  done
done