File: gemdefaultwindow.sh

package info (click to toggle)
gem 1%3A0.94-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 25,220 kB
  • sloc: cpp: 174,266; ansic: 42,129; makefile: 3,849; sh: 1,076; objc: 389
file content (16 lines) | stat: -rwxr-xr-x 322 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

INFILE=$1
shift

OUTFILE=${INFILE##*/}
OUTFILE=${OUTFILE%.in}
OUTFILE=${OUTFILE%.pd}

for WINFILE in "$@"; do
  WINFILE=${WINFILE##*/}
  WINFILE=${WINFILE%.*}
  BACKEND=${WINFILE%window}
  BACKEND=${BACKEND#gem}
  cat "${INFILE}" | sed -e "s|@GEM_DEFAULT_WINDOW@|${WINFILE}|g" > "${OUTFILE}-${BACKEND}.pd"
done