[HTC EVO 3D] dementio:
I've tried everything: signing, not signing, latest cwm, latest twrp, etc, but I always get the same error.

syntax error, unexpected $end, expecting ',' or ')'

and it's always last line, last column.

The EOL's are in Unix format.

ui_print("===============================================");
ui_print("| Doing Conversion |");
ui_print("===============================================");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
run_program("/sbin/busybox", "mount", "/sdcard");
run_program("/sbin/busybox", "mkdir", "/sd-ext");
delete("/data/AmazingSense2.apk");
delete("/data/com.metago.astro-1.apk");
delete("/data/com.rerware.android.MyBackupRoot-1.apk");
delete("/data/com.skin.HoneyHD-1.apk");
delete("/data/com.skin.ThyparancyGingerArchInv-1.apk");
delete("/data/com.skin.ThyparancyGingerNormal-1.apk");
delete("/data/Glasskin_Green_ttb.apk");
delete("/data/MyBackupRoot.apk");
delete("/system/app/amazonmp3.apk");
delete("/system/app/AppSharing.apk");
delete("/system/app/Blockbuster_Stub_HTC.apk");
delete("/system/app/BlueSky.apk");
delete("/system/app/Burgundy.apk");
delete("/system/app/CheckinProvider.apk");
delete("/system/app/com.amazon.mp3.apk");
delete("/system/app/com.htc.FMRadioWidget.apk");
delete("/system/app/com.htc.FriendStream3DWidget.apk");
delete("/system/app/com.htc.htcmsgwidgets3d.apk");
delete("/system/app/com.htc.idlescreen_SN.apk");
delete("/system/app/com.htc.MusicWidget.apk");
delete("/system/app/com.htc.Sync3DWidget.apk");
delete("/system/app/com.htc.TrendsWidget.apk");
delete("/system/app/com.htc.Twitter3DWidget.apk");
delete("/system/app/DCSStock.apk");
delete("/system/app/dms.apk");
delete("/system/app/DFPI.apk");
delete("/system/app/DockMode.apk");
delete("/system/app/Flickr.apk");
delete("/system/app/FriendStream.apk");
delete("/system/app/fusion.apk)";
delete("/system/app/FusionStockWidget.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/GingerbreadKeyboard.apk");
delete("/system/app/GreenHornet3D.apk");
delete("/system/app/GSD.apk");
delete("/system/app/HTC_IME.apk");
delete("/system/app/HtcAddProgramWidget.apk");
delete("/system/app/HtcAutoRotateWidget.apk");
delete("/system/app/HtcBackgroundDataWidget.apk");
delete("/system/app/htcbookmarkwidget3d.apk");
delete("/system/app/HtcCalculatorWidget.apk");
delete("/system/app/htccalendarwidgets3d.apk");
delete("/system/app/HtcCarPanel.apk");
delete("/system/app/HtcClock3DWidget.apk");
delete("/system/app/HtcCompressViewer.apk");
delete("/system/app/HtcConnectedMedia.apk");
delete("/system/app/htccontactwidgets3D.apk");
delete("/system/app/HtcDataRoamingWidget.apk");
delete("/system/app/HtcDataStripWidget.apk");
delete("/system/app/HtcDirect.apk");
delete("/system/app/HtcFacebook.apk");
delete("/system/app/HtcFeedback.apk");
delete("/system/app/HtcFMRadio.apk");
delete("/system/app/HtcFootprints.apk");
delete("/system/app/HtcFootprintsWidget3d.apk");
delete("/system/app/HtcGreader.apk");
delete("/system/app/HtcGreaderWidget.apk");
delete("/system/app/HtcHubSyncProvider.apk");
delete("/system/app/HtcImageWallpaper.apk");
delete("/system/app/HtcIQAgent.apk");
delete("/system/app/HTCLivewallpaperStreak.apk");
delete("/system/app/HtcLockScreen.apk");
delete("/system/app/HtcLoggers.apk");
delete("/system/app/htcmailwidgets3d.apk");
delete("/system/app/HtcPhotoGridWidget3D.apk");
delete("/system/app/HtcPhotoWidget.apk");
delete("/system/app/HtcPowerStripWidget.apk");
delete("/system/app/HtcProfileWidget.apk");
delete("/system/app/HtcRecommends.apk");
delete("/system/app/HtcRecommendsWidget.apk");
delete("/system/app/MyReportAgent.apk");
delete("/system/app/HtcResetNotify.apk");
delete("/system/app/HtcRingtoneTrimmer.apk");
delete("/system/app/HtcRingtoneWidget.apk");
delete("/system/app/HtcScreenBrightnessWidget.apk");
delete("/system/app/HtcScreenTimeoutWidget.apk");
delete("/system/app/htcsettingwidgets.apk");
delete("/system/app/HtcStreamPlayer.apk");
delete("/system/app/HtcTipWidget.apk");
delete("/system/app/HtcTwitter.apk");
delete("/system/app/htcwatchwidget3d.apk");
delete("/system/app/HtcWeather3DWidget.apk");
delete("/system/app/HtcWeatherWallpaper.apk");
delete("/system/app/Idlescreen_Base.apk");
delete("/system/app/idlescreen_photo.apk");
delete("/system/app/idlescreen_shortcut.apk");
delete("/system/app/IdleScreen_Stock.apk");
delete("/system/app/IdleScreen_Weather.apk");
delete("/system/app/IQRD.apk");
delete("/system/app/JETCET_PRINT.apk");
delete("/system/app/JETCET_PRINT_Resources.apk");
delete("/system/app/LiveWallpapers.apk");
delete("/system/app/LiveWallpapersPicker.apk");
delete("/system/app/Mode10Wallpapers.apk");
delete("/system/app/mSpotRadioSprint_VPL.apk");
delete("/system/app/NscmStub.apk");
delete("/system/app/PluginManager.apk");
delete("/system/app/Rosie.apk");
delete("/system/app/MagicSmokeWallpapers.apk");
delete("/system/app/Maps.apk");
delete("/system/app/MyHTC.apk");
delete("/system/app/MyReportAgent.apk");
delete("/system/app/MyShelf_Widget.apk");
delete("/system/app/PGAWidget_HTCEvo3D_Sprint_v100.apk");
delete("/system/app/Protips.apk");
delete("/system/app/qik.apk");
delete("/system/app/SIE_HTCMobileGuide_Shooter.apk");
delete("/system/app/Spiderman_HTC_EVO2_ML_IGP_3D_Sprint_122.apk");
delete("/system/app/Sprint_Navigator_stub.apk");
delete("/system/app/SprintMobileWallet.apk");
delete("/system/app/SprintTVStub_Signed.apk");
delete("/system/app/Stock.apk");
delete("/system/app/Street.apk");
delete("/system/app/Swype.apk");
delete("/system/app/Talk.apk");
delete("/system/app/TaskManager.apk");
delete("/system/app/Transfer-shooter-8.30.0.33-S30.apk");
delete("/system/app/TrimIt.apk");
delete("/system/app/Twitter.apk");
delete("/system/app/VisualizationWallpapers.apk");
delete("/system/app/vtt-sprint.apk");
delete("/system/app/WeatherAgentService.apk");
delete("/system/app/WeatherLiveWallpaper.apk");
delete("/system/app/WeatherProvider.apk");
delete("/system/app/WeatherSyncProvider.apk");
delete("/system/framework/com.blockbuster.lib.htc");
delete("/system/framework/com.htc.android.rosie");
delete("/system/framework/com.htc.fusion.fx");
delete("/system/framework/com.htc.lockscreen.fusion");
delete("/system/framework/com.orange.authentication.simcard");
delete("/system/lib/libspiderman_117.so");
delete("/system/lib/libSwypeCore.3.7.85.27287.so");
delete("/system/lib/libSwypeCore.3.21.87.28626.so");
delete_recursive("/system/media/weather");
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
package_extract_dir("sdcard", "/sdcard");
set_perm(0, 0, 0750, "/system/bin/voc");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm(0, 0, 0750, "/system/xbin/virtuous_oc");
unmount("/system");
unmount("/data");
ui_print("===============================================");
ui_print("| Conversion Complete |");
ui_print("===============================================");