Skip to content

Instantly share code, notes, and snippets.

@AndreiDuma
Created January 17, 2016 17:05
Show Gist options
  • Save AndreiDuma/0f313efefacd66b307b7 to your computer and use it in GitHub Desktop.
Save AndreiDuma/0f313efefacd66b307b7 to your computer and use it in GitHub Desktop.
#!/bin/bash
scores_file=~/dev/pc/scores.txt # TODO
echo '' >> $scores_file
pwd | grep -Eo [^/]+\.z >> $scores_file
tests_folder=../../tests # TODO
cp -r $tests_folder .
make # s-ar putea să dea fail la unii, trebuie să le corectezi Makefile-ul
mv allocator tests # și aici s-ar putea să dea fail
cd tests
make -f Makefile.test test-bonus | grep PASS
#!/bin/bash
# se apelează gen:
# $ comment "-0.1 linii lungi"
$scores_file=../../scores.txt # TODO
echo $1 >> $scores_file
#!/bin/bash
$scores_file=~/dev/pc/scores.txt # TODO
vim $scores_file
#!/bin/bash
for zp in `ls *.zip`; do
folder="$zp".d
mkdir $folder
unzip $zp -d $folder
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment