𝌔 Fossil Hub
Login | Fossil manual |
phptags tag tidier

Check-in [2129130770]

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

Overview
Comment:Now using `fpm` (with exe.rb/makesfx.exe) instead of `epm` for packaging.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2129130770bd3e2215f715f8436b2a92abbeb301
User & Date: mario 2014-11-13 19:42:10
Context
2014-11-13
19:43
Add UTF-16/32 detection support, colorization, make regex <?php tag searches case-insensitive. check-in: c23de5734a user: mario tags: trunk
19:42
Now using `fpm` (with exe.rb/makesfx.exe) instead of `epm` for packaging. check-in: 2129130770 user: mario tags: trunk
2014-11-11
12:26
Exchange preg_replace/e for _callback. (Technically unnecessary due to pre-constrained input, but would generate notices; and looks leaner split up.) check-in: 18003543bc 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

















#!/bin/sh

VERSION=$(version --get:php phptags --write:spec _package.epm --write:spec _win.epm)

#-- deb
fakeroot \
epm -v -n -a all -f deb        phptags _package.epm  
dpkg-sig phptags-$VERSION.deb -s builder -k include-once.org

#-- rpm
epm -vvv -n -a all -f rpm phptags _package.epm
mkdir linux-3.13-all/BUILD
/usr/bin/rpmbuild -bb --buildroot $(pwd)/linux-3.13-all/buildroot --target all linux-3.13-all/phptags.spec
mv linux-3.13-all/RPMS/all/*.rpm linux-3.13-all/phptags-$VERSION.rpm
rm -r linux-3.13-all/BUILD
rm -r linux-3.13-all/RPMS
rm -r linux-3.13-all/rpms
rmdir linux-3.13-all/phptags-$VERSION
rm linux-3.13-all/phptags.spec

#-- win
epm-win32sfx -r -v phptags _win.epm

mv linux-3.13-all/*deb .
mv linux-3.13-all/*rpm .
mv win32/*exe .
rmdir win32


















|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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

	

Deleted _package.epm.

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
%product phptags
%version 1.1
%vendor milki <milki@include-once.org>
%license
%copyright Placed into the Public Domain, 2011
%readme README

%description .
%description Conversion tool for PHP short/long open/close tags
%description .  
%description Scans through *.php script files and transforms open
%description and close tags, into short or long versions, adds or
%description removes closing tags, and trailing or leading whitespace.


%system all
#-- base
f 755 root root /usr/bin/phptags				./phptags
#-- help files
f 644 root root /usr/share/man/man1/phptags.1		 	 ./manpage.1
f 644 root root /usr/share/doc/phptags/NEWS		 	 ./NEWS
f 644 root root /usr/share/doc/phptags/README		 	 ./README




%format deb
%requires php5-cli|php5-cgi

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<


























































Deleted _win.epm.

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
%product phptags
%version 1.1
%vendor milki <milki@include-once.org>
%license
%copyright Placed into the Public Domain, 2011
%readme README

%description
%description Conversion tool for PHP short/long open/close tags
%description   
%description   Scans through *.php script files and transforms open
%description   and close tags, into short or long versions, adds or
%description   removes closing tags, and trailing or leading whitespace.
%description   
%description   .
%description   
%description   COMES WITH NO WARRANTY WHATSOEVER. USE AT YOUR OWN PERIL.
%description   
%description   .
%description   
%description   Expects a working PHP.EXE installation in the system %PATH,
%description   or should be installed directly into C:/PHP/ with it.


%defaultpath c:/PHP
$relocatable 1
%homepage http://freshcode.club/projects/phptags


%system all
#-- base
f 755 root root phptags				./phptags
f 755 root root phptags.cmd			./phptags.cmd
#-- help files
f 644 root root phptags.txt		 	./phptags.README

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<