Browse Source

Debian packaging tweaks.

cl-refactor
Gav Wood 11 years ago
parent
commit
f1f6d56ad8
  1. 2
      package.sh
  2. 9
      release.sh

2
package.sh

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -e set -e
rm -f ../cpp-ethereum_* rm -f ../cpp-ethereum_*_source.changes
debuild -S -sa debuild -S -sa
cd .. cd ..
dput -f ppa:r-launchpad-gavofyork-fastmail-fm/ethereum ethereum_*_source.changes dput -f ppa:r-launchpad-gavofyork-fastmail-fm/ethereum ethereum_*_source.changes

9
release.sh

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
if [[ ! "$3" = "" ]]; then if [[ ! "$3" == "" ]]; then
debchange -v $1-$2 "$3" debchange -v $1-$2 "$3"
git commit -a -m "$3" git commit -a -m "$3"
fi fi
@ -12,7 +12,7 @@ echo Checking out...
git clone $opwd git clone $opwd
cd cpp-ethereum cd cpp-ethereum
if [ "$1" = "" ]; then if [ "$1" == "" ]; then
archdir="cpp-ethereum-$(date +%Y%m%d)" archdir="cpp-ethereum-$(date +%Y%m%d)"
else else
archdir="cpp-ethereum-$1" archdir="cpp-ethereum-$1"
@ -30,14 +30,13 @@ rm -rf .git .gitignore
echo Renaming directory... echo Renaming directory...
cd .. cd ..
rm -rf $archdir
mv cpp-ethereum $archdir mv cpp-ethereum $archdir
echo Creating archive... echo Creating archive...
tar c $archdir | bzip2 -- > $archfile tar c $archdir | bzip2 -- > $archfile
if [[ ! "$1" = "" ]]; then [[ ! "$1" == "" ]] && ln -sf $archfile "cpp-ethereum_$1.orig.tar.bz2"
ln -s $archfile "cpp-ethereum_$1.orig.tar.bz2"
fi
exit exit

Loading…
Cancel
Save