-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MT#54294 packaging for rtpengine-gpu
Change-Id: Ida33db035754763a6709bb0bcdc001e8764b88f9
- Loading branch information
Showing
4 changed files
with
130 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
for pkg in ngcp-rtpengine-daemon ngcp-rtpengine-recording-daemon ngcp-rtpengine-perftest; do | ||
for file in "$pkg".*; do | ||
if test -f "$file"; then | ||
suffix=${file#"$pkg".} | ||
cp -v "$pkg"."$suffix" "$pkg"-gpu."$suffix" | ||
fi | ||
done | ||
for file in "$pkg"@.*; do | ||
if test -f "$file"; then | ||
suffix=${file#"$pkg"@.} | ||
cp -v "$pkg"@."$suffix" "$pkg"-gpu@."$suffix" | ||
fi | ||
done | ||
if test -f "$pkg"-gpu.links; then | ||
rm -vf "$pkg"-gpu.links.tmp | ||
while read -r line; do | ||
# rewrite link from original 'rtpengine-daemon.service -> ngcp-rtpengine-daemon.service' | ||
# ... to 'rtpengine-daemon-gpu.service -> ngcp-rtpengine-daemon-gpu.service' | ||
echo "$line" | sed 's/\(@\?\)\.service/-gpu\1.service/g' >> "$pkg"-gpu.links.tmp | ||
# add link 'rtpengine-daemon.service -> ngcp-rtpengine-daemon-gpu.service' | ||
echo "$line" | sed 's/\(@\?\)\.service/-gpu\1.service/' >> "$pkg"-gpu.links.tmp | ||
# add link 'ngcp-rtpengine-daemon.service -> ngcp-rtpengine-daemon-gpu.service' | ||
echo "$line" | sed 's/\(@\?\)\.service/-gpu\1.service/; s,system/rtpengine,system/ngcp-rtpengine,' >> "$pkg"-gpu.links.tmp | ||
done < "$pkg"-gpu.links | ||
mv -v "$pkg"-gpu.links.tmp "$pkg"-gpu.links | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters