X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmetadata%2Fpostgresql_V7_mowgli%2FMakefile;fp=helm%2Fmetadata%2Fpostgresql_V7_mowgli%2FMakefile;h=c0814d7fb5d6b25afaa165ce79ac934d60d202fc;hb=7ba6844c6d663f67235e8da1e06f7f08c77ae8c2;hp=0000000000000000000000000000000000000000;hpb=6dd0e56f785c5b7e19b4c0de596f2e8d1baffadb;p=helm.git diff --git a/helm/metadata/postgresql_V7_mowgli/Makefile b/helm/metadata/postgresql_V7_mowgli/Makefile new file mode 100644 index 000000000..c0814d7fb --- /dev/null +++ b/helm/metadata/postgresql_V7_mowgli/Makefile @@ -0,0 +1,16 @@ +CWD=/projects/helm/metadata/postgresql_V7_mowgli_new_schema + +txt: + (cd forward && find . -type d -exec mkdir -p $(CWD)/txt/{} \;) + (cd forward && find . -name "*.xml" -exec xsltproc --param path '"{}"' -o $(CWD)/txt/{}.txt $(CWD)/metainfo.xsl {} \; -exec echo {} \;) + +upload: + (cd txt && find */* -name "*.txt" > index.txt) + (cd txt && cat index.txt | ../inserisci.pl) + ./upload_rel.pl forward_rel.xml | psql -h mowgli -U helm helm_mowgli_new_schema + ./upload_sort.pl forward_sort.xml | psql -h mowgli -U helm helm_mowgli_new_schema + +clean: + rm -rf txt/* + +.PHONY: txt