Skip to content

Commit

Permalink
Merge pull request #40 from IBM/bugfix/fix_file_target_mapping
Browse files Browse the repository at this point in the history
fix file target mapping
  • Loading branch information
edmundreinhardt authored Oct 7, 2021
2 parents 68f87e1 + dba2163 commit 0c1b163
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mk/filetypeTargetMap.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#! /QOpenSys/pkgs/bin/bash

declare -A FILETARGETMAPPING;
FILETARGETMAPPING[PGM.RPGLE]=PGM
FILETARGETMAPPING[PGM.CLLE]=PGM
FILETARGETMAPPING[PGM.C]=PGM
FILETARGETMAPPING[CMDSRC]=CMD
FILETARGETMAPPING[DSPF]=FILE
FILETARGETMAPPING[LF]=FILE
Expand All @@ -13,8 +16,6 @@ FILETARGETMAPPING[CLLE]=MODULE
FILETARGETMAPPING[SQLC]=MODULE
FILETARGETMAPPING[SQLRPGLE]=MODULE
FILETARGETMAPPING[MODULE]=PGM
FILETARGETMAPPING[PGM.RPGLE]=PGM
FILETARGETMAPPING[PGM.C]=PGM
FILETARGETMAPPING[CBL]=PGM
FILETARGETMAPPING[RPG]=PGM
FILETARGETMAPPING[ILEPGM]=PGM
Expand Down Expand Up @@ -43,6 +44,7 @@ get_target_from_srcfile() {
targetName="${filename%.${i}}";
targetName=$(echo $targetName | awk -F- '{ print $1 }')
echo "${targetName}.${FILETARGETMAPPING[$i]}"
break
fi
done
}

0 comments on commit 0c1b163

Please sign in to comment.