𝌔 Fossil Hub
Login | Fossil manual |
phptags tag tidier

Check-in [77e426264b]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Transitioned to -t src for all package builds.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:77e426264b9119cd6cc6d22b5892eed5451576c1
User & Date: mario 2014-11-24 00:23:27
Context
2014-11-24
00:24
Finalize release 1.2 check-in: ff1dca8029 user: mario tags: trunk, 1.2
00:23
Transitioned to -t src for all package builds. check-in: 77e426264b user: mario tags: trunk
00:23
Added fpm pack: info check-in: a21e117c49 user: mario tags: trunk
Changes

Changes to _pack.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41
42


43
44
45
#!/bin/bash
#
# package up using `fpm`

VERSION=$(version --get:php phptags)

#-- description
NAME=phptags
LICENSE="Public Domain"
DESC="Conversion tool for PHP short/long open/close tags
Scans through *.php script files and transforms open
and close tags between <? short or long <?php versions,
adds or removes closing tags, and can fix surrounding
whitespace/BOM padding.

COMES WITH NO WARRANTY WHATSOEVER. USE AT YOUR OWN PERIL.
"
MAINTAINER="milki <mario#include-once:org>"
HOMEPAGE="http://fossil.include-once.org/phptags/"
DEPENDS="php5-cli"
FILES="
	phptags=/usr/bin/phptags
	manpage.1=/usr/share/man/man1/phptags.1
	README=/usr/share/doc/phptags/README
	NEWS=/usr/share/doc/phptags/NEWS
"
FILES_EXE="phptags phptags.cmd README manpage.1"
DESC_EXE="Expects a working PHP.EXE installation in the system %PATH,
or should be installed directly into C:/PHP/ with it."

#-- package
FPM_TYPES="deb rpm exe"
for TYPE in $FPM_TYPES

do
    [ $TYPE = "exe" ] && FILES="$FILES_EXE" && DESC="$DESC $DESC_EXE"

    fpm -s dir -t $TYPE -a "all" -n "$NAME" -v "$VERSION"	\
    	--license "$LICENSE" --description "$DESC" --maintainer "$MAINTAINER" --url "$HOMEPAGE"	--vendor "-" \
    	-d "$DEPENDS"  \
    	--exe-dest="C:/PHP/"	\
    	--prefix "/" -f -p "$NAME-$VERSION.$TYPE"	\
    	$FILES	


done

	

<
<
<
<



|
<
<
<
<
<
<
<
<
<
<

<
<
<
<
<
|
<
<
<
<
|
<
<
>

<
<
<
<
<
<
<
<
>
>
|
<
<
1




2
3
4
5










6





7




8


9
10








11
12
13


#!/bin/bash





#-- description
NAME=phptags
VERSION=$(version --get:php $NAME --write:php phptags.win)










DEPENDS="php5-cli"










#-- packages


for TYPE_DEST in "deb $NAME" "rpm $NAME" "phar --phar-format zip/gz -x phptags.cmd --src-only phptags.win" "exe --exe-dest='C:/PHP/' --src-only phptags.win"
do








  EXT="${TYPE_DEST//[ -]*/}"
  fpm -s src --prefix=/ -f -p "$NAME-$VERSION.$EXT" -t $TYPE_DEST
done