mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
22 lines
530 B
Bash
22 lines
530 B
Bash
#!/bin/bash
|
|
DIRNAME=${PWD##*/}
|
|
|
|
XZ_OPT=${XZ_OPT-"-7e"}
|
|
export XZ_OPT
|
|
|
|
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 -cJf ../$DIRNAME.tar.xz *
|
|
sha1sum ../$DIRNAME.tar.xz > ../$DIRNAME.tar.xz.sha1
|
|
|
|
echo finished
|
|
cat ../$DIRNAME.tar.xz.sha1
|