Skip to content
This repository has been archived by the owner on Jun 20, 2020. It is now read-only.

Commit

Permalink
Simplified run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Jun 25, 2011
1 parent e751d82 commit f2bd187
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions run.sh
@@ -1,15 +1,4 @@
#!/bin/sh

if [ $1 -lt 10 ];
then
dir_name="problem_00$1"
else
if [ $1 -lt 100 ];
then
dir_name="problem_0$1"
else
dir_name="problem_$1"
fi
fi

dir_name=`printf "problem_%03d" $1`
cd $dir_name && 6g $1.go && 6l $1.6 && ./6.out && make clean

0 comments on commit f2bd187

Please sign in to comment.