Skip to content

Commit

Permalink
FIXED: Fix new_source script for new directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
fletcher committed Mar 3, 2017
1 parent 3f93527 commit 3d63fc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions new_source
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
FILE=$1


cp build/template.c src/$FILE.c
cp build/template.c Sources/$FILE.c

perl -pi -e "s/file\.c/$FILE\.c/;" -e "s/file\.h/$FILE\.h/;" src/$FILE.c
perl -pi -e "s/file\.c/$FILE\.c/;" -e "s/file\.h/$FILE\.h/;" Sources/$FILE.c


cp build/template.h src/$FILE.h
cp build/template.h Sources/$FILE.h

perl -pi -e "s/file\.c/$FILE\.c/;" -e "s/file\.h/$FILE\.h/;" -e "s/FILE\_/\U$FILE\_/;" src/$FILE.h
perl -pi -e "s/file\.c/$FILE\.c/;" -e "s/file\.h/$FILE\.h/;" -e "s/FILE\_/\U$FILE\_/;" Sources/$FILE.h

0 comments on commit 3d63fc4

Please sign in to comment.