Chameleon

Chameleon Svn Source Tree

Root/branches/azimutz/Package/package/buildpkg.sh

  • Property svn:executable set to *
1#!/bin/bash
2
3# $1 Path to store built package
4
5packagesidentity="org.chameleon"
6
7packagename="Chameleon"
8
9pkgroot="${0%/*}"
10
11COL_BLACK="\x1b[30;01m"
12COL_RED="\x1b[31;01m"
13COL_GREEN="\x1b[32;01m"
14COL_YELLOW="\x1b[33;01m"
15COL_MAGENTA="\x1b[35;01m"
16COL_CYAN="\x1b[36;01m"
17COL_WHITE="\x1b[37;01m"
18COL_BLUE="\x1b[34;01m"
19COL_RESET="\x1b[39;49;00m"
20
21#version=$( grep I386BOOT_CHAMELEONVERSION vers.h | awk '{ print $3 }' | tr -d '\"' )
22version=$( cat version )
23stage=${version##*-}
24revision=$( grep I386BOOT_CHAMELEONREVISION vers.h | awk '{ print $3 }' | tr -d '\"' )
25builddate=$( grep I386BOOT_BUILDDATE vers.h | awk '{ print $3,$4 }' | tr -d '\"' )
26timestamp=$( date -j -f "%Y-%m-%d %H:%M:%S" "${builddate}" "+%s" )
27
28# =================
29
30develop=$(awk "NR==6{print;exit}" ${pkgroot}/../CREDITS)
31credits=$(awk "NR==10{print;exit}" ${pkgroot}/../CREDITS)
32pkgdev=$(awk "NR==14{print;exit}" ${pkgroot}/../CREDITS)
33# =================
34
35distributioncount=0
36xmlindent=0
37
38indent[0]="\t"
39indent[1]="\t\t"
40indent[2]="\t\t\t"
41indent[3]="\t\t\t\t"
42
43main ()
44{
45
46# clean up the destination path
47
48rm -R -f "${1}"
49echo ""
50echo -e $COL_RED"----------------------------------"$COL_RESET
51echo -e $COL_RED"Building $packagename Install Package"$COL_RESET
52echo -e $COL_RED"----------------------------------"$COL_RESET
53echo ""
54
55outline[$((outlinecount++))]="${indent[$xmlindent]}<choices-outline>"
56
57# build core package
58echo "================= Core ================="
59((xmlindent++))
60packagesidentity="org.chameleon.core"
61#mkdir -p ${1}/Core/Root/usr/sbin #Azipkg
62mkdir -p ${1}/Core/Root/usr/local/bin
63mkdir -p ${1}/Core/Root/usr/standalone/i386
64ditto --noextattr --noqtn ${1%/*}/i386/boot ${1}/Core/Root/usr/standalone/i386
65ditto --noextattr --noqtn ${1%/*}/i386/boot0 ${1}/Core/Root/usr/standalone/i386
66ditto --noextattr --noqtn ${1%/*}/i386/boot0md ${1}/Core/Root/usr/standalone/i386
67#ditto --noextattr --noqtn ${1%/*}/i386/boot0hf ${1}/Core/Root/usr/standalone/i386 #Azipkg
68ditto --noextattr --noqtn ${1%/*}/i386/boot1f32 ${1}/Core/Root/usr/standalone/i386
69ditto --noextattr --noqtn ${1%/*}/i386/boot1h ${1}/Core/Root/usr/standalone/i386
70ditto --noextattr --noqtn ${1%/*}/i386/boot1he ${1}/Core/Root/usr/standalone/i386
71ditto --noextattr --noqtn ${1%/*}/i386/boot1hp ${1}/Core/Root/usr/standalone/i386
72ditto --noextattr --noqtn ${1%/*}/i386/cdboot ${1}/Core/Root/usr/standalone/i386
73ditto --noextattr --noqtn ${1%/*}/i386/chain0 ${1}/Core/Root/usr/standalone/i386
74# fixperms "${1}/Core/Root/"
75ditto --noextattr --noqtn ${1%/*}/i386/fdisk440 ${1}/Core/Root/usr/local/bin #Azipkg
76ditto --noextattr --noqtn ${1%/*}/i386/bdmesg ${1}/Core/Root/usr/local/bin #Azipkg
77# ditto --arch i386 `which SetFile` ${1}/Core/Root/usr/local/bin/SetFile
78local coresize=$( du -hkc "${1}/Core/Root" | tail -n1 | awk {'print $1'} )
79echo "[BUILD] i386 "
80buildpackage "${1}/Core" "/" "0" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1
81
82# build Chameleon package
83echo "================= Chameleon ================="
84outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Chameleon\">"
85choices[$((choicescount++))]="<choice\n\tid=\"Chameleon\"\n\ttitle=\"Chameleon_title\"\n\tdescription=\"Chameleon_description\"\n>\n</choice>\n"
86
87# build standard package
88mkdir -p ${1}/Standard/Root
89mkdir -p ${1}/Standard/Scripts/Tools
90cp -f ${pkgroot}/Scripts/Standard/* ${1}/Standard/Scripts
91#ditto --arch i386 `which SetFile` ${1}/Standard/Scripts/Tools/SetFile
92echo "[BUILD] Standard "
93buildpackage "${1}/Standard" "/" "${coresize}" "start_enabled=\"true\" start_selected=\"upgrade_allowed()\" selected=\"exclusive(choices['EFI']) &amp;&amp; exclusive(choices['noboot'])\"" >/dev/null 2>&1
94# End build standard package
95
96# build efi package
97mkdir -p ${1}/EFI/Root
98mkdir -p ${1}/EFI/Scripts/Tools
99cp -f ${pkgroot}/Scripts/EFI/* ${1}/EFI/Scripts
100#ditto --arch i386 `which SetFile` ${1}/EFI/Scripts/Tools/SetFile
101echo "[BUILD] EFI "
102buildpackage "${1}/EFI" "/" "${coresize}" "start_visible=\"systemHasGPT()\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) &amp;&amp; exclusive(choices['noboot'])\"" >/dev/null 2>&1
103# End build efi package
104
105# build reset choice package
106mkdir -p ${1}/noboot/Root
107echo "[BUILD] Reset choice "
108buildpackage "${1}/noboot" "/tmpcham" "" "start_visible=\"true\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) &amp;&amp; exclusive(choices['EFI'])\"" >/dev/null 2>&1
109# End build reset choice package
110
111# build Modules package
112 echo "================= Modules ================="
113 ###############################
114 # Supported Modules #
115 ###############################
116 # klibc.dylib #
117 # Resolution.dylib #
118 # uClibcxx.dylib #
119 ###############################
120 if [ "$(ls -A "${1%/*}/i386/modules")" ]; then
121 {
122 outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Module\">" #Azi module or modules ?
123 choices[$((choicescount++))]="<choice\n\tid=\"Module\"\n\ttitle=\"Module_title\"\n\tdescription=\"Module_description\"\n>\n</choice>\n"
124 ((xmlindent++))
125 packagesidentity="org.chameleon.modules"
126# -
127 if [ -e ${1%/*}/i386/modules/klibc.dylib ]; then
128 {
129 mkdir -p ${1}/klibc/Root
130 ditto --noextattr --noqtn ${1%/*}/i386/modules/klibc.dylib ${1}/klibc/Root
131 echo "[BUILD] klibc "
132 buildpackage "${1}/klibc" "/Extra/modules" "" "start_selected=\"true\"" >/dev/null 2>&1
133 }
134 fi
135# -
136 if [ -e ${1%/*}/i386/modules/Resolution.dylib ]; then
137 {
138 mkdir -p ${1}/AutoReso/Root
139 ditto --noextattr --noqtn ${1%/*}/i386/modules/Resolution.dylib ${1}/AutoReso/Root
140 echo "[BUILD] Resolution "
141 buildpackage "${1}/AutoReso" "/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1
142 }
143 fi
144# -
145 if [ -e ${1%/*}/i386/modules/uClibcxx.dylib ]; then
146 {
147 mkdir -p ${1}/uClibc/Root
148 ditto --noextattr --noqtn ${1%/*}/i386/modules/uClibcxx.dylib ${1}/uClibc/Root
149 ditto --noextattr --noqtn ${1%/*}/i386/modules/klibc.dylib ${1}/uClibc/Root
150 echo "[BUILD] uClibc++ "
151 buildpackage "${1}/uClibc" "/Extra/modules" "" "start_selected=\"true\"" >/dev/null 2>&1
152 }
153 fi
154 ((xmlindent--))
155 outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
156 }
157 else
158 {
159 echo " -= no modules to include =-"
160 }
161 fi
162# End build Modules packages
163 ((xmlindent--))
164 outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
165# End build Chameleon package
166
167# build Extras package
168#echo "================= Extras ================="
169#outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Extras\">"
170#choices[$((choicescount++))]="<choice\n\tid=\"Extras\"\n\ttitle=\"Extras_title\"\n\tdescription=\"Extras_description\"\n>\n</choice>\n"
171#((xmlindent++))
172#packagesidentity="org.chameleon.extras"
173
174# build utility package
175#outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Utility\">"
176#choices[$((choicescount++))]="<choice\n\tid=\"Utility\"\n\ttitle=\"Utility_title\"\n\tdescription=\"Utility_description\"\n>\n</choice>\n"
177#((xmlindent++))
178#packagesidentity="org.chameleon.utilities"
179
180## build package for Chameleon PrefPanel
181#mkdir -p "${1}/PrefPanel/Root"
182#ditto --noextattr --noqtn "${pkgroot}/Configuration/PrefPanel/Chameleon.prefPane" "${1}/PrefPanel/Root"
183#echo "[BUILD] Chameleon Preference Panel "
184#buildpackage "${1}/PrefPanel" "/Library/PreferencePanes/Chameleon.prefPane" "" "start_selected=\"false\"" >/dev/null 2>&1
185## End build package for Chameleon PrefPanel
186
187## build package for SMBIOSDefault
188#mkdir -p "${1}/SMBIOSDefault/Root"
189#ditto --noextattr --noqtn "${pkgroot}/Configuration/SMBIOSDefault/smbios.plist" "${1}/SMBIOSDefault/Root"
190#echo "[BUILD] SMBIOSDefault "
191#buildpackage "${1}/SMBIOSDefault" "/Extra/Example" "" "start_selected=\"false\"" >/dev/null 2>&1
192## End build package for SMBIOSDefault
193
194## build package for Documentation
195#mkdir -p "${1}/Documentation/Root"
196#cp -f ${pkgroot}/../doc/BootHelp.txt ${1}/Documentation/Root
197#cp -f ${pkgroot}/../doc/README ${1}/Documentation/Root
198#cp -f ${pkgroot}/../doc/Users_Guide0.5.pdf ${1}/Documentation/Root
199#echo "[BUILD] Documentation "
200#buildpackage "${1}/Documentation" "/Library/Documentation/Chameleon2" "" "start_selected=\"false\"" >/dev/null 2>&1
201## End build package for Documentation
202
203#((xmlindent--))
204#outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
205# End utility package
206
207# build options packages
208echo "================= Options ================="
209outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Options\">"
210choices[$((choicescount++))]="<choice\n\tid=\"Options\"\n\ttitle=\"Options_title\"\n\tdescription=\"Options_description\"\n>\n</choice>\n"
211((xmlindent++))
212
213# build base options packages
214packagesidentity="org.chameleon.options"
215
216options=($( find "${pkgroot}/Scripts/BaseOptions" -type d -depth 1 -not -name '.svn' ))
217for (( i = 0 ; i < ${#options[@]} ; i++ ))
218do
219mkdir -p "${1}/${options[$i]##*/}/Root"
220mkdir -p "${1}/${options[$i]##*/}/Scripts"
221ditto --noextattr --noqtn "${options[$i]}/postinstall" "${1}/${options[$i]##*/}/Scripts/postinstall"
222echo "[BUILD] ${options[$i]##*/} "
223buildpackage "${1}/${options[$i]##*/}" "/" "" "start_selected=\"false\"" >/dev/null 2>&1
224done
225# End build base options packages
226
227# build resolution packages
228echo "================= Res. Options ================="
229outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Resolution\">"
230choices[$((choicescount++))]="<choice\n\tid=\"Resolution\"\n\ttitle=\"Resolution_title\"\n\tdescription=\"Resolution_description\"\n>\n</choice>\n"
231((xmlindent++))
232packagesidentity="org.chameleon.options.resolution"
233resolutions=($( find "${pkgroot}/Scripts/Resolutions" -type d -depth 1 -not -name '.svn' ))
234for (( i = 0 ; i < ${#resolutions[@]} ; i++ ))
235do
236mkdir -p "${1}/${resolutions[$i]##*/}/Root/"
237mkdir -p "${1}/${resolutions[$i]##*/}/Scripts/"
238ditto --noextattr --noqtn "${resolutions[$i]}/postinstall" "${1}/${resolutions[$i]##*/}/Scripts/postinstall"
239echo "[BUILD] ${resolutions[$i]##*/} "
240buildpackage "${1}/${resolutions[$i]##*/}" "/tmpcham" "" "start_selected=\"false\"" >/dev/null 2>&1
241done
242
243((xmlindent--))
244outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
245# End build resolution packages
246
247# build Advanced packages
248echo "================= Adv. Options ================="
249outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Advanced\">"
250choices[$((choicescount++))]="<choice\n\tid=\"Advanced\"\n\ttitle=\"Advanced_title\"\n\tdescription=\"Advanced_description\"\n>\n</choice>\n"
251((xmlindent++))
252
253packagesidentity="org.chameleon.options.advanced"
254optionsadv=($( find "${pkgroot}/Scripts/Advanced" -type d -depth 1 -not -name '.svn' ))
255for (( i = 0 ; i < ${#optionsadv[@]} ; i++ ))
256do
257mkdir -p "${1}/${optionsadv[$i]##*/}/Root"
258mkdir -p "${1}/${optionsadv[$i]##*/}/Scripts"
259ditto --noextattr --noqtn "${optionsadv[$i]}/postinstall" "${1}/${optionsadv[$i]##*/}/Scripts/postinstall"
260echo "[BUILD] ${optionsadv[$i]##*/} "
261buildpackage "${1}/${optionsadv[$i]##*/}" "/" "" "start_selected=\"false\"" >/dev/null 2>&1
262done
263
264((xmlindent--))
265outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
266# End build Advanced packages
267
268((xmlindent--))
269outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
270
271# End build options packages
272
273# build theme packages
274echo "================= Themes ================="
275outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"Themes\">"
276choices[$((choicescount++))]="<choice\n\tid=\"Themes\"\n\ttitle=\"Themes_title\"\n\tdescription=\"Themes_description\"\n>\n</choice>\n"
277((xmlindent++))
278packagesidentity="org.chameleon.themes"
279#echo "work: $1" # e.g. .../trunk/sym/package
280# replace "/sym/package" by "/artwork/themes" on "work" and save path in "artwork"
281artwork="${1%/sym/package}/artwork/themes"
282#echo "artwork: ${artwork}"
283themes=($( find "${artwork}" -type d -depth 1 -not -name '.svn' ))
284#echo "themes: ${themes[@]}"
285for (( i = 0 ; i < ${#themes[@]} ; i++ ))
286do
287theme=$( echo ${themes[$i]##*/} | awk 'BEGIN{OFS=FS=""}{$1=toupper($1);print}' )
288mkdir -p "${1}/${theme}/Root/"
289# there's already a DS_store cleaner on buildpackage()
290 rsync -r --exclude=.svn "${themes[$i]}/" "${1}/${theme}/Root/${theme}"
291# i see no need for this ??
292#find "${1}/${theme}" -type f -exec chmod 644 {} \+
293echo "[BUILD] ${theme}"
294buildpackage "${1}/${theme}" "/Extra/Themes" "" "start_selected=\"false\"" >/dev/null 2>&1
295#rm -R -f "${1}/${i##*/}" # = .../sym/package/0, .../1, etc... not needed anyway
296done
297
298((xmlindent--))
299outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
300# End build theme packages
301
302#((xmlindent--))
303#outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
304# End build Extras package
305
306# build post install package
307echo "================= Post ================="
308mkdir -p ${1}/Post/Root
309mkdir -p ${1}/Post/Scripts
310cp -f ${pkgroot}/Scripts/Post/* ${1}/Post/Scripts
311echo "[BUILD] Post "
312buildpackage "${1}/Post" "/" "" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1
313outline[$((outlinecount++))]="${indent[$xmlindent]}</choices-outline>"
314
315# build meta package
316
317makedistribution "${1}" "${2}" "${3}" "${4}" "${5}"
318
319# clean up
320
321#rm -R -f "${1}" #Azi: don't delete sym/package - uncoment when done
322
323}
324
325#Azi: not used
326fixperms ()
327{
328# $1 path
329find "${1}" -type f -exec chmod 644 {} \;
330find "${1}" -type d -exec chmod 755 {} \;
331chown -R 0:0 "${1}"
332}
333
334buildpackage ()
335{
336# $1 Path to package to build containing Root and or Scripts
337# $2 Install Location
338# $3 Size
339# $4 Options
340
341if [ -d "${1}/Root" ] && [ "${1}/Scripts" ]; then
342
343local packagename="${1##*/}"
344local identifier=$( echo ${packagesidentity}.${packagename//_/.} | tr [:upper:] [:lower:] )
345find "${1}" -name '.DS_Store' -delete #Azi: .DS_store cleaner
346local filecount=$( find "${1}/Root" | wc -l )
347if [ "${3}" ]; then
348local installedsize="${3}"
349else
350local installedsize=$( du -hkc "${1}/Root" | tail -n1 | awk {'print $1'} )
351fi
352local header="<?xml version=\"1.0\"?>\n<pkg-info format-version=\"2\" "
353
354#[ "${3}" == "relocatable" ] && header+="relocatable=\"true\" "
355
356header+="identifier=\"${identifier}\" "
357header+="version=\"${version}\" "
358
359[ "${2}" != "relocatable" ] && header+="install-location=\"${2}\" "
360
361header+="auth=\"root\">\n"
362header+="\t<payload installKBytes=\"${installedsize##* }\" numberOfFiles=\"${filecount##* }\"/>\n"
363rm -R -f "${1}/Temp"
364
365[ -d "${1}/Temp" ] || mkdir -m 777 "${1}/Temp"
366[ -d "${1}/Root" ] && mkbom "${1}/Root" "${1}/Temp/Bom"
367
368if [ -d "${1}/Scripts" ]; then
369header+="\t<scripts>\n"
370for script in $( find "${1}/Scripts" -type f \( -name 'pre*' -or -name 'post*' \) )
371do
372header+="\t\t<${script##*/} file=\"./${script##*/}\"/>\n"
373done
374header+="\t</scripts>\n"
375chown -R 0:0 "${1}/Scripts"
376pushd "${1}/Scripts" >/dev/null
377find . -print | cpio -o -z -H cpio > "../Temp/Scripts"
378popd >/dev/null
379fi
380
381header+="</pkg-info>"
382echo -e "${header}" > "${1}/Temp/PackageInfo"
383pushd "${1}/Root" >/dev/null
384find . -print | cpio -o -z -H cpio > "../Temp/Payload"
385popd >/dev/null
386pushd "${1}/Temp" >/dev/null
387
388xar -c -f "${1%/*}/${packagename// /}.pkg" --compression none .
389
390popd >/dev/null
391
392outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"${packagename// /}\"/>"
393
394if [ "${4}" ]; then
395local choiceoptions="${indent[$xmlindent]}${4}\n"
396fi
397choices[$((choicescount++))]="<choice\n\tid=\"${packagename// /}\"\n\ttitle=\"${packagename}_title\"\n\tdescription=\"${packagename}_description\"\n${choiceoptions}>\n\t<pkg-ref id=\"${identifier}\" installKBytes='${installedsize}' version='${version}.0.0.${timestamp}' auth='root'>#${packagename// /}.pkg</pkg-ref>\n</choice>\n"
398
399#rm -R -f "${1}" #Azi: don't delete e.g. sym/package/Core - uncoment when done
400fi
401}
402
403makedistribution ()
404{
405rm -f "${1%/*}/${packagename// /}"*.pkg
406
407find "${1}" -type f -name '*.pkg' -depth 1 | while read component
408do
409mkdir -p "${1}/${packagename}/${component##*/}"
410pushd "${1}/${packagename}/${component##*/}" >/dev/null
411xar -x -f "${1%}/${component##*/}"
412popd >/dev/null
413done
414
415ditto --noextattr --noqtn "${pkgroot}/Distribution" "${1}/${packagename}/Distribution"
416ditto --noextattr --noqtn "${pkgroot}/Resources" "${1}/${packagename}/Resources"
417
418find "${1}/${packagename}/Resources" -type d -name '.svn' -exec rm -R -f {} \; 2>/dev/null
419
420for (( i=0; i < ${#outline[*]} ; i++));
421do
422echo -e "${outline[$i]}" >> "${1}/${packagename}/Distribution"
423done
424
425for (( i=0; i < ${#choices[*]} ; i++));
426do
427echo -e "${choices[$i]}" >> "${1}/${packagename}/Distribution"
428done
429
430echo "</installer-gui-script>" >> "${1}/${packagename}/Distribution"
431
432perl -i -p -e "s/%CHAMELEONVERSION%/${version%%-*}/g" `find "${1}/${packagename}/Resources" -type f`
433perl -i -p -e "s/%CHAMELEONREVISION%/${revision}/g" `find "${1}/${packagename}/Resources" -type f`
434
435# Adding Developer and credits
436perl -i -p -e "s/%DEVELOP%/${develop}/g" `find "${1}/${packagename}/Resources" -type f`
437perl -i -p -e "s/%CREDITS%/${credits}/g" `find "${1}/${packagename}/Resources" -type f`
438perl -i -p -e "s/%PKGDEV%/${pkgdev}/g" `find "${1}/${packagename}/Resources" -type f`
439
440stage=${stage/RC/Release Candidate }
441stage=${stage/FINAL/2.0 Final}
442perl -i -p -e "s/%CHAMELEONSTAGE%/${stage}/g" `find "${1}/${packagename}/Resources" -type f`
443
444find "${1}/${packagename}" -name '.DS_Store' -delete #Azi: another .DS_store cleaner
445pushd "${1}/${packagename}" >/dev/null
446xar -c -f "${1%/*}/${packagename// /}-${version}-r${revision}.pkg" --compression none .
447popd >/dev/null
448
449# Here is the place for assign a Icon to the pkg
450# command use to generate the file:
451# ditto -c -k --sequesterRsrc --keepParent Icon.icns Icon.zip
452# ----
453# ditto -xk "${pkgroot}/Icons/pkg.zip" "${pkgroot}/Icons/"
454# DeRez -only icns "${pkgroot}/Icons/Icons/pkg.icns" > tempicns.rsrc
455# Rez -append tempicns.rsrc -o "${1%/*}/$packagename-${version}-r$revision.pkg"
456# SetFile -a C "${1%/*}/$packagename-${version}-r$revision.pkg"
457# rm -f tempicns.rsrc
458# rm -rf "${pkgroot}/Icons/Icons"
459# End
460
461md5=$( md5 "${1%/*}/${packagename// /}-${version}-r${revision}.pkg" | awk {'print $4'} )
462echo "MD5 (${packagename// /}-${version}-r${revision}.pkg) = ${md5}" > "${1%/*}/${packagename// /}-${version}-r${revision}.pkg.md5"
463echo ""
464
465echo -e $COL_RED"--------------------------"$COL_RESET
466echo -e $COL_RED"Building process complete!"$COL_RESET
467echo -e $COL_RED"--------------------------"$COL_RESET
468echo ""
469echo -e $COL_RED"Build info."
470echo -e $COL_RED"==========="
471echo -e $COL_BLUE"Package name:"$COL_GREEN"$packagename-${version}-r$revision.pkg"$COL_RESET
472echo -e $COL_BLUE"MD5:"$COL_GREEN"$md5"$COL_RESET
473echo -e $COL_BLUE"Version:"$COL_GREEN"$version"$COL_RESET
474echo -e $COL_BLUE"Stage:"$COL_GREEN"$stage"$COL_RESET
475echo -e $COL_BLUE"Date/Time:"$COL_GREEN"$builddate"$COL_RESET
476echo ""
477
478}
479
480main "${1}" "${2}" "${3}" "${4}" "${5}"
481
482

Archive Download this file

Revision: 1510