mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
19 lines
492 B
Bash
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
|