<commit_before>DEBVERSION=0.1
DEBFOLDER=supersmart
DEBFOLDERNAME=$DEBFOLDER-$DEBVERSION
UPSTREAM_TARBALL=supersmart_$DEBVERSION.orig.tar.gz

# make upstream tarball
cp -r upstream/ $DEBFOLDERNAME
tar cvfz $UPSTREAM_TARBALL $DEBFOLDERNAME

# unpack upstream tarball
tar xf $UPSTREAM_TARBALL

cd $DEBFOLDERNAME

# Create the packaging skeleton (debian/*)
dh_make -s -e <EMAIL> --indep

# Remove make calls
#grep -v makefile debian/rules > debian/rules.new 
#mv debian/rules.new debian/rules 

sed -i 's/Depends: /Depends: docker-engine (>= 1.9.1-0~), /' debian/control

# debian/install must contain the list of scripts to install 
# as well as the target directory
for i in $(ls smrt*); do echo $i usr/bin >> debian/install; done

# Remove the example files
rm debian/*.ex

# Build the package.
# You  will get a lot of warnings and ../somescripts_0.1-1_i386.deb
debuild -us -uc<commit_msg>[skip ci] now pulling initial image post-installation, added website and corrected version<commit_after># This script will automatically generate a debian package from the 
# current SUPERSMART source

# get version
DEBVERSION=$(perl -I$SUPERSMART_HOME/lib -MBio::SUPERSMART -e '($v=$Bio::SUPERSMART::VERSION)=~s/v//; print $v;')

# set up directories
DEBFOLDER=supersmart
DEBFOLDERNAME=$DEBFOLDER-$DEBVERSION
UPSTREAM_TARBALL=supersmart_$DEBVERSION.orig.tar.gz

# make upstream tarball
cp -r upstream/ $DEBFOLDERNAME
tar cvfz $UPSTREAM_TARBALL $DEBFOLDERNAME

# unpack upstream tarball
tar xf $UPSTREAM_TARBALL

cd $DEBFOLDERNAME

# Create the packaging skeleton (debian/*)
dh_make -s -e <EMAIL> --indep

# Remove make calls
#grep -v makefile debian/rules > debian/rules.new 
#mv debian/rules.new debian/rules 

# add docker dependency
sed -i 's/Depends: /Depends: docker-engine (>= 1.9.1-0~), /' debian/control

# add project website
printf "Homepage: http://www.supersmart-project.org\n" >> debian/control

# debian/install must contain the list of scripts to install 
# as well as the target directory
for i in $(ls smrt*); do echo $i usr/bin >> debian/install; done

# Remove the example files
rm debian/*.ex

# make post-installation file which downloads the docker images
printf %"s\n" \
	'#!bin/sh' \
	'echo "Retrieving SUPERSMART image from Docker hub, this might take a while."' \
	'docker pull naturalis/supersmart' > debian/postinst

# Build the package.
# You  will get a lot of warnings and ../somescripts_0.1-1_i386.deb
debuild -us -uc
{'fraction_non_alphanumeric': 0.10824108241082411, 'fraction_numerical': 0.009020090200902008, 'mean_word_length': 4.4708520179372195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3191262', 'n_tokens_mistral': 900, 'n_tokens_neox': 858, 'n_words': 268}