Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ LT_INIT(disable-static win32-dll)

AC_PROG_CXX
AM_PROG_CC_C_O

CXXFLAGS="$CXXFLAGS -std=c++11"
AC_CXX_HAVE_SSTREAM

AC_CONFIG_SRCDIR([vc2hqencode/vc2hqencode.h])
Expand All @@ -61,9 +61,9 @@ debug_default="no"
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
[default=$debug_default]],, enable_debug=$debug_default)
if test "x$enable_debug" = "xyes"; then
VC2HQENCODE_CFLAGS="$VC2HQENCODE_CFLAGS -g -Og -DDEBUG"
CXXFLAGS="$CXXFLAGS -O0"
VC2HQENCODE_LDFLAGS="$VC2HQENCODE_LDFLAGS -pg"
VC2HQENCODE_CFLAGS="$VC2HQENCODE_CFLAGS -g -Og -DDEBUG"
CXXFLAGS="$CXXFLAGS -O0"
VC2HQENCODE_LDFLAGS="$VC2HQENCODE_LDFLAGS -pg"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
Expand Down
21 changes: 6 additions & 15 deletions duplicate-transform
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/bin/bash

#*****************************************************************************
#* duplicate-transform: A script that duplicates the transform headers
Expand All @@ -25,18 +25,9 @@
#* For more information, contact us at ipstudio@bbc.co.uk.
#*****************************************************************************

import sys
import re
infilename="$1"
outfilename="$2"
inext="$3"
outext="$4"

infilename = sys.argv[1]
outfilename = sys.argv[2]

inext = sys.argv[3]
outext = sys.argv[4]

fi = open(infilename, 'r')
fo = open(outfilename, 'w')

for l in fi:
l = re.sub(inext, outext, l)
fo.write(l)
sed "s/${inext}/${outext}/g" "$infilename" > "$outfilename"