Skip to content

Commit

Permalink
project clean
Browse files Browse the repository at this point in the history
  • Loading branch information
karimnaaji committed Mar 31, 2014
1 parent 6c7345f commit 031f3ea
Show file tree
Hide file tree
Showing 33 changed files with 14 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -18,7 +18,9 @@ cmake_install.cmake
*.swo
*.log

build/images/
build/images/*
build/linux/
build/osx/

#os file
.DS_Store
Expand Down
21 changes: 11 additions & 10 deletions build/run.sh
@@ -1,4 +1,5 @@
#!/bin/bash
# must be ran into osx/ or linux/ folder inside build/
cmake ../..
make
if [[ $? == 0 ]]
Expand All @@ -9,16 +10,16 @@ then
d=$(($d2-$d1))
echo "$(($d/60)) minutes and $(($d%60)) seconds elapsed."

now=`date +"%d%b%Y-%s"`
scene=`echo $1 | cut -d'.' -f1`
filename="../images/$scene-$now-$2sppx.png"
now=`date +"%d%b%Y-%s"`
scene=`echo $1 | cut -d'.' -f1`
filename="../images/$scene-$now-$2sppx.png"
convert image.ppm $filename

echo "filename: $filename"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
xdg-open $filename
elif [[ "$OSTYPE" == "darwin12" ]]; then
open $filename
fi
rm -v image.ppm
echo "filename: $filename"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
xdg-open $filename
elif [[ "$OSTYPE" == "darwin12" ]]; then
open $filename
fi
rm -v image.ppm
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 031f3ea

Please sign in to comment.