3 SCRIPT_FILE=$(readlink -f $0)
4 SCRIPT_DIR=$(dirname $SCRIPT_FILE)
6 VERSION_FILE=$SCRIPT_DIR/version.txt
7 RPMSPEC=$SCRIPT_DIR/csapi-tizenfx.spec
12 while getopts ":r:n:" opt; do
14 r) RPM_VERSION=$OPTARG ;;
15 n) NUGET_VERSION=$OPTARG ;;
16 :) echo "Option -$OPTARG requires an argument."; exit 1 ;;
20 RPM_VERSION=$RPM_VERSION+$RPM_VERSION_SUFFIX
23 echo "# Auto-generated from $(basename $RPMSPEC_IN) by makespec.sh" | cat - $RPMSPEC_IN > $RPMSPEC
24 sed -i -e "s/@api_version@/$API_VERSION/g" $RPMSPEC
25 sed -i -e "s/@rpm_version@/$RPM_VERSION/g" $RPMSPEC
26 sed -i -e "s/@nuget_version@/$NUGET_VERSION/g" $RPMSPEC
29 python $SCRIPT_DIR/makerid.py
32 python $SCRIPT_DIR/maketfm.py
34 # Update Runtime Version
35 python $SCRIPT_DIR/makeruntimeversion.py