sm64/shape/al
2022-12-04 22:27:02 -05:00

106 lines
5.6 KiB
Tcsh

#!/bin/csh
ls -la hms_enemy*.c hms_keep.c hms_basic_enemy.c > sos.sos
awk 'BEGIN {printf "enemyshape: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " touch enemyshape\n\n"}' sos.sos2 > sos.make
ls -la enemy1_a/*.shape enemy1_a/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_a.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_a\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_b/*.shape enemy1_b/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_b.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_b\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_c/*.shape enemy1_c/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_c.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_c\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_d/*.shape enemy1_d/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_d.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_d\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_e/*.shape enemy1_e/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_e.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_e\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_f/*.shape enemy1_f/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_f.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_f\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_g/*.shape enemy1_g/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_g.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_g\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_h/*.shape enemy1_h/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_h.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_h\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_i/*.shape enemy1_i/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_i.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_i\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_j/*.shape enemy1_j/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_j.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_j\n\n"}' sos.sos2 >> sos.make
ls -la enemy1_k/*.shape enemy1_k/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy1_k.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy1_k\n\n"}' sos.sos2 >> sos.make
ls -la enemy2_a/*.shape enemy2_a/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy2_a.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy2_a\n\n"}' sos.sos2 >> sos.make
ls -la enemy2_d/*.shape enemy2_d/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy2_d.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy2_d\n\n"}' sos.sos2 >> sos.make
ls -la enemy2_e/*.shape enemy2_e/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy2_e.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy2_e\n\n"}' sos.sos2 >> sos.make
ls -la enemy2_f/*.shape enemy2_f/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy2_f.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy2_f\n\n"}' sos.sos2 >> sos.make
ls -la enemy2_g/*.shape enemy2_g/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy2_g.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy2_g\n\n"}' sos.sos2 >> sos.make
ls -la enemy2_h/*.shape enemy2_h/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_enemy2_h.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape enemy2_h\n\n"}' sos.sos2 >> sos.make
ls -la keep/*.shape keep/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_keep.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape keep\n\n"}' sos.sos2 >> sos.make
ls -la basic_enemy/*.shape basic_enemy/*/*.shape > sos.sos
awk 'BEGIN {printf "hms_basic_enemy.c: \\\n"}{printf "%s \\\n",$9}' sos.sos > sos.sos1
sed '$s/\\//' sos.sos1 > sos.sos2
awk '{printf "%s\n",$0}END{printf " mkshape basic_enemy\n\n"}' sos.sos2 >> sos.make
make -f sos.make