Files
chromebrew/create_package.sh
Christiaan Biesterbosch 5ff7b09430 Package.tar.gz to directoryname.tar.gz
So you don't have to rename the package.tar.gz when building multiple packages.
2015-09-16 15:48:44 +02:00

19 lines
492 B
Bash

#!/bin/bash
DIRNAME=${PWD##*/}
echo creating file list
find . -type f > ../filelist && find . -type l >> ../filelist && cut -c2- ../filelist > filelist
echo creating directory list
find . -type d > ../dlist && cut -c2- ../dlist > dlistcut && tail -n +2 dlistcut > dlist
echo removing temporary files
rm dlistcut ../dlist ../filelist
echo building binary package
tar -czf ../$DIRNAME.tar.gz *
sha1sum ../$DIRNAME.tar.gz > ../$DIRNAME.tar.gz.sha1
echo finished
cat ../$DIRNAME.tar.gz.sha1