Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Nov 5, 2018
1 parent f4616cc commit 1b59802
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions package.sh
Expand Up @@ -19,10 +19,8 @@ CONTAINERID=`$CONTAINERRUN`
cat > docker-package.sh << "EOF"
#!/bin/sh
if [ $# -eq 0 ]
if [ $# -eq 1 ]
then
RELNAME=$(./bin/pdal-config --version)
else
RELNAME=$1
fi
Expand All @@ -32,12 +30,19 @@ EOF

echo "git checkout $GITSHA" >> docker-package.sh


cat >> docker-package.sh << "EOF"
mkdir build; cd build;
echo "Building package with PDAL_VERSION_STRING = $PDAL_VERSION_STRING"
cmake -DPDAL_VERSION_STRING=$RELNAME .. ;
if [ -v RELNAME ]
then
cmake -DPDAL_VERSION_STRING=$RELNAME ..
else
cmake ..
fi
make dist
RELNAME=$(./bin/pdal-config --version)
echo "#2 RELNAME = $RELNAME"
OUTPUTDIR="/data/release-$RELNAME"
if [ ! -e $OUTPUTDIR ]
Expand Down

0 comments on commit 1b59802

Please sign in to comment.