Group :: Som
RPM: zam-plugins
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: dpf-generate-ttl.sh.patch
Download
Download
--- dpf/utils/generate-ttl.sh~ 2018-04-12 01:29:29.000000000 +0300
+++ dpf/utils/generate-ttl.sh 2018-06-06 13:10:58.373626675 +0300
@@ -1,6 +1,4 @@
-#!/bin/bash
-
-set -e
+#!/bin/sh -e
if [ -d bin ]; then
cd bin
@@ -9,13 +7,13 @@
exit
fi
-PWD=`dirname $0`
+PWD="$(dirname $0)"
-if [ -f $PWD/lv2_ttl_generator.exe ]; then
- GEN=$PWD/lv2_ttl_generator.exe
+if [ -f "$PWD/lv2_ttl_generator.exe" ]; then
+ GEN="$PWD/lv2_ttl_generator.exe"
EXT=dll
else
- GEN=$PWD/lv2_ttl_generator
+ GEN="$PWD/lv2_ttl_generator"
if [ -d /Library/Audio ]; then
EXT=dylib
else
@@ -23,11 +21,11 @@
fi
fi
-FOLDERS=`find . -type d -name \*.lv2`
+FOLDERS=$(find . -type d -name \*.lv2)
for i in $FOLDERS; do
cd $i
- FILE=`ls *.$EXT | sort | head -n 1`
+ FILE=$(ls *.$EXT | sort | head -n 1)
$GEN ./$FILE
cd ..
done