GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — patchrom_tools/release_source.sh at jellybean · LeWaCode/patchrom_tools

Expand file tree

/

release_source.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
51 lines (46 loc) · 1.35 KB
/

release_source.sh

Copy path

File metadata and controls

executable file
·
51 lines (46 loc) · 1.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
46
47
48
49
50
#!/bin/bash
echo "The android source code is located at: $1"
echo "The lewa source code is located at: $2"
echo "The released source code would be put at: $3"
echo "[IMPORTANT] make sure the source codes has been put under $1"
src_dir=frameworks/base
android=$1/$src_dir
android_rlz=$PORT_ROOT/android/src/$src_dir
lewa=$2/$src_dir
release=$3/src/$src_dir
for mf in `find $lewa -name "*.java"`
do
af=${mf/$lewa/$android}
if [ -f "$af" ]
then
diff $af $mf > /dev/null || {
#echo $af is different with $mf;
arf=${af/$android/$android_rlz}
mkdir -p `dirname $arf`
cp $af $arf
rf=${mf/$lewa/$release}
mkdir -p `dirname $rf`
cp $mf $rf
}
else
echo "Have $mf but $af does not exist!"
fi
done
for mf in `find $lewa -name "*.aidl"`
do
af=${mf/$lewa/$android}
if [ -f "$af" ]
then
diff $af $mf > /dev/null || {
#echo $af is different with $mf;
arf=${af/$android/$android_rlz}
mkdir -p `dirname $arf`
cp $af $arf
rf=${mf/$lewa/$release}
mkdir -p `dirname $rf`
cp $mf $rf
}
else
echo "Have $mf but $af does not exist!"
fi
done
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.