2 changed files with 54 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
set -e |
||||
|
rm -f ../cpp-ethereum_* |
||||
|
debuild -S -sa |
||||
|
cd .. |
||||
|
dput -f ppa:r-launchpad-gavofyork-fastmail-fm/ethereum ethereum_*_source.changes |
||||
|
|
@ -0,0 +1,46 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
if [[ ! "$2" = "" ]]; then |
||||
|
debchange -v $1 "$2" |
||||
|
git commit -a -m "$2" |
||||
|
fi |
||||
|
|
||||
|
opwd=`pwd` |
||||
|
cd /tmp |
||||
|
|
||||
|
echo Checking out... |
||||
|
git clone $opwd |
||||
|
cd cpp-ethereum |
||||
|
|
||||
|
if [ "$1" = "" ]; then |
||||
|
archdir="cpp-ethereum-$(date +%Y%m%d)" |
||||
|
else |
||||
|
archdir="cpp-ethereum-$1" |
||||
|
fi |
||||
|
archfile="$archdir.tar.bz2" |
||||
|
|
||||
|
echo Cleaning backup files... |
||||
|
find . | grep \~ | xargs rm -f |
||||
|
|
||||
|
echo Cleaning others... |
||||
|
rm release.sh |
||||
|
|
||||
|
echo Cleaning versioning... |
||||
|
rm -rf .git .gitignore |
||||
|
|
||||
|
echo Renaming directory... |
||||
|
cd .. |
||||
|
mv cpp-ethereum $archdir |
||||
|
|
||||
|
echo Creating archive... |
||||
|
tar c $archdir | bzip2 -- > $archfile |
||||
|
|
||||
|
echo Packaging... |
||||
|
cd "$archdir" |
||||
|
./package.sh |
||||
|
|
||||
|
echo Cleaning up... |
||||
|
rm -rf /tmp/$archdir |
||||
|
mv /tmp/$archfile ~ |
||||
|
|
||||
|
echo Done. |
Loading…
Reference in new issue