Skip to content

Commit

Permalink
version name of rstudio directory in .tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Jun 7, 2011
1 parent d1d68c7 commit b996e2a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions package/linux/make-desktop-package
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ else
fi
PACKAGE_TAR=$PACKAGE_DIR/$PACKAGE_ROOT-$PLATFORM.tar.gz

# switch to rstudio dir and create tarball
cd ${PACKAGE_ROOT}/usr/lib
tar -c -z -f $PACKAGE_TAR rstudio
# copy rstudio dir to local (versioned) dir and make tarball
VERSIONED_RSTUDIO=rstudio-${RSTUDIO_VERSION_MAJOR}.${RSTUDIO_VERSION_MINOR}.${RSTUDIO_VERSION_PATCH}
rm -rf ${VERSIONED_RSTUDIO}
cp -R ${PACKAGE_ROOT}/usr/lib/rstudio ${VERSIONED_RSTUDIO}

# create tarball
tar -c -z -f $PACKAGE_TAR ${VERSIONED_RSTUDIO}

# back to current dir
cd $CURRENT_DIR
Expand Down

0 comments on commit b996e2a

Please sign in to comment.