aboutsummaryrefslogtreecommitdiff
path: root/ppmtopng.sh
blob: f73dcd1f339b39411587d9dbaa0fe4ed89cd37df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

cd ${0%/*} # go to project root

if [ $# -eq 0 ]; then
      echo "Please provide the path"
      exit 1
fi

set -xe

for i in $1/file*.ppm; do
    pnmtopng "$i" >> "${i/ppm/png}"
done