Skip to content

Instantly share code, notes, and snippets.

@chrisamiller
Created March 24, 2020 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisamiller/a14f461bd145c131934d979217c658b3 to your computer and use it in GitHub Desktop.
Save chrisamiller/a14f461bd145c131934d979217c658b3 to your computer and use it in GitHub Desktop.
#!/bin/bash
#auto update the build time
grep -v "^Packaged:" sciClone/DESCRIPTION >zz
mv -f zz sciClone/DESCRIPTION
thedate=`date +"%F %r"`;
echo "Packaged: $thedate; cmiller" >>sciClone/DESCRIPTION
version=$(grep "Version" sciClone/DESCRIPTION | awk '{print $2}')
R CMD build sciClone && R CMD INSTALL sciClone_$version.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment