Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brittney allen
purr-data
Commits
96732cb6
Commit
96732cb6
authored
11 years ago
by
Ivica Bukvic
Browse files
Options
Downloads
Patches
Plain Diff
fixed erroneous meta file generation script
parent
5bc6e3d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/generate-libdir-metafile.sh
+6
-3
6 additions, 3 deletions
scripts/generate-libdir-metafile.sh
with
6 additions
and
3 deletions
scripts/generate-libdir-metafile.sh
+
6
−
3
View file @
96732cb6
#!/bin/sh
#!/bin/
ba
sh
# this script is used to generate a mylibrary/mylibrary.pd meta file. This
# 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
# file is read for relevant meta data when a libdir is opened. (That's the
# plan at least) <hans@at.or.at>
# 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
# keeps track of where the last bit of text was printed so that new text is
# not printed on top of existing text
# not printed on top of existing text
Y
=
10
Y
=
10
...
@@ -14,7 +16,7 @@ print_pd_text ()
...
@@ -14,7 +16,7 @@ print_pd_text ()
file_name
=
"
$1
"
;
shift
file_name
=
"
$1
"
;
shift
meta_type
=
"
$1
"
;
shift
meta_type
=
"
$1
"
;
shift
echo
"#X text 10
$Y
${
meta_type
}
$@
;"
>>
"
$file_name
"
echo
"#X text 10
$Y
${
meta_type
}
$@
;"
>>
"
$file_name
"
((
Y
=
Y+20
))
let
Y
=
"
Y+20
"
}
}
if
[
$#
-lt
2
]
;
then
if
[
$#
-lt
2
]
;
then
...
@@ -33,7 +35,8 @@ else
...
@@ -33,7 +35,8 @@ else
BASE_DIR
=
"
$1
"
;
shift
BASE_DIR
=
"
$1
"
;
shift
LIBNAME
=
"
$1
"
;
shift
LIBNAME
=
"
$1
"
;
shift
libdir_file_name
=
"
${
BASE_DIR
}
/
${
LIBNAME
}
/
${
LIBNAME
}
-meta.pd"
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
}
"
touch
"
${
libdir_file_name
}
"
# create .pd header with subpatch called "META"
# create .pd header with subpatch called "META"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment