Statistics
| Branch: | Tag: | Revision:

root / ci / autopkg_debian.sh @ 34262911

History | View | Annotate | Download (289 Bytes)

1 078cb806 Christos Stavrakakis
#!/usr/bin/env sh
2 fc67026b Christos Stavrakakis
set -e
3 078cb806 Christos Stavrakakis
4 6262d2ae Christos Stavrakakis
PACKAGES_DIR=$1
5 078cb806 Christos Stavrakakis
6 078cb806 Christos Stavrakakis
shift
7 078cb806 Christos Stavrakakis
8 078cb806 Christos Stavrakakis
TEMP_DIR=$(mktemp -d /tmp/devflow_autopkg_XXXXXXX)
9 078cb806 Christos Stavrakakis
10 078cb806 Christos Stavrakakis
# Create the packages
11 078cb806 Christos Stavrakakis
devflow-autopkg snapshot -b $TEMP_DIR $@
12 078cb806 Christos Stavrakakis
13 078cb806 Christos Stavrakakis
# MOVE the packages
14 fc67026b Christos Stavrakakis
mkdir -p $PACKAGES_DIR
15 fc67026b Christos Stavrakakis
mv -n $TEMP_DIR/* $PACKAGES_DIR
16 078cb806 Christos Stavrakakis
17 fc67026b Christos Stavrakakis
echo "Moved packages to: $(pwd)/$PACKAGES_DIR"