Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120826210
autogen.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
autogen.sh
View Options
#!/bin/bash
package
=
"iRony"
chwala_dir
=
"../kolab-chwala.git/"
roundcube_dir
=
"../roundcubemail.git/"
roundcube_plugins_dir
=
"../roundcubemail-plugins-kolab.git/"
if
[
$#
-ne
1
]
;
then
echo
"Usage:
$0
<version>"
exit
1
fi
version
=
$1
if
[
! -z
"
$(
git tag -l
|
grep -E
'${package}-${version}$'
)
"
]
;
then
echo
"Version
${
version
}
already exists"
exit
1
fi
if
[
! -d
"
${
chwala_dir
}
/lib"
]
;
then
echo
"No directory
${
chwala_dir
}
/lib/"
exit
1
fi
if
[
! -d
"
${
roundcube_dir
}
/program/lib/Roundcube/"
]
;
then
echo
"No directory
${
roundcube_dir
}
/program/lib/Roundcube/"
exit
1
fi
if
[
! -d
"
${
roundcube_plugins_dir
}
/plugins/"
]
;
then
echo
"No directory
${
roundcube_plugins_dir
}
/plugins/"
exit
1
fi
if
[
-f
"./composer.phar"
]
;
then
git clean -d -f -x
rm -rf vendor/
fi
cp -a
${
chwala_dir
}
/lib lib/FileAPI
pushd
lib/FileAPI/ext/
rm -rf Roundcube/
popd
cp -a
${
roundcube_dir
}
/program/lib/Roundcube/ lib/Roundcube
cp -a
${
roundcube_plugins_dir
}
/plugins/ lib/plugins
curl -sS https://getcomposer.org/installer
|
php
if
[
$?
-ne
0
]
;
then
echo
"Getting composer failed... Bye!"
exit
1
fi
cp composer.json composer-dev.json
cp composer-dist.json composer.json
./composer.phar install --no-dev
if
[
$?
-ne
0
]
;
then
echo
"Running ./composer.phar install failed... Bye!"
exit
1
fi
if
[
-d
"../
${
package
}
-
${
version
}
/"
]
;
then
rm -rf ../
${
package
}
-
${
version
}
/
fi
mkdir -p ../
${
package
}
-
${
version
}
/
cp -a * ../
${
package
}
-
${
version
}
/.
find ../
${
package
}
-
${
version
}
/ -type d -name
".git"
-exec rm -rf
{}
\;
2
>/dev/null
find ../
${
package
}
-
${
version
}
/ -mindepth
1
-maxdepth
1
-type f -name
"composer.phar"
-delete
2
>/dev/null
pwd
=
$(
pwd
)
pushd
..
tar czvf
${
pwd
}
/
${
package
}
-
${
version
}
.tar.gz
${
package
}
-
${
version
}
/
popd
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Apr 24, 10:51 AM (1 w, 5 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7f/ff/c713cec3bc8b6ef02b522b0a131a
Default Alt Text
autogen.sh (1 KB)
Attached To
Mode
rI iRony
Attached
Detach File
Event Timeline