callirhoe/make_resources_list
ph4ntome@gmail.com d6221eff89 added make_resource_list
git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@173 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
2014-10-31 12:22:57 +00:00

11 lines
483 B
Bash
Executable File

#!/bin/bash
echo -n resource_list = { \"lang\" : [
find ./lang | grep '.py' | sed 's/\.\//"/' | sed 's/$/"/' | tr '\n' ',' | sed 's/.$/], /'
echo -n \"layouts\" : [
find ./layouts | grep '.py' | sed 's/\.\//"/' | sed 's/$/"/' | tr '\n' ',' | sed 's/.$/], /'
echo -n \"style\" : [
find ./style | grep '.py' | sed 's/\.\//"/' | sed 's/$/"/' | tr '\n' ',' | sed 's/.$/], /'
echo -n \"geom\" : [
find ./geom | grep '.py' | sed 's/\.\//"/' | sed 's/$/"/' | tr '\n' ',' | sed 's/.$/]}/'