File: version-gen.sh

package info (click to toggle)
pipexec 2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: ansic: 1,194; sh: 74; makefile: 20
file content (17 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

TOPSRCDIR=""
if test $# -eq 1;
then
    TOPSRCDIR="$1/"
fi

VERSION=$("${TOPSRCDIR}version.sh" "$@")

OFILE=${PWD}/src/app_version.c

cat <<EOF >"${OFILE}"
#include "src/version.h"
char const app_version[] = "${VERSION}";
EOF