improve smartflash copy-files code

This commit is contained in:
Stefan `Sec` Zehl 2011-12-29 04:10:56 +01:00
parent e2092c9aa7
commit b0ec9d6579
2 changed files with 33 additions and 35 deletions

View File

@ -1,12 +1,11 @@
setup: setup:
cd ../../firmware && make clean && make && make l0dables cd ../../firmware && make clean && make && make l0dables
cp ../../firmware/firmware.bin . cp ../../firmware/firmware.bin .
-mkdir files 1files -mkdir files
cp ../../firmware/l0dable/*c0d 1files cp ../../firmware/l0dable/*c0d files
cp ../../firmware/l0dable/*nik files cp ../../firmware/l0dable/*nik files
cp ../../firmware/l0dable/*int files cp ../../firmware/l0dable/*int files
cp ../../firmware/l0dable/files/* files cp ../../firmware/l0dable/files/* files
mv files/debug.int 1files/debug.int
cp ../font/binary/*f0n files cp ../font/binary/*f0n files
cp ../image/lcd/*lcd files cp ../image/lcd/*lcd files
cp ../image/lcd/i42.lcd files/nick.lcd cp ../image/lcd/i42.lcd files/nick.lcd
@ -17,6 +16,6 @@ setup:
clean: clean:
rm firmware.bin generate-keys rm firmware.bin generate-keys
rm -rf files 1files rm -rf files

View File

@ -3,7 +3,6 @@
dev=$1 dev=$1
dir=/tmp/r0ket dir=/tmp/r0ket
set -e set -e
if [ ! -d $dir ] ; then if [ ! -d $dir ] ; then
@ -17,36 +16,36 @@ fi
umount /dev/$dev 2>/dev/null || true umount /dev/$dev 2>/dev/null || true
./generate-keys ./generate-keys
mount /dev/$dev -t vfat $dir/$dev mount /dev/$dev -t vfat $dir/$dev
cp \
1files/invaders.c0d \ perl copy-files-ordered files $dir/$dev \
1files/mandel.c0d \ invaders.c0d \
1files/r_player.c0d \ mandel.c0d \
1files/jump.c0d \ r_player.c0d \
1files/bricks.c0d \ jump.c0d \
1files/rockets.c0d \ bricks.c0d \
1files/fahrplan.c0d \ rockets.c0d \
1files/r0type.c0d \ fahrplan.c0d \
1files/beaconid.c0d \ r0type.c0d \
1files/people.c0d \ beaconid.c0d \
1files/release.c0d \ people.c0d \
1files/starfld.c0d \ release.c0d \
1files/static.c0d \ starfld.c0d \
1files/sendcard.c0d \ static.c0d \
1files/recvcard.c0d \ sendcard.c0d \
1files/showcard.c0d \ recvcard.c0d \
1files/pongo.c0d \ showcard.c0d \
1files/minichat.c0d \ pongo.c0d \
1files/blink.c0d \ minichat.c0d \
1files/pwgen.c0d \ blink.c0d \
1files/showlcd.c0d \ pwgen.c0d \
1files/tedliz.c0d \ showlcd.c0d \
1files/leiwand.c0d \ tedliz.c0d \
1files/scope.c0d \ leiwand.c0d \
1files/Geigerct.c0d \ scope.c0d \
1files/voltage.c0d \ Geigerct.c0d \
1files/debug.int \ voltage.c0d \
files/* \ debug.int
$dir/$dev
#sync #sync
#ls -l $dir/$dev #ls -l $dir/$dev
umount /dev/$dev umount /dev/$dev