Skip to content
Snippets Groups Projects
Commit 96732cb6 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed erroneous meta file generation script

parent 5bc6e3d6
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
#!/bin/bash
# this script is used to generate a mylibrary/mylibrary.pd meta file. This
# file is read for relevant meta data when a libdir is opened. (That's the
# plan at least) <hans@at.or.at>
# improvements and bug-fixes by Ivica Ico Bukvic <ico@vt.edu> 2013
# keeps track of where the last bit of text was printed so that new text is
# not printed on top of existing text
Y=10
......@@ -14,7 +16,7 @@ print_pd_text ()
file_name="$1"; shift
meta_type="$1"; shift
echo "#X text 10 $Y ${meta_type} $@;" >> "$file_name"
((Y=Y+20))
let Y="Y+20"
}
if [ $# -lt 2 ]; then
......@@ -33,7 +35,8 @@ else
BASE_DIR="$1"; shift
LIBNAME="$1"; shift
libdir_file_name="${BASE_DIR}/${LIBNAME}/${LIBNAME}-meta.pd"
# create pd file
# delete old and create a new pd file
rm -f "${libdir_file_name}"
touch "${libdir_file_name}"
# create .pd header with subpatch called "META"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment