configs  Check-in [db08e8e6d4]

Overview
Comment:cross.fish: Add mingw32
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: db08e8e6d4aea83991d4ce68b167802b634439f3464ea79de3a58fcf5369d0bf
User & Date: js on 2020-02-29 23:06:39
Other Links: manifest | tags
Context
2020-02-29
23:09
Add 0x0st.fish check-in: c0c77418d9 user: js tags: trunk
23:06
cross.fish: Add mingw32 check-in: db08e8e6d4 user: js tags: trunk
2020-02-28
01:05
pw(s).fish: Fix key path check-in: ab536054ec user: js tags: trunk
Changes

Modified fish/functions/cross.fish from [4fcc59df49] to [97c9ccae14].

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
                echo 'Please set DEVKITARM!'
            end

            set PATH $DEVKITARM/bin $PATH
            set -g cross_host arm-none-eabi
            set -g objfw_configure_flags --with-$argv[1]
        case amiga
            if test (count $argv) != 2
                echo 'Usage: cross amiga m68k|ppc'
                return 1
            end

            switch $argv[2]
                case m68k
                    if test -z "$amiga_gcc_path"
                        echo 'Please set amiga_gcc_path!'
                        return 1
                    end








<
<
<
<
<







13
14
15
16
17
18
19





20
21
22
23
24
25
26
                echo 'Please set DEVKITARM!'
            end

            set PATH $DEVKITARM/bin $PATH
            set -g cross_host arm-none-eabi
            set -g objfw_configure_flags --with-$argv[1]
        case amiga





            switch $argv[2]
                case m68k
                    if test -z "$amiga_gcc_path"
                        echo 'Please set amiga_gcc_path!'
                        return 1
                    end

83
84
85
86
87
88
89





















90
91
92
93
94
95
96

            set -gx OBJC $CC
            set -gx OBJCPP $CPP
            set -gx OBJCXX $CXX
            set -gx OBJCPPXX $CXXPP
            set -gx IPHONEOS_DEPLOYMENT_TARGET 10.0
            set -g cross_host $archs[1]-apple-darwin





















        case morphos
            set -l prefix (pkg_info -qp ppc-morphos-gcc-9 |
                           awk '/^@cwd/ { print $2; exit }')

            if test -z "$prefix"
                echo 'Please install ppc-morphos-gcc-9 from pkgsrc!'
                return 1







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112

            set -gx OBJC $CC
            set -gx OBJCPP $CPP
            set -gx OBJCXX $CXX
            set -gx OBJCPPXX $CXXPP
            set -gx IPHONEOS_DEPLOYMENT_TARGET 10.0
            set -g cross_host $archs[1]-apple-darwin
        case mingw32
            set -l pkg
            switch $argv[2]
                case i686 x86_64
                    set pkg mingw-w64-$argv[2]-gcc
                    set -g cross_host $argv[2]-w64-mingw32
            end

            if test (count $argv) != 2 -o -z "$cross_host"
                echo 'Usage: cross mingw i686|x86_64'
                return 1
            end

            set -l prefix (pkg_info -qp $pkg | awk '/^@cwd/ { print $2; exit }')

            if test -z "$prefix"
                echo 'Please install $pkg from pkgsrc!'
                return 1
            end

            set PATH $prefix/cross/$cross_host/bin $PATH
        case morphos
            set -l prefix (pkg_info -qp ppc-morphos-gcc-9 |
                           awk '/^@cwd/ { print $2; exit }')

            if test -z "$prefix"
                echo 'Please install ppc-morphos-gcc-9 from pkgsrc!'
                return 1

Modified zshrc from [22f0c05b83] to [4729406448].

112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
			# Without this, precmd would override it
			precmd() { __precmd }
			print -Pn "\e]0;$@\a"
		}

		unset_title() {
			precmd() {
				print -Pn "\e]0;%m:%c\a"
				__precmd
			}
		}
		unset_title
		;;
	*)
		precmd() { __precmd }







|







112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
			# Without this, precmd would override it
			precmd() { __precmd }
			print -Pn "\e]0;$@\a"
		}

		unset_title() {
			precmd() {
				print -Pn "\e]0;%c ยท %m\a"
				__precmd
			}
		}
		unset_title
		;;
	*)
		precmd() { __precmd }