build 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/[% project %]
  4. export TORBROWSER_VERSION='[% c("version") %]'
  5. mkdir -p $distdir
  6. scripts_dir=/var/tmp/build_scripts
  7. mkdir -p "$scripts_dir"
  8. OUTDIR='[% dest_dir _ "/" _ c("filename") %]'
  9. mkdir -p $OUTDIR
  10. # When we build with MULTI_LINGUAL=1, the browser will be packaged inside a
  11. # directory named tor-browser (instead of tor-browser_en-US). Therefore we
  12. # stage everything under tor-browser-stage to avoid a conflict.
  13. TB_STAGE_DIR=$distdir/tor-browser-stage
  14. GENERATEDPREFSPATH=$rootdir/Bundle-Data/PTConfigs/generated-prefs.js
  15. # Create initially empty prefs file where we can dump our conditionally included/genetered prefs
  16. touch "$GENERATEDPREFSPATH"
  17. [% IF c("var/osx") %]
  18. TBDIR="$TB_STAGE_DIR/Tor Browser.app"
  19. DOCSPATH=Contents/Resources/TorBrowser/Docs
  20. EXTSPATH=Contents/Resources/distribution/extensions
  21. TORBINPATH=Contents/MacOS/Tor
  22. TORCONFIGPATH=Contents/Resources/TorBrowser/Tor
  23. MEEKPROFILEPATH=Contents/Resources/TorBrowser/Tor/PluggableTransports/template-profile.meek-http-helper
  24. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/libdmg') %]
  25. export PATH=/var/tmp/dist/libdmg-hfsplus:$PATH
  26. [% ELSE %]
  27. TBDIR=$TB_STAGE_DIR/Browser
  28. DOCSPATH=TorBrowser/Docs
  29. EXTSPATH=TorBrowser/Data/Browser/profile.default/extensions
  30. TORCONFIGPATH=TorBrowser/Data/Tor
  31. MEEKPROFILEPATH=TorBrowser/Data/Browser/profile.meek-http-helper
  32. MOATPROFILEPATH=TorBrowser/Data/Browser/profile.moat-http-helper
  33. mkdir -p "$TBDIR/TorBrowser/Data/Browser/Caches"
  34. [% END %]
  35. mkdir -p "$TBDIR/$EXTSPATH"
  36. mkdir -p "$TBDIR/$MEEKPROFILEPATH/extensions"
  37. # Extract the MAR tools.
  38. unzip -d $rootdir $rootdir/[% c('input_files_by_name/firefox') %]/mar-tools-*.zip
  39. MARTOOLS=$rootdir/mar-tools
  40. mv [% c('input_files_by_name/tor-launcher') %] "$TBDIR/$EXTSPATH/tor-launcher@torproject.org.xpi"
  41. mv [% c('input_files_by_name/torbutton') %] "$TBDIR/$EXTSPATH/torbutton@torproject.org.xpi"
  42. mv [% c('input_files_by_name/https-everywhere') %] "$TBDIR/$EXTSPATH/https-everywhere-eff@eff.org.xpi"
  43. mv [% c('input_files_by_name/noscript') %] "$TBDIR/$EXTSPATH/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi"
  44. tar -C "$TBDIR" -xf [% c('input_files_by_name/obfs4') %]
  45. tar -C "$TBDIR" -xf [% c('input_files_by_name/meek') %]
  46. mv "$TBDIR/meek-http-helper@bamsoftware.com.xpi" "$TBDIR/$MEEKPROFILEPATH/extensions/"
  47. [% IF c("var/snowflake") %]
  48. tar -C "$TBDIR" -xf [% c('input_files_by_name/snowflake') -%]
  49. [% END -%]
  50. [% IF c("var/fteproxy") -%]
  51. tar -C "$TBDIR" -xf [% c('input_files_by_name/fteproxy') %]
  52. [% END -%]
  53. tar -C "$TBDIR[% IF c("var/osx") %]/Contents/Resources[% END %]" -xf [% c('input_files_by_name/fonts') %]
  54. [% IF c("var/linux") %]
  55. cp RelativeLink/* ${TB_STAGE_DIR}/Browser/
  56. cp RelativeLink/start-tor-browser.desktop ${TB_STAGE_DIR}/
  57. cat > ${TB_STAGE_DIR}/Browser/start-tor-browser << 'RBM_TB_EOF'
  58. [% INCLUDE 'RelativeLink/start-tor-browser' -%]
  59. RBM_TB_EOF
  60. chmod +x ${TB_STAGE_DIR}/Browser/start-tor-browser
  61. # Make sure we get the desired scrollbar behavior with Gtk3, see bug 27546.
  62. GTK_SETTINGS_DIR=${TB_STAGE_DIR}/Browser/.config/gtk-3.0
  63. mkdir -p $GTK_SETTINGS_DIR
  64. cp $rootdir/gtk3-settings.ini $GTK_SETTINGS_DIR/settings.ini
  65. [% END %]
  66. tar -C ${TB_STAGE_DIR} -xf [% c('input_files_by_name/firefox') %]/tor-browser.tar.gz
  67. tar -C "$TBDIR[% IF ! c("var/osx") %]/TorBrowser[% END %]" -xf [% c('input_files_by_name/tor') %]/tor.tar.gz
  68. [% IF c("var/linux");
  69. SET bundledata_osname = 'linux';
  70. ELSIF c("var/osx");
  71. SET bundledata_osname = 'mac';
  72. ELSIF c("var/windows");
  73. SET bundledata_osname = 'windows';
  74. END; %]
  75. [% IF c("var/osx") %]
  76. # The Bundle-Data is designed for embedded data, so we need to modify
  77. # the structure when we want the data to be outside the app directory.
  78. # We also create an override.ini file to disable the profile migrator.
  79. SKELETON_TMP=$rootdir/Bundle-Data/mac-skeleton-tmp
  80. SKELETON_TMP_RESOURCES=$SKELETON_TMP/Contents/Resources
  81. mkdir -p $SKELETON_TMP_RESOURCES/browser
  82. echo "[XRE]" > $SKELETON_TMP_RESOURCES/browser/override.ini
  83. echo "EnableProfileMigrator=0" >> $SKELETON_TMP_RESOURCES/browser/override.ini
  84. mkdir -p $SKELETON_TMP_RESOURCES/TorBrowser/Tor
  85. cp -p Bundle-Data/mac/TorBrowser/Data/Tor/torrc-defaults $SKELETON_TMP_RESOURCES/TorBrowser/Tor/
  86. # Place a copy of the bookmarks.html file at the top. It will be moved into
  87. # browser/omni.ja later
  88. cp -p Bundle-Data/mac/TorBrowser/Data/Browser/profile.default/bookmarks.html $rootdir
  89. rm -Rf Bundle-Data/mac
  90. mv $SKELETON_TMP Bundle-Data/mac
  91. # Install a "tor" shim that sets the working directory. See #10030.
  92. mv "$TBDIR/$TORBINPATH/tor" "$TBDIR/$TORBINPATH/tor.real"
  93. cp Bundle-Data/mac-tor.sh "$TBDIR/$TORCONFIGPATH/tor"
  94. tar -C Bundle-Data/mac-applications.dmg -c . | tar -C $TB_STAGE_DIR -x
  95. [% END %]
  96. mkdir -p "$TBDIR/$DOCSPATH"
  97. cp -a Bundle-Data/Docs/* "$TBDIR/$DOCSPATH"
  98. tar -C Bundle-Data/[% bundledata_osname %] -c . | tar -C "$TBDIR[% IF ! c("var/osx") %]/TorBrowser[% END %]" -x
  99. cat Bundle-Data/PTConfigs/[% bundledata_osname %]/torrc-defaults-appendix >> "$TBDIR/$TORCONFIGPATH/torrc-defaults"
  100. [% IF c("var/linux") -%]
  101. [% IF ! c("var/snowflake") %]
  102. grep -v 'default_bridge\.snowflake' Bundle-Data/PTConfigs/bridge_prefs.js \
  103. >> "$GENERATEDPREFSPATH"
  104. [% ELSE %]
  105. cat Bundle-Data/PTConfigs/bridge_prefs.js >> "$GENERATEDPREFSPATH"
  106. [% END %]
  107. [% END -%]
  108. [% IF c("var/windows") -%]
  109. # We don't have snowflake available on Windows yet
  110. # We don't have fte available on Windows x86_64 yet
  111. grep -v 'default_bridge\.snowflake' Bundle-Data/PTConfigs/bridge_prefs.js \
  112. [% IF c("var/windows-x86_64") %]| grep -v 'default_bridge\.fte' [% END %] \
  113. >> "$GENERATEDPREFSPATH"
  114. [% END -%]
  115. [% IF c("var/osx") -%]
  116. # FTE is temporarily removed due to bug 18495.
  117. grep -Ev 'default_bridge\.fte' Bundle-Data/PTConfigs/bridge_prefs.js \
  118. [% IF ! c("var/snowflake") %]| grep -v 'default_bridge\.snowflake' [% END %] \
  119. >> "$GENERATEDPREFSPATH"
  120. [% END -%]
  121. cat Bundle-Data/PTConfigs/meek-http-helper-user.js >> "$TBDIR/$MEEKPROFILEPATH/user.js"
  122. [% IF c("var/osx") %]
  123. pushd "$TBDIR"
  124. # Create the meek-template-sha256sum.txt file by generating a list
  125. # of hashes (one for each file within the meek-http-helper profile) and
  126. # and then generating one final hash from the contents of the list.
  127. sha256sum `find $MEEKPROFILEPATH -type f | sort` | sha256sum | sed -e 's/ *-$//' > $MEEKPROFILEPATH/meek-template-sha256sum.txt
  128. popd
  129. [% END %]
  130. # For platforms for which we need to ship a Moat helper profile in addition
  131. # to a meek one, create it by duplicating the meek one that we just finished
  132. # creating.
  133. if [ ! -z "$MOATPROFILEPATH" ]; then
  134. cp -pR $TBDIR/$MEEKPROFILEPATH $TBDIR/$MOATPROFILEPATH
  135. fi
  136. [% IF ! c("var/multi_lingual") %]
  137. echo 'pref("extensions.torlauncher.prompt_for_locale", false);' >> "$GENERATEDPREFSPATH"
  138. [% END %]
  139. [% IF c("var/linux") %]
  140. chmod 700 ${TB_STAGE_DIR}/Browser/TorBrowser/Data/Browser
  141. chmod 700 ${TB_STAGE_DIR}/Browser/TorBrowser/Data/Tor
  142. [% END %]
  143. [% IF c("var/multi_lingual") %]
  144. # If we are building a multi-lingual package, use "ALL" in the package name
  145. # and as the locale for update purposes. We do not include "ALL" in the name
  146. # of the directory that is inside the package (in other words, users will
  147. # not see tor-browser_ALL after they install Tor Browser).
  148. PKG_LOCALE="ALL"
  149. PKG_DIR="tor-browser"
  150. [% ELSE %]
  151. PKG_LOCALE="en-US"
  152. PKG_DIR="tor-browser_${PKG_LOCALE}"
  153. [% END %]
  154. pushd "$TBDIR[% IF c("var/osx") %]/Contents/Resources[% END %]/browser/"
  155. # For the proper search engines in our language packs
  156. unzip omni.ja chrome/en-US/locale/browser/searchplugins* || [ $? -lt 3 ]
  157. mv chrome/en-US/locale/browser/searchplugins $rootdir
  158. rm -rf chrome/en-US
  159. unzip omni.ja defaults/preferences/000-tor-browser.js || [ $? -lt 3 ]
  160. # Append our built extension-overrides.js to 000-tor-browser.js
  161. cat "$GENERATEDPREFSPATH" >> defaults/preferences/000-tor-browser.js
  162. cp defaults/preferences/000-tor-browser.js $rootdir
  163. [% IF c("var/osx") %]
  164. # Embed our default bookmarks within the en-US locale.
  165. mkdir -p chrome/en-US/locale/browser
  166. cp -p $rootdir/bookmarks.html chrome/en-US/locale/browser/
  167. [% c("var/touch") %] chrome/en-US/locale/browser/bookmarks.html
  168. zip -Xm omni.ja chrome/en-US/locale/browser/bookmarks.html
  169. rm -rf chrome
  170. [% END %]
  171. # Set the locale of the bundle.
  172. echo "pref(\"intl.locale.requested\", \"en-US\");" >> defaults/preferences/000-tor-browser.js
  173. [% c("var/touch") %] defaults/preferences/000-tor-browser.js
  174. zip -Xm omni.ja defaults/preferences/000-tor-browser.js
  175. rm -rf defaults
  176. # create tbb_version.json file for #25020
  177. echo '{"version":"[% c("var/torbrowser_version") %]","architecture":"[% c("var/mar_osname") %]","channel":"[% c("var/channel") %]","locale":"en-US"}' > ../tbb_version.json
  178. popd
  179. # Prepare our language packs for using the proper search engines and embed
  180. # our default bookmarks. See bugs 18915 and 21879 for more details.
  181. [% SET locales = c("var/testbuild") ? [] : c("var/locales") -%]
  182. [% FOREACH lang = locales %]
  183. [% SET lang = tmpl(lang);
  184. SET xpi = '$rootdir/' _ c('input_files_by_name/firefox-langpacks') _ '/' _ lang _ '.xpi';
  185. %]
  186. unzip -d prep_[% lang %] [% xpi %]
  187. search_plugins_path=prep_[% lang %]/browser/chrome/[% lang %]/locale/browser
  188. rm -rf $search_plugins_path/searchplugins
  189. cp -rf $rootdir/searchplugins $search_plugins_path
  190. [% IF c("var/osx") -%]
  191. cp $rootdir/bookmarks.html prep_[% lang %]/browser/chrome/[% lang %]/locale/browser/
  192. [% END -%]
  193. rm [% xpi %]
  194. cd prep_[% lang %]
  195. [% c('zip', {
  196. zip_src => [ '.' ],
  197. zip_args => xpi,
  198. }) %]
  199. # If we are building a multi-lingual package, add all of the language packs.
  200. [% IF c("var/multi_lingual") %]
  201. cp [% xpi %] "$TBDIR/$EXTSPATH/langpack-[% lang %]@firefox.mozilla.org.xpi"
  202. [% END %]
  203. cd ..
  204. rm -rf prep_[% lang %]
  205. [% END %]
  206. [% IF c("var/multi_lingual") %]
  207. # Set the update.locale (it is used to replace %LOCALE% within
  208. # app.update.url).
  209. pushd "$TBDIR[% IF c("var/osx") %]/Contents/Resources/[% END %]"
  210. echo ${PKG_LOCALE} > update.locale
  211. [% c("var/touch") %] update.locale
  212. zip -Xm omni.ja update.locale
  213. popd
  214. [% END %]
  215. [% IF c("var/windows") %]
  216. # We need to install a recent version of python-pefile so that it works
  217. # in a x86_64 container:
  218. # https://github.com/TheTorProject/tor-messenger-build/pull/10
  219. tar xf $rootdir/[% c('input_files_by_name/python-pefile') %]
  220. cd $(echo [% c('input_files_by_name/python-pefile') %] | sed s/\.tar\.gz$//)
  221. python setup.py install --user
  222. cd ..
  223. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/nsis') %]
  224. export PATH="/var/tmp/dist/nsis/bin:$PATH"
  225. tar -C $distdir -xf $rootdir/[% c('input_files_by_name/tbb-windows-installer') %]
  226. mv ${TB_STAGE_DIR} $distdir/tbb-windows-installer/"Tor Browser"
  227. mv $distdir/tbb-windows-installer ${TB_STAGE_DIR}
  228. [% END %]
  229. [% IF c("var/windows") %]
  230. TBDIR="$distdir/$PKG_DIR/Tor Browser/Browser"
  231. [% ELSIF c("var/osx") %]
  232. TBDIR="$distdir/$PKG_DIR/Tor Browser.app"
  233. [% ELSE %]
  234. TBDIR="$distdir/$PKG_DIR/Browser"
  235. [% END %]
  236. cat > "$scripts_dir/create-$PKG_DIR" << SCRIPT_EOF
  237. #!/bin/bash
  238. set -e
  239. cp -a ${TB_STAGE_DIR} $distdir/$PKG_DIR
  240. pushd "$TBDIR[% IF c("var/osx") %]/Contents/Resources/[% END %]"
  241. rm -f precomplete
  242. python $MARTOOLS/createprecomplete.py
  243. popd
  244. cd $distdir
  245. [% IF c("var/build_mar") -%]
  246. # Create full MAR file and compressed package.
  247. [% SET mar_file = 'tor-browser-' _ c("var/mar_osname") _ '-' _ c("var/torbrowser_version") _ '_${PKG_LOCALE}.mar' %]
  248. MAR=$MARTOOLS/mar MBSDIFF=$MARTOOLS/mbsdiff $MARTOOLS/make_full_update.sh -q $OUTDIR/[% mar_file %] "$TBDIR"
  249. [% END -%]
  250. [% IF c("var/linux") %]
  251. [% c('tar', {
  252. tar_src => [ '$PKG_DIR' ],
  253. tar_args => '-cJf $OUTDIR/tor-browser-' _ c("var/mar_osname") _ '-' _ c("var/torbrowser_version") _ '_${PKG_LOCALE}.tar.xz',
  254. }) %]
  255. [% ELSIF c("var/osx") %]
  256. [% c('var/ddmg', {
  257. dmg_src => '"$PKG_DIR"',
  258. dmg_out => '$OUTDIR/TorBrowser-' _ c("var/torbrowser_version") _ '-osx64_${PKG_LOCALE}.dmg',
  259. }) %]
  260. [% ELSIF c("var/windows") %]
  261. find "$PKG_DIR" -exec [% c("var/touch") %] {} \;
  262. pushd "$PKG_DIR"
  263. makensis torbrowser.nsi
  264. # Working around NSIS braindamage
  265. mv torbrowser-install.exe torbrowser-install-tmp.exe
  266. python $rootdir/pe_checksum_fix.py
  267. mv torbrowser-install-tmp2.exe torbrowser-install.exe
  268. rm torbrowser-install-tmp.exe
  269. mv torbrowser-install.exe $OUTDIR/torbrowser-install[% IF c("var/windows-x86_64") %]-win64[% END %]-[% c("var/torbrowser_version") %]_${PKG_LOCALE}.exe
  270. popd
  271. [% END %]
  272. rm -rf $distdir/${PKG_DIR}
  273. SCRIPT_EOF
  274. cp $rootdir/[% c('input_files_by_name/firefox') %]/mar-tools-*.zip "$OUTDIR"/
  275. [% IF c("var/linux") -%]
  276. cp $rootdir/[% c('input_files_by_name/firefox') %]/tor-browser-debug.tar.xz "$OUTDIR"/tor-browser-[% c("var/mar_osname") %]-debug.tar.xz
  277. cp $rootdir/[% c('input_files_by_name/tor') %]/tor-debug.tar.xz "$OUTDIR"/tor-[% c("var/mar_osname") %]-debug.tar.xz
  278. [% END -%]
  279. # If we did not create a multi-lingual package above, create a package for
  280. # each locale.
  281. [% IF ! c("var/multi_lingual") %]
  282. [% SET locales = c("var/testbuild") ? [] : c("var/locales") -%]
  283. [% FOREACH lang = locales %]
  284. [% SET lang = tmpl(lang);
  285. SET xpi = '$rootdir/' _ c('input_files_by_name/firefox-langpacks') _ '/' _ lang _ '.xpi';
  286. SET tbdir = '$distdir/tor-browser_' _ lang;
  287. SET mar_file = 'tor-browser-' _ c("var/mar_osname") _ '-' _ c("var/torbrowser_version") _ '_' _ lang _ '.mar';
  288. IF c("var/osx");
  289. SET browserdir = tbdir _ '/Tor Browser.app';
  290. ELSIF c("var/windows");
  291. SET browserdir = tbdir _ '/Tor Browser/Browser';
  292. ELSE;
  293. SET browserdir = tbdir _ '/Browser';
  294. END;
  295. %]
  296. cat > "$scripts_dir/create-tor-browser_[% lang %]" << SCRIPT_EOF
  297. #!/bin/bash
  298. set -e
  299. cp -a ${TB_STAGE_DIR} [% tbdir %]
  300. cp [% xpi %] "[% browserdir %]/$EXTSPATH/langpack-[% lang %]@firefox.mozilla.org.xpi"
  301. pushd "[% browserdir %]/[% IF c("var/osx") %]Contents/Resources/[% END %]browser/"
  302. mkdir -p defaults/preferences
  303. cp $rootdir/000-tor-browser.js defaults/preferences/
  304. # Set the locale of the bundle.
  305. echo "pref(\"intl.locale.requested\", \"[% lang %]\");" >> defaults/preferences/000-tor-browser.js
  306. [% c("var/touch") %] defaults/preferences/000-tor-browser.js
  307. zip -Xm omni.ja defaults/preferences/000-tor-browser.js
  308. rm -rf defaults
  309. # create tbb_version.json file for #25020
  310. echo '{"version":"[% c("var/torbrowser_version") %]","architecture":"[% c("var/mar_osname") %]","channel":"[% c("var/channel") %]","locale":"[% lang %]"}' > ../tbb_version.json
  311. popd
  312. # Set the update.locale (it is used to replace %LOCALE% within
  313. # app.update.url), remove the en-US spellchecking dictionary, and
  314. # recreate precomplete file (needs to be accurate for full MAR updates).
  315. pushd "[% browserdir %]/[% IF c("var/osx") %]Contents/Resources/[% END %]"
  316. echo "[% lang %]" > update.locale
  317. [% c("var/touch") %] update.locale
  318. zip -Xm omni.ja update.locale
  319. rm -rf dictionaries
  320. rm -f precomplete
  321. python $MARTOOLS/createprecomplete.py
  322. popd
  323. cd $distdir
  324. # Create full MAR file and compressed package for this locale.
  325. MAR=$MARTOOLS/mar MBSDIFF=$MARTOOLS/mbsdiff $MARTOOLS/make_full_update.sh -q $OUTDIR/[% mar_file %] "[% browserdir %]"
  326. [% IF c("var/linux") %]
  327. [% SET tardir = 'tor-browser_' _ lang;
  328. c('tar', {
  329. tar_src => [ tardir ],
  330. tar_args => '-cJf $OUTDIR/tor-browser-' _ c("var/mar_osname") _ '-' _ c("var/torbrowser_version") _ '_' _ lang _ '.tar.xz',
  331. }) %]
  332. [% ELSIF c("var/osx") %]
  333. [% # Rename the Japanese bundle to not confuse users
  334. IF lang == 'ja-JP-mac';
  335. SET lang = 'ja';
  336. END; -%]
  337. [% c('var/ddmg', {
  338. dmg_src => tbdir,
  339. dmg_out => '$OUTDIR/TorBrowser-' _ c("var/torbrowser_version") _ '-osx64_' _ lang _ '.dmg',
  340. }) %]
  341. [% ELSIF c("var/windows") %]
  342. find "[% tbdir %]" -exec [% c("var/touch") %] {} \;
  343. pushd "[% tbdir %]"
  344. makensis torbrowser.nsi
  345. # Working around NSIS braindamage
  346. mv torbrowser-install.exe torbrowser-install-tmp.exe
  347. python $rootdir/pe_checksum_fix.py
  348. mv torbrowser-install-tmp2.exe torbrowser-install.exe
  349. rm torbrowser-install-tmp.exe
  350. mv torbrowser-install.exe $OUTDIR/torbrowser-install[% IF c("var/windows-x86_64") %]-win64[% END %]-[% c("var/torbrowser_version") %]_[% lang %].exe
  351. popd
  352. [% END %]
  353. rm -rf [% tbdir %]
  354. SCRIPT_EOF
  355. [% END %]
  356. [% END %]
  357. chmod 775 $rootdir/run_scripts "$scripts_dir"/*
  358. $rootdir/run_scripts [% c("buildconf/num_procs") %] "$scripts_dir"