installer: generate 'bindimage.txt' on the fly

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2015-04-02 07:26:25 +01:00
Родитель 38e8299d86
Коммит dbcf7a16af
3 изменённых файлов: 8 добавлений и 1 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -1,6 +1,7 @@
*.swp *.swp
/git-extra/pkg/ /git-extra/pkg/
/git-extra/src/ /git-extra/src/
/installer/bindimage.txt
/installer/install.iss /installer/install.iss
/installer/install.out /installer/install.out
/installer/is-unicode.exe /installer/is-unicode.exe

Просмотреть файл

@ -10,7 +10,7 @@
#define MINGW_BITNESS '%MINGW_BITNESS%' #define MINGW_BITNESS '%MINGW_BITNESS%'
#define APP_URL 'http://git-for-windows.github.io/' #define APP_URL 'http://git-for-windows.github.io/'
#define APP_BUILTINS 'share\git\builtins.txt' #define APP_BUILTINS 'share\git\builtins.txt'
TODO: generate #define APP_BINDIMAGE 'share\git\bindimage.txt' #define APP_BINDIMAGE 'share\git\bindimage.txt'
#define PLINK_PATH_ERROR_MSG 'Please enter a valid path to a Plink executable.' #define PLINK_PATH_ERROR_MSG 'Please enter a valid path to a Plink executable.'

Просмотреть файл

@ -84,6 +84,12 @@ sed -e 's|/|\\|g' \
-e 's|^\(.*\)\\\([^\\]*\)$|Source: \1\\\2; DestDir: {app}\\\1; Flags: replacesameversion; AfterInstall: DeleteFromVirtualStore|' \ -e 's|^\(.*\)\\\([^\\]*\)$|Source: \1\\\2; DestDir: {app}\\\1; Flags: replacesameversion; AfterInstall: DeleteFromVirtualStore|' \
>> file-list.iss >> file-list.iss
echo "Generating bindimage.txt"
pacman -Ql mingw-w64-$ARCH-git |
sed -n -e 's|^[^ ]* /\(.*\.exe\)$|\1|p' \
-e 's|^[^ ]* /\(.*\.dll\)$|\1|p' > bindimage.txt
echo "Source: \"$SCRIPTDIR\\bindimage.txt\"; DestDir: {app}\\mingw$BITNESS\\share\git\bindimage.txt; Flags: replacesameversion; AfterInstall: DeleteFromVirtualStore" >> file-list.iss
sed -e "s|%APPVERSION%|$version|" -e "s|%MINGW_BITNESS%|mingw$BITNESS|" < install.iss.in > install.iss || sed -e "s|%APPVERSION%|$version|" -e "s|%MINGW_BITNESS%|mingw$BITNESS|" < install.iss.in > install.iss ||
exit exit