[General SlimRoms Discussion] raulx222:
Uhm..I'm using apache-ant-1.9.4 on Windows and after I build the packages..the backup script is messed up:

#!/sbin/sh
#
# /system/addon.d/70-gapps.sh
#
. /tmp/backuptool.functions

list_files() {
cat <<EOF
addon.d/80-gapps.sh
addon.d/71-gapps-faceunlock.sh
app/FaceLock/FaceLock.apk
app/FaceLock/lib/arm/libfacelock_jni.so
etc/permissions/com.google.android.camera2.xml
framework/com.google.android.camera2.jar
lib/libgcam.so
lib/libgcam_swig_jni.so
lib/libjni_eglfence.so
lib/libjni_filtershow_filters.so
lib/libjni_mosaic.so
lib/liblightcycle.so
lib/libnativehelper_compat.so
vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.8/landmark_group_meta_data.bin
vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.8/left_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-tree7-wmd.bin
vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.8/nose_base-y0-yi45-p0-pi45-r0-ri20.lg_32-tree7-wmd.bin
vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.8/right_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-3-tree7-wmd.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/head-y0-yi45-p0-pi45-r0-ri30.4a-v24-tree7-2-wmd.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/head-y0-yi45-p0-pi45-rn30-ri30.5-v24-tree7-2-wmd.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/head-y0-yi45-p0-pi45-rp30-ri30.5-v24-tree7-2-wmd.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/pose-r.8.1.bin
vendor/pittpatt/models/detection/yaw_roll_face_detectors.7.1/pose-y-r.8.1.bin
vendor/pittpatt/models/recognition/face.face.y0-y0-71-N-tree_7-wmd.bin
appConfigUpdaterConfigUpdater.apk
appExchangeServicesExchangeServices.apk
appGmail2Gmail2.apk
appGoogleCalendarSyncAdapterGoogleCalendarSyncAdapter.apk
appGoogleContactsSyncAdapterGoogleContactsSyncAdapter.apk
appHangoutsDialerHangoutsDialer.apk
appHangoutsHangouts.apk
appHangoutslibarmlibcrashreporterer.so
appHangoutslibarmlibcronet.so
appHangoutslibarmlibframesequence.so
appHangoutslibarmlibvideochat_jni.so
etcg.prop
etcpermissionscom.google.android.camera2.xml
etcpermissionscom.google.android.dialer.support.xml
etcpermissionscom.google.android.maps.xml
etcpermissionscom.google.android.media.effects.xml
etcpermissionscom.google.widevine.software.drm.xml
etcpermissionsfeatures.xml
etcpreferred-appsgoogle.xml
frameworkcom.google.android.camera2.jar
frameworkcom.google.android.dialer.support.jar
frameworkcom.google.android.maps.jar
frameworkcom.google.android.media.effects.jar
frameworkcom.google.widevine.software.drm.jar
liblibfilterpack_facedetect.so
liblibjni_latinime.so
liblibjni_latinimegoogle.so
priv-appGoogleBackupTransportGoogleBackupTransport.apk
priv-appGoogleFeedbackGoogleFeedback.apk
priv-appGoogleLoginServiceGoogleLoginService.apk
priv-appGoogleOneTimeInitializerGoogleOneTimeInitializer.apk
priv-appGooglePartnerSetupGooglePartnerSetup.apk
priv-appGoogleServicesFrameworkGoogleServicesFramework.apk
priv-appPhoneskyPhonesky.apk
priv-appPrebuiltGmsCorePrebuiltGmsCore.apk
priv-appPrebuiltGmsCorelibarmlibAppDataSearch.so
priv-appPrebuiltGmsCorelibarmlibNearbyApp.so
priv-appPrebuiltGmsCorelibarmlibWhisper.so
priv-appPrebuiltGmsCorelibarmlibconscrypt_gmscore_jni.so
priv-appPrebuiltGmsCorelibarmlibgames_rtmp_jni.so
priv-appPrebuiltGmsCorelibarmlibgcastv2_base.so
priv-appPrebuiltGmsCorelibarmlibgcastv2_support.so
priv-appPrebuiltGmsCorelibarmlibgms-ocrclient.so
priv-appPrebuiltGmsCorelibarmlibgmscore.so
priv-appPrebuiltGmsCorelibarmlibjgcastservice.so
priv-appPrebuiltGmsCorelibarmlibsslwrapper_jni.so
priv-appSetupWizardSetupWizard.apk
priv-apptalkbacktalkback.apk
EOF
}

case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/$FILE
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/$FILE $R
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac

And it's the same backup script in all 3 packages o.O..what I'm doing wrong?:D(I haven't touched the build.xml or any other file)

EDIT: Adding dirsep="/" to pathconvert fixes up the "/" between the folder and files

http://pastebin.com/gn2SYPMh

But for some reason the all 3 packages are containing the same backup script..that one from mini package.