Skip to content

Commit a615a33

Browse files
committed
Added builtin version
1 parent 11e0408 commit a615a33

8 files changed

+79
-2
lines changed
-198 KB
Binary file not shown.

distrib/filemin-2.0.2.freebsd.wbm.gz

-1.36 MB
Binary file not shown.

distrib/filemin-2.0.2.linux.wbm.gz

-1.36 MB
Binary file not shown.

distrib/webmin-filemin_2.0.2_all.deb

-1.16 MB
Binary file not shown.

linux.builtin.sh

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/bin/sh
2+
OLD="https:\/\/cdnjs.cloudflare.com\/ajax"
3+
NEW="unauthenticated"
4+
FILES="*.cgi"
5+
TGDIR="./distrib/filemin"
6+
DISTR="./distrib"
7+
mkdir -p $TGDIR
8+
mkdir -p $TGDIR/unauthenticated
9+
mkdir -p $TGDIR/unauthenticated/js
10+
mkdir -p $TGDIR/unauthenticated/css
11+
mkdir -p $TGDIR/unauthenticated/templates
12+
cp -R images $TGDIR
13+
cp -R lang $TGDIR
14+
cp -R lib $TGDIR
15+
cp -R unauthenticated/libs $TGDIR/unauthenticated
16+
cp -R unauthenticated/css/*.min.css $TGDIR/unauthenticated/css
17+
cp filemin-updater.tar.gz $TGDIR/unauthenticated
18+
19+
cp CHANGELOG.md $TGDIR
20+
cp LICENCE $TGDIR
21+
cp README.md $TGDIR
22+
cp acl_security.pl $TGDIR
23+
# cp postinstall.pl $TGDIR
24+
# cp uninstall.pl $TGDIR
25+
cp config $TGDIR
26+
cp config.info $TGDIR
27+
cp defaultacl $TGDIR
28+
cp filemin-lib.pl $TGDIR
29+
cp module.info $TGDIR
30+
31+
for f in $FILES
32+
do
33+
if [ -f $f -a -r $f ]; then
34+
cp $f "$TGDIR/$f"
35+
else
36+
echo "Error: Cannot read $f"
37+
fi
38+
done
39+
40+
FILES="unauthenticated/templates/*.html"
41+
42+
for f in $FILES
43+
do
44+
if [ -f $f -a -r $f ]; then
45+
sed -e "s/$OLD/$NEW/g" -e "s/filemin\./filemin\.min\./g" -e "s/chmod-calculator\./chmod-calculator\.min\./g" -e "s/spec-ops\./spec-ops\.min\./g" "$f" > "$TGDIR/$f"
46+
else
47+
echo "Error: Cannot read $f"
48+
fi
49+
done
50+
51+
FILES="unauthenticated/js/*.min.js"
52+
53+
for f in $FILES
54+
do
55+
if [ -f $f -a -r $f ]; then
56+
sed "s/$OLD/$NEW/g" "$f" > "$TGDIR/$f"
57+
else
58+
echo "Error: Cannot read $f"
59+
fi
60+
done
61+
62+
while IFS='=' read -r key value; do
63+
case $key in
64+
version)
65+
VERSION="$value"
66+
;;
67+
esac
68+
done < module.info
69+
70+
echo "Packing Linux builtin version $VERSION"
71+
mv -f $TGDIR/filemin.cgi $TGDIR/index.cgi
72+
73+
cd distrib
74+
tar -zcf filemin-$VERSION.linux.builtin.wbm.gz filemin
75+
cd ../
76+
rm -rf $TGDIR

pack.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
./linux.sh
22
./linux.cdn.sh
33
./freebsd.sh
4+
./linux.builtin.sh

unauthenticated/js/filemin.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unauthenticated/js/spec-ops.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)