File: substitute.sh

package info (click to toggle)
mate-window-applets 21.04.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 348 kB
  • sloc: xml: 55; sh: 53; makefile: 7
file content (11 lines) | stat: -rwxr-xr-x 128 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/bash

cp $1 $2

sed -i -e 's,@VERSION@,1.5.1,g' $2;

if [[ ! -z $3 ]]; then

	sed -i -e 's,@LOCATION@,'${3}',g' $2;

fi