Skip to content
This repository
Newer
Older
100755 27 lines (20 sloc) 0.766 kb
658bdbf4 » saurabhsood91
2012-08-01 added script to generate tarball and VERSION file
1 #! /bin/bash
2
19e52b9c » saurabhsood91
2012-08-04 used mktemp to create temporary directory
3 version=$( egrep -o '([0-9]+\.)+[0-9]+' version.h )
658bdbf4 » saurabhsood91
2012-08-01 added script to generate tarball and VERSION file
4 foldername=oneclickinstaller-$version
5 echo $version
6 echo $foldername
7
a005a208 » saurabhsood91
2012-08-05 added mktemp error handling code
8 tempfolder=$( mktemp -d /tmp/tmp.XXXX ) || { echo "mktemp failed" >&2 ; exit 1 ; }
19e52b9c » saurabhsood91
2012-08-04 used mktemp to create temporary directory
9 srcfolder=$( pwd )
10 echo $tempfolder
658bdbf4 » saurabhsood91
2012-08-01 added script to generate tarball and VERSION file
11
19e52b9c » saurabhsood91
2012-08-04 used mktemp to create temporary directory
12 mkdir -p $tempfolder/$foldername/src/res
13
14 cp src/*.h src/*.cpp src/CMakeLists.txt src/oci.desktop $tempfolder/$foldername/src
15 cp src/res/oneclickinstall.png $tempfolder/$foldername/src/res
afce989f » saurabhsood91
2012-08-16 fix tarball script to include CMakeLists.txt
16 cp CMakeLists.txt /$tempfolder/$foldername
658bdbf4 » saurabhsood91
2012-08-01 added script to generate tarball and VERSION file
17
bb5ee66a » saurabhsood91
2012-08-04 changed regex and handled tags
18 branch=$( git branch | grep -o tags )
19 echo $branch
658bdbf4 » saurabhsood91
2012-08-01 added script to generate tarball and VERSION file
20
684c0fa2 » saurabhsood91
2012-08-16 enable tagging
21 git tag -a v$version -m 'version '.$version
22 git push --tags
bb5ee66a » saurabhsood91
2012-08-04 changed regex and handled tags
23
19e52b9c » saurabhsood91
2012-08-04 used mktemp to create temporary directory
24 cd $tempfolder
658bdbf4 » saurabhsood91
2012-08-01 added script to generate tarball and VERSION file
25 tar -cvf oneclickinstaller-$version.tar.gz oneclickinstaller-$version
19e52b9c » saurabhsood91
2012-08-04 used mktemp to create temporary directory
26 cp oneclickinstaller-$version.tar.gz $srcfolder
27 rm -rf $tempfolder/$foldername
Something went wrong with that request. Please try again.