123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- if [ $# == 0 ]; then
- echo "Zero arguments"
- exit
- elif [ $# == 1 ]; then
- suffix=$1
- version=$1
- else
- suffix=$1-$2
- version=$1
- fi
- dir=$(dirname $(readlink -f $0))
- gitrepo=$(readlink -f ./../../)
- echo "Creating tarballs with ${suffix} suffix"
- target=/tmp/airtime-${version}
- target_file=/tmp/airtime-${suffix}.tar.gz
- rm -rf $target
- rm -f $target_file
- git clone file://$gitrepo $target
- cd $target
- echo "Checking out tag airtime-${suffix}"
- git checkout airtime-${suffix}
- cd $target
- rm -rf .git .gitignore .gitmodules .zfproject.xml dev_tools/ audio_samples/
- cd /tmp/
- tar -czf $target_file airtime-${version}
- echo "Output file available at $target_file"
|