summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2024-12-13 11:02:33 +0530
committerSunil Shetye2024-12-13 11:02:33 +0530
commitedb1d1bab08d33d272141fc400f075617095d4a9 (patch)
treee0ed7601090e971cebab76742f29ec555928f3ff
parent0907f7598423f038919c1bcb8492f79df637de3a (diff)
downloadCommon-Interface-Project-edb1d1bab08d33d272141fc400f075617095d4a9.tar.gz
Common-Interface-Project-edb1d1bab08d33d272141fc400f075617095d4a9.tar.bz2
Common-Interface-Project-edb1d1bab08d33d272141fc400f075617095d4a9.zip
remove xsl parameters
-rwxr-xr-xblocks/xcos2xml/replacesplitblocks.sh48
1 files changed, 24 insertions, 24 deletions
diff --git a/blocks/xcos2xml/replacesplitblocks.sh b/blocks/xcos2xml/replacesplitblocks.sh
index d12660cc..aad98f42 100755
--- a/blocks/xcos2xml/replacesplitblocks.sh
+++ b/blocks/xcos2xml/replacesplitblocks.sh
@@ -2,38 +2,38 @@
usage() {
echo "Usage:" >&2
- echo " $0 split-file.xsl file.xsl geometry-file.xsl input-file.xcos > output-file.xml" >&2
- echo " $0 split-file.xsl file.xsl geometry-file.xsl input-file.xml > output-file.xml" >&2
+ echo " $0 input-file.xcos > output-file.xml" >&2
+ echo " $0 input-file.xml > output-file.xml" >&2
exit 1
}
-if test $# -ne 4; then
+if test $# -ne 1; then
usage
fi
make -s >&2
-SPLITXSL="$1"
+SPLITXSL="eda-frontend/public/splitblock.xsl"
if test ! -f "$SPLITXSL"; then
- echo "$SPLITXSL: not found" >&2
- usage
+ echo "$SPLITXSL: not found" >&2
+ usage
fi
if test "${SPLITXSL%.xsl}" = "$SPLITXSL"; then
- echo "$SPLITXSL: not xsl" >&2
- usage
+ echo "$SPLITXSL: not xsl" >&2
+ usage
fi
-XSL="$2"
+XSL="eda-frontend/public/xcos2xml.xsl"
if test ! -f "$XSL"; then
- echo "$XSL: not found" >&2
- usage
+ echo "$XSL: not found" >&2
+ usage
fi
if test "${XSL%.xsl}" = "$XSL"; then
- echo "$XSL: not xsl" >&2
- usage
+ echo "$XSL: not xsl" >&2
+ usage
fi
-GEOMETRYXSL="$2"
+GEOMETRYXSL="eda-frontend/public/geometry.xsl"
if test ! -f "$GEOMETRYXSL"; then
echo "$GEOMETRYXSL: not found" >&2
usage
@@ -43,21 +43,21 @@ if test "${GEOMETRYXSL%.xsl}" = "$GEOMETRYXSL"; then
usage
fi
-INPUT="$4"
+INPUT="$1"
if test ! -f "$INPUT"; then
- echo "$INPUT: not found" >&2
- usage
+ echo "$INPUT: not found" >&2
+ usage
fi
if test "${INPUT%.xml}" != "$INPUT"; then
- INPUTXML="$INPUT"
- BASE="${INPUT%.xml}"
- INPUT="$BASE.xcos"
+ INPUTXML="$INPUT"
+ BASE="${INPUT%.xml}"
+ INPUT="$BASE.xcos"
elif test "${INPUT%.xcos}" != "$INPUT"; then
- INPUTXML=
- BASE="${INPUT%.xcos}"
+ INPUTXML=
+ BASE="${INPUT%.xcos}"
else
- echo "$INPUT: not xml / xcos" >&2
- usage
+ echo "$INPUT: not xml / xcos" >&2
+ usage
fi
set -e