Commit 452ca069 authored by Christiaan Biesterbosch's avatar Christiaan Biesterbosch Committed by Michał Siwek

Package.tar.gz to directoryname.tar.gz

So you don't have to rename the package.tar.gz when building multiple packages.
parent a2f36d63
#!/bin/bash
DIRNAME=${PWD##*/}
echo creating file list
find . -type f > ../filelist && find . -type l >> ../filelist && cut -c2- ../filelist > filelist
......@@ -10,8 +11,8 @@ echo removing temporary files
rm dlistcut ../dlist ../filelist
echo building binary package
tar -czf ../package.tar.gz *
sha1sum ../package.tar.gz > ../package.tar.gz.sha1
tar -czf ../$DIRNAME.tar.gz *
sha1sum ../$DIRNAME.tar.gz > ../$DIRNAME.tar.gz.sha1
echo finished
cat ../package.tar.gz.sha1
cat ../$DIRNAME.tar.gz.sha1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment