]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ep-processor-libraries/dsplib.git/blob - ti/dsplib/scripts/reporevs.sh
PRSDK-5635: fix bugs that caused failure of DSPLIB kernels when compiled with 8.3...
[ep-processor-libraries/dsplib.git] / ti / dsplib / scripts / reporevs.sh
1 #!/bin/bash
2 export PATH=$PATH:"/Program Files (x86)/git/bin"
3 ## Set release name and directory
4 export git_name=dsplib
5 export release_dir=../artifacts
7 ## Get latest commit ID and branch
8 export COMMIT_ID=`git log -n 1 | grep commit | grep -v 'this commit' | cut -d" " -f 2`
9 export git_branch=`git branch | grep '*' | cut -d" " -f 2`
11 ## Write into the repo-revs info file
12 echo -n $git_name: > $release_dir/repo-revs.txt
13 echo -n ${COMMIT_ID}:$git_branch >> $release_dir/repo-revs.txt
14 echo :`git log -1 | grep "    "` >> $release_dir/repo-revs.txt
16 ## Create a compressed tar of artifacts directory 
17 tar -cvzf $release_dir.tgz $release_dir
19 ## Copy the artifacts zip back
20 cp $release_dir.tgz ../../../../..
21  
23 ## Nothing past this point