Skip to content

Instantly share code, notes, and snippets.

@yoshikaw
Created April 17, 2011 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoshikaw/924096 to your computer and use it in GitHub Desktop.
Save yoshikaw/924096 to your computer and use it in GitHub Desktop.
aipo 6.0.0.0のインストーラをダマくらかしてdebianにインストールするためのしょうもないパッチ
--- bin/euc/installer.sh.bak 2011-04-12 21:56:54.000000000 +0900
+++ bin/euc/installer.sh 2011-04-17 23:12:18.180970504 +0900
@@ -244,9 +244,9 @@
echo "checking gcc... "
fi
-rpm -qa --qf "%{GROUP},%{NAME}¥n" > ${script_path}/bin/rpmlist
+COLUMNS=200 dpkg -l > ${script_path}/bin/rpmlist
-tmp_str=`cat ${script_path}/bin/rpmlist | grep readline-devel`
+tmp_str=`grep libreadline.-dev ${script_path}/bin/rpmlist`
if [ "$tmp_str" != "" ]; then
echo "checking readline... ok"
@@ -257,7 +257,7 @@
check_str="ERROR"
fi
-tmp_str=`cat ${script_path}/bin/rpmlist | grep zlib-devel`
+tmp_str=`grep 'zlib.*-dev' ${script_path}/bin/rpmlist`
if [ "$tmp_str" != "" ]; then
echo "checking zlib... ok"
else
--- bin/utf8/installer.sh.bak 2011-04-12 21:56:54.000000000 +0900
+++ bin/utf8/installer.sh 2011-04-17 23:13:47.651423072 +0900
@@ -244,9 +244,9 @@
echo "checking gcc... "
fi
-rpm -qa --qf "%{GROUP},%{NAME}¥n" > ${script_path}/bin/rpmlist
+COLUMNS=200 dpkg -l > ${script_path}/bin/rpmlist
-tmp_str=`cat ${script_path}/bin/rpmlist | grep readline-devel`
+tmp_str=`grep libreadline.-dev ${script_path}/bin/rpmlist`
if [ "$tmp_str" != "" ]; then
echo "checking readline... ok"
@@ -257,7 +257,7 @@
check_str="ERROR"
fi
-tmp_str=`cat ${script_path}/bin/rpmlist | grep zlib-devel`
+tmp_str=`grep 'zlib.*-dev' ${script_path}/bin/rpmlist`
if [ "$tmp_str" != "" ]; then
echo "checking zlib... ok"
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment