<commit_before>#!/usr/bin/env bash
##############################################################################
## This is used to package .deb packages and upload them to the launchpad
## ppa servers for building.
##
## If no argument is given, creates a package for the develop branch
## and uploads it to the ethereum/ethereum-dev ppa.
##
## If an argument is given, it is used as a tag and the resulting package
## is uploaded to the ethereum/ethereum ppa.
##
## The gnupg key for "<EMAIL>" has to be present in order to sign
## the package.
##
## It will clone the Solidity git from github, determine the version,
## create a source archive and push it to the ubuntu ppa servers.
##
##############################################################################

set -ev

if [ -z "$1" ]
then
    branch=develop
else
    branch=$1
fi

if [ "$branch" = develop ]
then
    pparepo=ethereum/ethereum-dev
    ppafilesurl=https://launchpad.net/~ethereum/+archive/ubuntu/ethereum-dev/+files
else
    pparepo=ethereum/ethereum
    ppafilesurl=https://launchpad.net/~ethereum/+archive/ubuntu/ethereum/+files
fi

keyid=703F83D0
email=<EMAIL>
packagename=solc

for distribution in trusty vivid wily xenial yakkety
do
cd /tmp/
mkdir $distribution
cd $distribution

# Fetch source
git clone --recursive https://github.com/ethereum/solidity.git -b "$branch"
mv solidity solc

# Determine version
cd solc
version=`grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? CMakeLists.txt`
commithash=`git rev-parse --short=8 HEAD`
committimestamp=`git show --format=%ci HEAD | head -n 1`
commitdate=`git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./'`

echo "$commithash" > commit_hash.txt
if [ $branch = develop ]
then
    debversion="$version-nightly-$commitdate-$commithash"
else
    debversion="$version"<commit_msg>Use "develop" for debian version name.<commit_after>#!/usr/bin/env bash
##############################################################################
## This is used to package .deb packages and upload them to the launchpad
## ppa servers for building.
##
## If no argument is given, creates a package for the develop branch
## and uploads it to the ethereum/ethereum-dev ppa.
##
## If an argument is given, it is used as a tag and the resulting package
## is uploaded to the ethereum/ethereum ppa.
##
## The gnupg key for "<EMAIL>" has to be present in order to sign
## the package.
##
## It will clone the Solidity git from github, determine the version,
## create a source archive and push it to the ubuntu ppa servers.
##
##############################################################################

set -ev

if [ -z "$1" ]
then
    branch=develop
else
    branch=$1
fi

if [ "$branch" = develop ]
then
    pparepo=ethereum/ethereum-dev
    ppafilesurl=https://launchpad.net/~ethereum/+archive/ubuntu/ethereum-dev/+files
else
    pparepo=ethereum/ethereum
    ppafilesurl=https://launchpad.net/~ethereum/+archive/ubuntu/ethereum/+files
fi

keyid=703F83D0
email=<EMAIL>
packagename=solc

for distribution in trusty vivid wily xenial yakkety
do
cd /tmp/
mkdir $distribution
cd $distribution

# Fetch source
git clone --recursive https://github.com/ethereum/solidity.git -b "$branch"
mv solidity solc

# Determine version
cd solc
version=`grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? CMakeLists.txt`
commithash=`git rev-parse --short=8 HEAD`
committimestamp=`git show --format=%ci HEAD | head -n 1`
commitdate=`git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./'`

echo "$commithash" > commit_hash.txt
if [ $branch = develop ]
then
    debversion="$version-develop-$commitdate-$commithash"
else
    debversion="$version"
{'fraction_non_alphanumeric': 0.20398814335758556, 'fraction_numerical': 0.009700889248181084, 'mean_word_length': 4.341007194244605, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2094465', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1170, 'n_words': 386}