Add separate $RANLIBCOM and $RANLIBCOMSTR variables. (Christoph Schulz)
[scons.git] / test / AR / ARCOM.py
index cf46559b48c0aa09fb814d9c74d383612a5df6be..c8ac1d87026662cc23f21eaa0510dfc6211204cd 100644 (file)
@@ -46,13 +46,17 @@ for f in sys.argv[2:]:
 sys.exit(0)
 """)
 
+test.write('myranlib.py', """
+""")
+
 test.write('SConstruct', """
 env = Environment(tools=['default', 'ar'],
                   ARCOM = r'%s myar.py $TARGET $SOURCES',
+                  RANLIBCOM = r'%s myranlib.py $TARGET',
                   LIBPREFIX = '',
                   LIBSUFFIX = '.lib')
 env.Library(target = 'output', source = ['file.1', 'file.2'])
-""" % python)
+""" % (python, python))
 
 test.write('file.1', "file.1\n/*ar*/\n")
 test.write('file.2', "file.2\n/*ar*/\n")