File: replaceversion.sh

package info (click to toggle)
whitedune 0.30.10-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 42,004 kB
  • sloc: cpp: 116,017; ansic: 79,688; java: 20,101; sh: 3,248; yacc: 2,902; makefile: 1,717; lex: 848; awk: 363; perl: 270; objc: 143; lisp: 112; python: 22
file content (13 lines) | stat: -rwxr-xr-x 361 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# This file is free software; the Free Software Foundation    
# gives unlimited permission to copy, distribute and modify it.

if test $# != 1 ;then
   echo usage: $0 'stringtoreplace < infile > outfile'
   exit 1
fi

EXECDIR=`dirname $0`
gawk -v version=`(cd $EXECDIR && cd .. && basename $PWD)` \
     -v replace=$1 -f $EXECDIR/replaceversion.awk